Go Down

Topic: tcs34725 color sensor detecting a flickering led (Read 554 times) previous topic - next topic


Apr 16, 2016, 01:18 pm Last Edit: Apr 17, 2016, 03:51 pm by areobe

I'm a bit new to arduino and i'm currently working on a line following robot.
This robot has to detect a flickering traffic light (1Hz) with the tcs34725 sensor.
My question is how can I initialize the sensor so it can easier detect the light and
how can I implement these changes.
I've already worked with the examples from the Adafruit library but none of their programs are good enough to detect such light.

Can somebody help?



You can refer to this code of TCS 34903 in arduino for your sensor to get it working. TCS-34903 arduino

While uploading this code for your sensor, kindly make the following changes:

1. # define Addr 0x29 (I2C address of your sensor).

2. Write value 0x03 on (enable register) 0x80 instead of 0x0B. (for wait disable)

3. Comment the writing of IR Enable register and instead write 0x8F register with value 0x00 like this:
I referred the data sheet. I hope it helps you out to detect the changes.

Go Up