Description
I created a 3-LED serial arrangement that takes both color hexcodes as well as names for colors as listed here
For example, you could type in 'Aquamarine' and my program would translate this into the standard color values for that named color. Also, you could type in #7fffd4 and get the same output.
Oh also, I adapted the given code to take various strings of the chars r,g,b to do 10% increases in those values (wrapping around at 100%), as dictated in the assignment. That aspect is commented out in the code, but can be commented back in.
I found several diffusers that were to my liking: 1) An aerosol lid to my lysol. 2) a slightly opaque jar in my storage closet and 3) The rubbery sheet from the innards of an 80's PC keyboard (see images).
Components Used
I used the Arduino NG rev.c board, breadboard, 3 LEDs (R, G, B), 3 220-ohm resistors, some solderless wires, a USB-serial cable and my laptop.
Code
see here
Images
see here
Comments
GSI Comments
Nice work! It looks like you put a lot of effort into both parts of the assignment. The use of web color codes raises some interesting questions. E.g., what would it be like to create a tangible device that you could write html-like code for...?
The bottle and lysol top are interesting next to each other, since they're both plastic components but both diffuse so differently. The lysol top looks kind of like a dynamic color palette, which is cool.