Gadgets:
an Electronics
&
Microcontroller
Lab

Fall 2016
course
navigation

Sep 20

homework

You have a "first two labs" assignment due today, with some circuit questions.
google "sparkfun led" , and let's discuss.
Please read https://learn.sparkfun.com/tutorials/light-emitting-diodes-leds .

Today in the lab : Lab 3, RGB LED.

the circuit

First let's build it, and understand why it is what it is.

the code

The program that runs it is much more elaborate than the earlier ones. Here are the new concepts :

color

Discuss red/green/blue color model, why 0-255 is the range for each, and what colors match which numbers.

variations

Other sequences of colors :
Manual color selection with potentiometers : with 3 of 'em (put together 3 kits), you can control red, one green, one blue. Like what we did with blink speed, but this time with color choice.
http://cs.marlboro.edu/ courses/ fall2016/gadgets/ notes/ Sep_20
last modified Tuesday September 20 2016 3:45 pm EDT