Pages: [1]   Go Down
Author Topic: Color Detector ?  (Read 708 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi all

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

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

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 217
Posts: 13739
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?


Logged

Rob Tillaart

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

Manchester (England England)
Online Online
Brattain Member
*****
Karma: 627
Posts: 34220
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

This is how to use an LED as a sensor:-
http://www.thebox.myzen.co.uk/Workshop/LED_Sensing.html
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Great guys  smiley thanks for information's , i hope to see more than  smiley-lol  ... so thanks again  smiley-wink
Logged

Pages: [1]   Go Up
Jump to: