py-ads1256 icon indicating copy to clipboard operation
py-ads1256 copied to clipboard

Reading from digital pins

Open renderit opened this issue 7 years ago • 2 comments

Hey great work with this! As I understand you can read the analog pins(analog sensors) with this module.. Is it possible to read from the digital pins(PWM) of the High precision board as well--which is a DAC8532 as shown on the wiki?

renderit avatar Feb 23 '17 07:02 renderit

Hi renderit,

As the onboard sensors on the analog pins currently returns voltage readings on ADC channels 0 and 1, it's only necessary to change the jumpers on the board to read them as single ended readings instead of something wired externally on these channels.

About the PWM: you have tested what you need with the DAC8532's C sample code that comes with the oficial C lib ? It's here: http://www.waveshare.com/wiki/File:High-Precision-AD-DA-Board-Code.7z

If it works, then yes ! It's possible to implement on Python library, because it's a wrapper that works with the original C code. Currently, i've based on the C example "ads1256_test", so it's necessary to add a wrapper to the DAC8532 sample code too.


Fábio Oliveira

Em 23 de fev de 2017 04:46, "Jim" [email protected] escreveu:

Hey great work with this! As I understand you can read the analog pins(analog sensors) with this module.. Is it possible to read from the digital pins(PWM) of the High precision board as well?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/fabiovix/py-ads1256/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/ALnN94PALtTNZXe0A5GGaTGaud4ti2yVks5rfTlagaJpZM4MJpTu .

fabiovix avatar Mar 09 '17 13:03 fabiovix

Hi fab,

Great Work! May I know the procedure that you followed to create the wrapper for ADC, since I need to create the same for DAC8532 as well!

punith1991 avatar Dec 10 '17 04:12 punith1991