Go Down

Topic: Color Detector ? (Read 1 time) previous topic - next topic


Hi all


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


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)



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

Go Up