No I2C Device at Address

CircuitPython on hardware including Adafruit's boards, and CircuitPython libraries using Blinka on host computers.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
agent6ca
 
Posts: 6
Joined: Thu Mar 26, 2015 10:04 pm

No I2C Device at Address

Post by agent6ca »

Apologies if this has been asked and answered, but Google has not been my friend on this one tonight.

I've got a Pi-3 and am trying to setup a TSL2591 sensor under python and keep getting an error message. (Actually same error message with an ADS1115 as well.) I've enabled I2C on the Pi and can see both devices from the command line using i2cdetect:
i2cdetect results
i2cdetect results
Screenshot from 2021-06-06 23-08-15.png (147.47 KiB) Viewed 216 times
I can also see the devices using i2c.scan() from within python:
i2c.scan() results
i2c.scan() results
Screenshot from 2021-06-06 23-11-31.png (123.48 KiB) Viewed 216 times
However, any time I try to create the sensor object, I get an error that No I2C device is found at the address - despite having been found using i2c.scan():
sensor results
sensor results
Screenshot from 2021-06-06 23-13-28.png (545.49 KiB) Viewed 216 times
I'm seeing the same results whether running python as a regular user or as root and regardless of what device I'm trying to use (TSL2591 or the ADS1115). I had the unit offline over the winter and finally getting around to updating the project, but something has clearly changed. Running Raspbian Buster, fresh install and fully updated as of this evening.

Anyone able to point me in the right direction on this?

Thanks!
Corey

User avatar
agent6ca
 
Posts: 6
Joined: Thu Mar 26, 2015 10:04 pm

Re: No I2C Device at Address

Post by agent6ca »

Still no luck getting this working but a quick update with some additional detail / steps:

1. Tried a fresh install of Adafruit CircuitPython and Blinka, following the steps outlined here: https://learn.adafruit.com/circuitpytho ... spberry-pi

2. Confirmed I am using a 32-bit version of Raspbian - or at least that the SHA256 hash of the image I installed matches the hash of the 32-bit Raspbian image on the download site.

3. Tried changing the I2C clock speed to 10 kHz and 1 kHz as outlined in the install guide: https://learn.adafruit.com/circuitpytho ... stretching

4. Disconnected the ADS1115 so that only the Adafruit TSL2591 chip is connected.

There must be something I'm missing???

Corey

User avatar
agent6ca
 
Posts: 6
Joined: Thu Mar 26, 2015 10:04 pm

Re: No I2C Device at Address

Post by agent6ca »

Finally got this working. Tore out the strip board I had as an intermediate connector and wired the TSL2591 directly to the GPIO header. Means I have to give up the ADS1115 but that was really only used for an LDR as crude dark/light indicator anyway. The TSL2591 really out-does that in every way so will just adapt my code and abandon the LDR.
Finally working!
Finally working!
Screenshot from 2021-06-07 18-16-10.png (173.04 KiB) Viewed 186 times
Looks like the wiring on the daughterboard I was using to connect multiple devices in my enclosure was just enough to let the pi see it was there, but not good enough for a reading. Hopefully some help for the next guy who finds this on Google.

Now on to the next challenge.

Corey

Locked
Please be positive and constructive with your questions and comments.

Return to “Adafruit CircuitPython”