Page 1 of 1

Problem reading ads1115 with non-default address

Unread postPosted:Thu Mar 04, 2021 1:36 am
by adams
I'm using the DFR0553 ads1115 board with a RaspberryPi. Its i2c bus works with other devices. i2cdetect -y 1 shows that the ads1115 board is present at 0x49.

I'm using the non-default address of 0x49 because something else is at 0x48, the default address. I followed the instructions that came with the board, and there were no errors UNTIL I run ADS1115_ReadVoltage.py. At that point I get:

Traceback (most recent call last):
File "ADS1115_ReadVoltage.py", line 19, in <module>
adc0 = ads1115.readVoltage(0)
File "../DFRobot_ADS1115.py", line 142, in readVoltage
self.setSingle()
File "../DFRobot_ADS1115.py", line 110, in setSingle
bus.write_i2c_block_data(addr_G, ADS1115_REG_POINTER_CONFIG, CONFIG_REG)
IOError: [Errno 5] Input/output error

How do I fix this ?

Thank you in advance.

Re: Problem reading ads1115 with non-default address

Unread postPosted:Mon Mar 08, 2021 12:19 am
by 347945801
There is a toggle switch on the module to change the IIC address of the module, you need to make sure its address is the same as in the code

Re: Problem reading ads1115 with non-default address

Unread postPosted:Wed Mar 10, 2021 3:15 pm
by sigridkandaceuk20
I think you need to reach out to people who have been working in this field for a long time