Description:
I created the 3-pot LED control circuit and used the given code in the lab for controlling the brightness of each LED with each pot.
As an optional part, I created what I call a "Rainbow Maker" by using one pot to control the 3 LEDs so that it fades from red to green to blue to red.
Components used:
Code:
Description: Use one pot to control a LED's brightness and the other to control its blinking speed.
Components Used: LED, Resistors, Potentiometers
Photo: Attached
Source Code:
Previous setup from lab 2, + two potentiometers.
Description:
Three potentiometers are wired in to 3 analog inputs on the arduino board. each pot controls the brightness of an LED.
Materials
3 potentiometers
3 220 kohm resistors
plastic cup diffuser
1 green, blue, red LED
Code (used the example code for 3 pots, 3LEDs)
Create an interesting control of RGB LEDs via 3 potentiometers. After controlling each LED separately from each pot, I decided it would be interesting to try to control Hue, Saturation, and Brightness, then convert to RGB for LED output. I used this code to convert from HSB to RGB. I found the saturation control to be somewhat ineffective, since for better color display, usually amber and white LEDs are used, and this setup only has RGB.