Page 1 of 1

Color - TCS34725 does not work

Posted: 19 Jul 2023, 12:41
by Alex P
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.

Re: Color - TCS34725 does not work

Posted: 19 Jul 2023, 12:46
by Ath
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.

Re: Color - TCS34725 does not work

Posted: 19 Jul 2023, 13:20
by Alex P
there is nothing protective, and most importantly, there are no reading events in the log

Re: Color - TCS34725 does not work

Posted: 19 Jul 2023, 14:05
by epost
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

Re: Color - TCS34725 does not work

Posted: 19 Jul 2023, 14:55
by Ath
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.

Re: Color - TCS34725 does not work

Posted: 19 Jul 2023, 15:09
by Ath
Didn't ask yet, but did you follow the configuration steps as outlined in the P050 documentation ?

Re: Color - TCS34725 does not work

Posted: 20 Jul 2023, 05:22
by Alex P
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?

Re: Color - TCS34725 does not work

Posted: 20 Jul 2023, 08:26
by TD-er
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.

Re: Color - TCS34725 does not work

Posted: 20 Jul 2023, 08:44
by Alex P
Vin goes to the stabilizer 3.3 volts. the P050 documentation the same scheme

Re: Color - TCS34725 does not work

Posted: 20 Jul 2023, 08:53
by Ath
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.

Re: Color - TCS34725 does not work

Posted: 20 Jul 2023, 09:22
by Alex P
I applied 5 volts, output 3.3 shows 3.3 volts

Re: Color - TCS34725 does not work

Posted: 28 Nov 2023, 07:24
by Alex P
1.png
1.png (48.72 KiB) Viewed 3264 times
Should the default data be displayed here, or is it necessary to somehow read the sensor using rules? How to properly check the sensor?

viewtopic.php?t=9695
same problem

Re: Color - TCS34725 does not work

Posted: 29 Nov 2023, 21:40
by Ath
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...

Re: Color - TCS34725 does not work

Posted: 30 Nov 2023, 06:45
by Alex P
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