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?
-
- Posts: 100
- Joined: Sat Jul 16, 2022 3:45 pm
Re: Failed to initialise TCS34725 colour sensor
Hi, have you re-checked your wiring? Have you selected I2C in the interfacing option of your PI?
Re: Failed to initialise TCS34725 colour sensor
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...
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...
Re: Failed to initialise TCS34725 colour sensor
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
M
-
- Posts: 4
- Joined: Mon Apr 13, 2015 4:37 pm
Re: Failed to initialise TCS34725 colour sensor
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
Many thanks for reading,
Greg
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

Many thanks for reading,
Greg
Re: Failed to initialise TCS34725 colour sensor
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
Thanks
Re: Failed to initialise TCS34725 colour sensor
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
But read here viewtopic.php?p=2063035&hilit=Sensehat#p2063035