Go Down

Topic: Color Detector ? (Read 808 times) previous topic - next topic

lomex

Hi all

https://www.youtube.com/watch?v=prefe8LX5lo

He use RGB led ! how can i do that ? and what is code ? :smiley-eek:

robtillaart

As far as I know:

Every LED can be used as a sensor to.
He connected the sensor to 3 analogPins to read the voltage when another LED shine on it. (set the internal pullups correctly...)
after reading a non zero voltage (I guess) he knows the LED has seen the light ...
From the three analogVoltages he can derive what the color should be approximately.

Then he uses the analogRead pins as digitalwrites (set outputmode!!) to blink the LED.

makes sense?


Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Grumpy_Mike


lomex

Great guys  :) thanks for information's , i hope to see more than  XD  ... so thanks again  ;)

Go Up