I have wired according to these instructions.
I tried the methods of getting the value at the bottom of the page and it told me that there was a read error. naturally, i tried a different method, python
#Read a value from analogue input 0 #in A/D in the PCF8591P @ address 0x48 from smbus import SMBus bus = SMBus(1) print("Read the A/D") print("Ctrl C to stop") bus.write_byte(0x48, 0) # set control register to read channel 0 last_reading =-1 while(0 == 0): # do forever reading = bus.read_byte(0x48) # read A/D if(abs(last_reading - reading) > 2): print(reading) last_reading = reading
that threw an error saying it to couldn't read the input. After several google searches, I found a fix that was simply bad wiring. I have reattached everything. still no different result. Any thoughts on how to fix this?