ASSIGNMENT
Connect 3 LEDs (red, green, and blue) and resistors to the Arduino breadboard. Solder wires to connect 2 analog potentiometers to the breadboard. Create a custom way to control the brightness and blink rate of the 3 LED's using analog input from the potentiometers.
MATERIALS USED
3 LEDs (red, green, blue), 3 220 ohm resistors, 2 Potentiometers
ARDUINO CODE
I modified my color fader from the second lab by using potentiometers instead of the keyboard to control the fading parameters. The color fader starts from blue and fades to another color, which can be pure red, pure green, or a blend of the two. One potentiometer controls the fading speed, and the other controls the red/green blending level. The fade color can be changed while the fader is running and the fader will smoothly adapt to the new color.
Each of three separate pots are programmed to control the brightness of R, G, and B LEDs.
Materials: 3 LEDs, 3 220ohm resistors, 3 Pots, same diffuser as last time
Code from course website for 3 Pots to control 3 LEDs
Lab 3 by Victor Tjhia
Description
use 1 potentiometer to determine blinking rate of 3 LEDs, and another to dim.
Components Used
· 3 Light Emitting Diode (LED) RGB
· Resistor
· Arduino
Use the two potentiometers to control fade and blink.
Description
I created a system with 3 potentiometers and 3 LEDs in which each potentiometer controls one LED.
Materials used
Red LED
Blue LED
Green LED
3 potentiometers
Code