If you have not read my first photoresistor post, please click here to do so.
After I finished up on my photo-resistor stuff last night I was thinking, there is so much more potential for stuff than just that little white to black color background. So I decided I would make and RGB color mixer.
I grabbed 2 more photo-resistor and hooked them up as voltage dividers with 4.7K ohm resistors ( I didn’t have any 5k). I made a quick edit to my photoresistor app to make it read analog pins 3, 4, and 5 and assign them to blue green and red, respectively. The edit looks like this (the full app is available for download here):
background(theBackground);
val1= arduino.analogRead(5);
val2= arduino.analogRead(4);
val3= arduino.analogRead(3);
theBackground= color(val1, val2, val3);
Where val1 is red val2 is green and val3 is blue.
This is the final result:
Feedback is not only welcome but much appreciated. I’m thinking of making some kind of project out of this I’m just not sure what yet. If you have any ideas please leave a comment.