Traceback (most recent call last):
File “”, line 1, in
File “/usr/local/lib/python3.7/dist-packages/adafruit_ads1x15/ads1x15.py”, line 83, in init
self.i2c_device = I2CDevice(i2c, address)
File “/usr/local/lib/python3.7/dist-packages/adafruit_bus_device/i2c_device.py”, line 69, in init
self.__probe_for_device()
File “/usr/local/lib/python3.7/dist-packages/adafruit_bus_device/i2c_device.py”, line 192, in __probe_for_device
raise ValueError(“No I2C device at address: %x” % self.device_address)
ValueError: No I2C device at address: 48
The device address is hard at 48!!!
pi@FarmPI:~ $ sudo i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: – – – – – – – – – – – – –
10: – – – – – – – – – – – – – – – –
20: – – – – – – – – – – – – – – – –
30: – – – – – – – – – – – – – – – –
40: – – – – – – – – UU – – – – – – –
50: – – – – – – – – – – – – – – – –
60: – – – – – – – – – – – – – – – –
70: – – – – – – – –
pi@FarmPI:~ $
INet search suggested not connecting correct bus (0 or 1)
My device is busnumber 1
Old module allowed setting default busnumber
Don’t see that in circuit python code.
How/where to set busnumber?
2nd item:
Traceback (most recent call last):
File “/usr/local/lib/python3.7/dist-packages/adafruit_bus_device/i2c_device.py”, line 190, in __probe_for_device
self.i2c.readfrom_into(self.device_address, result)
File “/usr/local/lib/python3.7/dist-packages/busio.py”, line 84, in readfrom_into
return self._i2c.readfrom_into(address, buffer, stop=stop)
File “/usr/local/lib/python3.7/dist-packages/adafruit_blinka/microcontroller/generic_linux/i2c.py”, line 53, in readfrom_into
readin = self._i2c_bus.read_bytes(address, end - start)
File “/usr/local/lib/python3.7/dist-packages/Adafruit_PureIO/smbus.py”, line 178, in read_bytes
self._select_device(addr)
File “/usr/local/lib/python3.7/dist-packages/Adafruit_PureIO/smbus.py”, line 163, in _select_device
ioctl(self._device.fileno(), I2C_SLAVE, addr & 0x7F)
OSError: [Errno 16] Device or resource busy
What causes device/resource busy (If it can’t find device)?
Using KNACRO 4-Channel 16Bit ADC with PGA for RPI Raspberry PI 16 Bits I2C ADS1115 Module ADC 4 Channel for Raspberry Pi 3/2 Model B/B+ under 2.7 simpletest.py worked. Changed to SeeedStudio 4-Channel 16-Bit ADC for Raspberry Pi (ADS1115) and get same resource not found under 2.7. At least with Knacro I could easily switch address. With SeeedStrudio, it seem a need to unsolder one bridge and solder another. Pretty stupid. Why no plug like KNACRO? Plenty of room.