Dobrica Pavlinušić's random unstructured stuff
PCF8591: Revision 3
sku_150190_1.jpg

PCF8591 8-Bit A/D D/A Converter Module

RaspberryPi

pi@raspberrypi ~ $ gpio -x pcf8591:120:0x48 readall
+------+---------+--------+
|  Pin | Digital | Analog |
+------+---------+--------+
|  120 |     0   |   132  |
|  121 |     0   |   224  |
|  122 |     0   |    89  |
|  123 |     0   |   119  |
+------+---------+--------+
pi@raspberrypi ~ $ gpio -x pcf8591:120:0x48 aread 120
132
pi@raspberrypi ~ $ gpio -x pcf8591:120:0x48 aread 121
224
pi@raspberrypi ~ $ gpio -x pcf8591:120:0x48 aread 122
99
pi@raspberrypi ~ $ gpio -x pcf8591:120:0x48 aread 123
118

pi@raspberrypi ~ $ gpio -x pcf8591:120:0x48 awrite 120 128