Page 1 of 1

Detect different colours of a RGB led

Posted: Fri Jul 28, 2017 6:48 am
by thinwybk
I want to detect and distinguish different colours of a RGB led. The Precision Light Sensor (ID: 1127_0) https://www.phidgets.com/?tier=3&catid= ... &prodid=99 could be used in combination with an optical filter to detect a single colour of the led I guess.

How would I have to process the sensor output data then?

However I would prefer to being able to distinguish different colours with the same sensor. The assembling of different sensors in parallel each detecting another colour would not work in my use case.

Can the Precision Light Sensor (ID: 1127_0) https://www.phidgets.com/?tier=3&catid= ... &prodid=99 or another sensor be used to detect different colours of the RGB led somehow?

Re: Detect different colours of a RGB led

Posted: Fri Jul 28, 2017 7:41 am
by mparadis
We don't carry any sort of sensor that will detect multiple colours out of the box.

If you're limited to a single sensor, you could construct some sort of rotating canister to move the different filters across the light sensor.

Alternatively, if you have access to the wiring of the RGB LED, you may be able to use current sensors to estimate the colour based on the current flowing through each wire.

A heavyweight solution would be to use a webcam and a visual processing library like OpenCV to detect the colour.