Color - TCS34725 does not work
Moderators: grovkillen, Stuntteam, TD-er
-
- Normal user
- Posts: 49
- Joined: 20 Apr 2022, 05:27
- Location: RU
Color - TCS34725 does not work
Can't run Color - TCS34725. Tested on ESP8266, ESP32S2. ESP_Easy_mega_20230623_collection_F
Scan for I2C devices finds I2C Addresses in use 0x29, in the data it displays 0 in the log there is also nothing.
Scan for I2C devices finds I2C Addresses in use 0x29, in the data it displays 0 in the log there is also nothing.
-
- Normal user
- Posts: 4338
- Joined: 10 Jun 2018, 12:06
- Location: NL
Re: Color - TCS34725 does not work
Maybe there is a protective foil covering the actual sensor? Especially light-sensitive/dependent sensors like this one tend to be extra protected during transport.
/Ton (PayPal.me)
-
- Normal user
- Posts: 49
- Joined: 20 Apr 2022, 05:27
- Location: RU
Re: Color - TCS34725 does not work
there is nothing protective, and most importantly, there are no reading events in the log
-
- Normal user
- Posts: 33
- Joined: 09 Feb 2018, 20:04
Re: Color - TCS34725 does not work
https://www.tinytronics.nl/shop/nl/sens ... sor-module
For more information, see the datasheet: TCS34725
See the next page for a library for this module: Adafruit_TCS3472
Note: The module may be supplied with a TCS34727, this does not affect the operation or specifications, but the above library must be modified for this:
1. Go to the folder where the library is installed and the file
"Adafruit_TCS34725.cpp"
2. Edit the following line (around line 222):
if ((x != 0x44) && (x != 0x10)) {
Unpleasant:
if ((x != 0x44) && (x != 0x10) && (x != 0x4D)) {
3. Save the file and the library is ready to use
For more information, see the datasheet: TCS34725
See the next page for a library for this module: Adafruit_TCS3472
Note: The module may be supplied with a TCS34727, this does not affect the operation or specifications, but the above library must be modified for this:
1. Go to the folder where the library is installed and the file
"Adafruit_TCS34725.cpp"
2. Edit the following line (around line 222):
if ((x != 0x44) && (x != 0x10)) {
Unpleasant:
if ((x != 0x44) && (x != 0x10) && (x != 0x4D)) {
3. Save the file and the library is ready to use
-
- Normal user
- Posts: 4338
- Joined: 10 Jun 2018, 12:06
- Location: NL
Re: Color - TCS34725 does not work
TCS34725 has been supported for a long time in ESPEasy, not sure why it shouldn't work as intended.
The expected address is 0x29 as recognized by the I2C scanner, no need to use some hacked library, AFAICS, so there may be some hardware failure here.
Did you source your sensor from a Chinese vendor? As quality control in that area has proven to be poor at times.
The expected address is 0x29 as recognized by the I2C scanner, no need to use some hacked library, AFAICS, so there may be some hardware failure here.
Did you source your sensor from a Chinese vendor? As quality control in that area has proven to be poor at times.
/Ton (PayPal.me)
-
- Normal user
- Posts: 4338
- Joined: 10 Jun 2018, 12:06
- Location: NL
Re: Color - TCS34725 does not work
Didn't ask yet, but did you follow the configuration steps as outlined in the P050 documentation ?
/Ton (PayPal.me)
-
- Normal user
- Posts: 49
- Joined: 20 Apr 2022, 05:27
- Location: RU
Re: Color - TCS34725 does not work
P050 documentation In the examples on the screenshot, 0 values are also indicated. Maybe I'm not looking there? What should a good job look like?
You do not have the required permissions to view the files attached to this post.
-
- Core team member
- Posts: 9920
- Joined: 01 Sep 2017, 22:13
- Location: the Netherlands
Re: Color - TCS34725 does not work
I find it strange to see there is a Vin and a 3V3.
I may have to dive into the datasheet to check whether it needs a separate power pin for the analog and digital part of the circuit.
I may have to dive into the datasheet to check whether it needs a separate power pin for the analog and digital part of the circuit.
-
- Normal user
- Posts: 49
- Joined: 20 Apr 2022, 05:27
- Location: RU
Re: Color - TCS34725 does not work
Vin goes to the stabilizer 3.3 volts. the P050 documentation the same scheme
-
- Normal user
- Posts: 4338
- Joined: 10 Jun 2018, 12:06
- Location: NL
Re: Color - TCS34725 does not work
AFAIR, the VIN has to be over 3.3V to be able to get an output of 3.3V
Last I remember (it's been a while since I used this board) is I powered the board with 3.3V on the 3V3 pin, and never bothered with the VIN pin.
Last I remember (it's been a while since I used this board) is I powered the board with 3.3V on the 3V3 pin, and never bothered with the VIN pin.
/Ton (PayPal.me)
-
- Normal user
- Posts: 49
- Joined: 20 Apr 2022, 05:27
- Location: RU
Re: Color - TCS34725 does not work
I applied 5 volts, output 3.3 shows 3.3 volts
-
- Normal user
- Posts: 49
- Joined: 20 Apr 2022, 05:27
- Location: RU
Re: Color - TCS34725 does not work
Should the default data be displayed here, or is it necessary to somehow read the sensor using rules? How to properly check the sensor?You do not have the required permissions to view the files attached to this post.
-
- Normal user
- Posts: 4338
- Joined: 10 Jun 2018, 12:06
- Location: NL
Re: Color - TCS34725 does not work
When using an original or cloned Adafruit sensor, as shown in the plugin documentation, please ensure the pull-up resistors are actually active. I found this forum post, suggesting that the VIN pin should be connected to the 3V3 power source (or also to that pin), as the pull-ups are connected to that pin, and not to the 3V3 pin...
/Ton (PayPal.me)
-
- Normal user
- Posts: 49
- Joined: 20 Apr 2022, 05:27
- Location: RU
Re: Color - TCS34725 does not work
You are right that this affects the consistency of levels, but unfortunately it did not help. I think that this is not a hardware problem, because in the next topic, when connected to Arduino, everything worked. I'm waiting for the Arduino nano to arrive for testing.![Image]()
You do not have the required permissions to view the files attached to this post.
Who is online
Users browsing this forum: Anthropic Claude Bot [bot] and 28 guests