Detect different colours of a RGB led

Technical Discussions on any InterfaceKits
Post Reply
thinwybk
Fresh meat
Posts: 3
Joined: Fri Jul 28, 2017 1:22 am
Contact:

Detect different colours of a RGB led

Post 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?
User avatar
mparadis
Site Admin
Posts: 660
Joined: Fri Oct 28, 2011 12:17 pm
Contact:

Re: Detect different colours of a RGB led

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests