munocat
Posts: 29
Joined: Wed Jan 16, 2019 12:28 am

Failed to initialise TCS34725 colour sensor

Tue Aug 09, 2022 11:51 pm

I am getting this error when I am running the example space_invader.py code.

I am on a Model 3A+

error:

WARNING:root:Failed to initialise TCS34725 colour sensor. (sensor not present)

what I am missing?

rooppoorali
Posts: 100
Joined: Sat Jul 16, 2022 3:45 pm

Re: Failed to initialise TCS34725 colour sensor

Wed Aug 10, 2022 3:41 am

Hi, have you re-checked your wiring? Have you selected I2C in the interfacing option of your PI?

pluthi
Posts: 1
Joined: Mon Aug 22, 2022 1:41 pm

Re: Failed to initialise TCS34725 colour sensor

Mon Aug 22, 2022 1:46 pm

Unless I am mistaken, there are 2 versions of the sense hat board:
version 1.0 without color sensor (before 2022?)
version 2.0 with color sensor[/list][/list]
the Python library has been updated and apparently incorporates this change...

mattgold
Posts: 3
Joined: Mon Dec 31, 2012 9:30 am

Re: Failed to initialise TCS34725 colour sensor

Sat Oct 29, 2022 9:22 pm

I get the same error on a 3B rev 1.2, original sense hat (it is several years old, so presumably one of the originals), fresh raspbian fully updated.

M

gregplewin
Posts: 4
Joined: Mon Apr 13, 2015 4:37 pm

Re: Failed to initialise TCS34725 colour sensor

Sat Dec 17, 2022 12:01 pm

I also have this warning although I have the V2 hat and the colour sensor is visibly present (its labelled on the hat!).
Initially the pi (3bv2) failed to detect the hat at all until I added 'dtoverlay=rpi-sense' to config.sys.
Now everything appears to work, except for the colour sensor.
Has the overlay been changed for V2? Maybe 'dtoverlay=rpi-sense2' or something similar?
I thought I'd ask before I risk guessing :D
Many thanks for reading,
Greg

buggycode
Posts: 1
Joined: Sat Jan 07, 2023 3:22 pm

Re: Failed to initialise TCS34725 colour sensor

Sat Jan 07, 2023 3:27 pm

I Have the same error on a Pi4 and sense hat V2. (I can see the sensor labled on the board) Does anyone have any ideas of the cause? The rest of the hat seems to be working but I need the colour sensor for the Astro Pi mission zero that my code club are completing

Thanks

User avatar
bensimmo
Posts: 5897
Joined: Sun Dec 28, 2014 3:02 pm
Location: East Yorkshire

Re: Failed to initialise TCS34725 colour sensor

Sat Jan 07, 2023 4:55 pm

Ignore it as you don't have that sensor (unless you're on the ISS), retail use a different sensor.
But read here viewtopic.php?p=2063035&hilit=Sensehat#p2063035

Return to “Astro Pi”