Description
I tried both methods for part 2. The code for potentiometers to control blinking and intensity was modified to alternately blink 2 LEDs. I used a Blue and red LEd blink alternately which looked like the lights on a Police car. I also tried using 3 potentiometers to control the RGB colors using teh diffuser material to see the variation of the color as the 3 intensities were varied.Code attached on Multipot1.txt and Multipot1a.txt
I played around with a different LED output that could be derived from varying the potentiometers. I used one potentiometer which controlled the sequence of blinking or on/off of LEDs. i.e if the potentiometer input was above 600 one LED would be ON with full intensity and the other 2 LEDs would blink 3 times and turn off. If the pot value was below 600, the 2 LEDs that blinked in the previous case would go to ON and the first LED would be turned off. Code attached in Multipot2.txt
Materials Used
3 Potentiometers
3 LEDS
3 220 Ohm resistors
- Login to post comments