Skip to content

PCF8591 AtoD and the voltage meter

Mark Niemann-Ross edited this page Jan 5, 2017 · 11 revisions

The voltage meter on the front panel of the circuit box is controlled by

npn transistor

<img src="https://github.com/mnr/rubberfish/wiki/images/pcf8591.jpg" width=500px">

<img src="https://github.com/mnr/rubberfish/wiki/images/voltageMeter.jpg" width=500px">

<img src="https://github.com/mnr/rubberfish/wiki/images/transistorGain.jpg" width=500px">

uxcell PCF8591 AD DA Converter Module Analog to Digital to Conversion

my version of the board

temp, light, a2d, d2a, jumpers, i2c

connecting to the raspberry gpio

--- --- --- ---
voltage meter Analog Out gnd
Analog in 3 gnd
Analog in 2 Input 2
Analog in 1 Input 1
Analog in 0 Input 0
.

configuring the board

communicating with the device

References

  1. NXP documentation for the PCF8591 chip
  2. Available from Amazon
  3. control code for the PCF8591
  4. more control code for the PCF8591