For week two I had to use a sensor(analog in) to send information to the Arduino that then used the data to regulate something else. In my case I used 3 potentiometers that controlled blue, green and red LEDs.
I wanted to create a way to make many different colors. I put the LEDs inside of a cube of foamcore with a paper window. Watch the videos to see how it went.
With the lights on so you can see the components.
Color Maker in the light from Matt Richard on Vimeo.
With the lights off so you can see it work.
Color Maker in the dark from Matt Richard on Vimeo.
Cool stuff, did you use pulse width modulation or just resistance to dim the leds? I ask because you are going to want to mod it (in the future) to PWM as resistance generates a fair amount of heat (at the resistor which is a pot in this case) while PWM uses flicker to adjust the brightness and generates no heat. That project looks fun and the color is great! :)
ReplyDeleteOK, so I read through your post again and it looks like you are using the arduino (I believe that is an Atmega chip, right?) to monitor the voltage difference between two pins... or are you just reading the voltage in?
ReplyDeleteHow are you controlling the led brightness? Are you limiting the voltage from the arduino?