Color - TCS34725 does not work

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
User avatar
Alex P
Normal user
Posts: 34
Joined: 20 Apr 2022, 05:27
Location: RU

Color - TCS34725 does not work

#1 Post by Alex P » 19 Jul 2023, 12:41

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.

User avatar
Ath
Normal user
Posts: 3521
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Color - TCS34725 does not work

#2 Post by Ath » 19 Jul 2023, 12:46

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)

User avatar
Alex P
Normal user
Posts: 34
Joined: 20 Apr 2022, 05:27
Location: RU

Re: Color - TCS34725 does not work

#3 Post by Alex P » 19 Jul 2023, 13:20

there is nothing protective, and most importantly, there are no reading events in the log

epost
Normal user
Posts: 33
Joined: 09 Feb 2018, 20:04

Re: Color - TCS34725 does not work

#4 Post by epost » 19 Jul 2023, 14:05

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

User avatar
Ath
Normal user
Posts: 3521
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Color - TCS34725 does not work

#5 Post by Ath » 19 Jul 2023, 14:55

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.
/Ton (PayPal.me)

User avatar
Ath
Normal user
Posts: 3521
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Color - TCS34725 does not work

#6 Post by Ath » 19 Jul 2023, 15:09

Didn't ask yet, but did you follow the configuration steps as outlined in the P050 documentation ?
/Ton (PayPal.me)

User avatar
Alex P
Normal user
Posts: 34
Joined: 20 Apr 2022, 05:27
Location: RU

Re: Color - TCS34725 does not work

#7 Post by Alex P » 20 Jul 2023, 05:22

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?
Attachments
Безымянный.png
Безымянный.png (26.08 KiB) Viewed 3220 times
20230720_091221.jpg
20230720_091221.jpg (1.07 MiB) Viewed 3220 times
20230720_091156.jpg
20230720_091156.jpg (978.72 KiB) Viewed 3220 times

TD-er
Core team member
Posts: 8756
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Color - TCS34725 does not work

#8 Post by TD-er » 20 Jul 2023, 08:26

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.

User avatar
Alex P
Normal user
Posts: 34
Joined: 20 Apr 2022, 05:27
Location: RU

Re: Color - TCS34725 does not work

#9 Post by Alex P » 20 Jul 2023, 08:44

Vin goes to the stabilizer 3.3 volts. the P050 documentation the same scheme

User avatar
Ath
Normal user
Posts: 3521
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Color - TCS34725 does not work

#10 Post by Ath » 20 Jul 2023, 08:53

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.
/Ton (PayPal.me)

User avatar
Alex P
Normal user
Posts: 34
Joined: 20 Apr 2022, 05:27
Location: RU

Re: Color - TCS34725 does not work

#11 Post by Alex P » 20 Jul 2023, 09:22

I applied 5 volts, output 3.3 shows 3.3 volts

User avatar
Alex P
Normal user
Posts: 34
Joined: 20 Apr 2022, 05:27
Location: RU

Re: Color - TCS34725 does not work

#12 Post by Alex P » 28 Nov 2023, 07:24

1.png
1.png (48.72 KiB) Viewed 2487 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

User avatar
Ath
Normal user
Posts: 3521
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Color - TCS34725 does not work

#13 Post by Ath » 29 Nov 2023, 21:40

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)

User avatar
Alex P
Normal user
Posts: 34
Joined: 20 Apr 2022, 05:27
Location: RU

Re: Color - TCS34725 does not work

#14 Post by Alex P » 30 Nov 2023, 06:45

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
Attachments
TCS34725-Module-Schematic.jpg
TCS34725-Module-Schematic.jpg (142.19 KiB) Viewed 2429 times

Post Reply

Who is online

Users browsing this forum: No registered users and 33 guests