AD Converter PCF8591 for Raspberry Pi: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
 
Line 26: Line 26:
Please use [http://www.daycounter.com/Calculators/Voltage-Divider-Calculator.phtml Voltage Divider Calculator] to get values of resistors you need. I strongly recommend you to replace one resistor with trimmer resistor to calibrate it to right value.
Please use [http://www.daycounter.com/Calculators/Voltage-Divider-Calculator.phtml Voltage Divider Calculator] to get values of resistors you need. I strongly recommend you to replace one resistor with trimmer resistor to calibrate it to right value.


For measuring voltage the best is to use [https://github.com/quick2wire/quick2wire-python-api quick2wire] api library combined it with my prepared example [https://github.com/koss822/misc/blob/master/ad_pcf8591/pcf8591read github.com/ko.../ad_pcf8591/pcf8591read] file pcf8591read which has these options:
For measuring voltage the best is to use [https://github.com/quick2wire/quick2wire-python-api quick2wire] api library combined it with my prepared example [https://github.com/koss822/misc/blob/master/RaspberryPi/ad_pcf8591/pcf8591read github.com/ko.../ad_pcf8591/pcf8591read] file pcf8591read which has these options:


<syntaxhighlight lang="python">
<syntaxhighlight lang="python">

Navigation menu