Forum >Problem reading ads1115 with non-default address
Problem reading ads1115 with non-default address

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.
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.
2021-09-30 00:18:01 Can you confirm the firmware version? I faced the same problem couple of months ago when I was also busy in my exams. I hastily read a thread on this post but lost the link which resolved my issue. I carved the https://www.ktvn.com/story/44452700/the ... sification blog about coursework and just a little bit free. I am searching for that exact thread and I'll pin it over here.
anonymous

2021-03-11 07:15:19 I think you need to reach out to people who have been working in this field for a long time
sigridkandaceuk20

2021-03-08 16:19:45 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
347945801
