Choosing a colour sensor using an Arduino Uno for a project.

Hi everyone,

I'm researching through the internet about colour sensors and I was wondering what are the key parameters to have in order to detect colours from medium range (5cm - 10cm)? There's lots of information on where it is applied and how to use it, but not so much about specifically pick one out to fit to purpose. Unfortunately, my project doesn't allow me to buy different sensors and test each one.

I was also planning on using the "Adafruit TCS34725," for my project. Is this a good choice or are there any better?

Adafruit TCS34725: RGB Color Sensor with IR filter and White LED - TCS34725 : ID 1334 : $7.95 : Adafruit Industries, Unique & fun DIY electronics and kits, with datasheet.

Manufacturer's page of the TCS34725: TCS34725 Color Sensor – Color Light-To-Digital Converter | ams.

There is no good or bad. It depends on what you want to do.
Some sensors measure the light, some also IR light and some detect UVA and UVB, some sensors can detect the color of a object when it is dark.

I think you have to test if the 5-10cm will work. At least that module is very versatile. It can use ambient light or the onboard led. The TCS34725 has a high dynamic range, it will work in bright light and in low light conditions. It does not have a lens. If you want to detect a smaller area, perhaps you can add tube which is black inside, or use a cheap lens.

Thank you this was very helpful! I need it to see colours with a bright light so that it can clearly distinct each colour because, i want to code an if statement saying if it see's that colour to stop driving my vehicule. So, an in built LED was my main target to save money. Thanks again for your advice.

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