Unable to get a Gy-33 TCS34725 sensor to report colours

Hello, I am building a colour sorting machine with my students in STEM. We purchased the Gy-33 TCS34725 sensors as we could not obtain the adafruit version or the DF robot version of the TCS34725 sensor. We are basing our project on the electromaker Sorting Machine.

We are using the example.ino for TCS34725 Library as we are checking what the sensor is reporting in the serial monitor.
No matter what colour we are putting under the sensor- we are getting this result
18:58:44.291 -> Interval : 260
18:58:44.291 -> Color Temp : 0.00
18:58:44.291 -> Lux : 0.00
18:58:44.291 -> R : 255.00
18:58:44.291 -> G : 255.00
18:58:44.291 -> B : 255.00
18:58:44.291 -> Raw R : 65535
18:58:44.291 -> Raw G : 65535
18:58:44.291 -> Raw B : 65535
18:58:44.291 -> Raw C : 65535

We are using the UNO board
I have wired it as follows
VCC to 5V
GND to GND
SDA to A4
SCL to A5

Can anyone help us out please?

Hi, @misskhannaford
Welcome to the forum.

Have you tried 4K7 resistors as pull up on the SDA and SCL lines?
One 4K7 between SDA and 5V, the other 4K7 between SCL and 5V.

Can you please post your code?

Thanks.. Tom.. :smiley: :+1: :coffee: :australia:
PS, Have you Googled;

Gy-33 TCS34725 arduino

Is the one you are using a "bare bones" sensor or one on a module, like the adafruit/df ones presumably are. If not you will probably need pull up resistors on the sda and scl lines; those are normally fitted on modules.

Run the I2C scanner to ensure your sensor is actually being detected. Unfortunately I can't give you a link to that right now.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.