Materials:
Arduino Micro
1 - RGB LED
2 - 10K Linear potentiometers
Procedure
Solder potentiometers, connect left-most terminal to 5V, right-most terminal to ground, and signal terminal to analog inputs on the Arduino. Connect the 3 short pins of the LED to unused analog outputs on the Arduino. Connect the long pin to ground. Code for switching colors of an rgbLED :https://courses.ischool.berkeley.edu/i262/f13/sites/default/files/rgbledpot.txt
Homework
Making potentiometers map to brightness and blink speed. https://courses.ischool.berkeley.edu/i262/f13/sites/default/files/brightnessandblink.txt
- Login to post comments