21 August 2012
Computer Controlled RGB LED
Today I had to stay home from school because I was sick, so I started looking through this book called Making things Talk. I tried one of the first projects in it, which was called Serial Controlled RGB LED. It was an RGB LED that, when you typed in different values for the red, green, and blue, would fade through different colors. The sketch that it used was fairly simple, too. Instead of using an RGB LED, I used separate LEDs. The red LED went to pin 11, the green LED went to pin 9, and the blue LED went to pin 10. The code looked for the value you sent from the serial monitor and write the value you sent over to the LEDs (or one RGB LED). When I first ran the sketch, it din't work, so I started to troubleshoot. I'm still troubleshooting the project. There's a bunch of cool projects in the book, like Monski Pong, a Pong game controlled by a toy monkey, or Cat Cam, a networked camera that shows you your cat.