mood lamp - part 4 - the code

As promised, here comes the code, along with the Fritzing file as a schematic view of the whole thing.



Hit the jump for the downloads. No wall of text his time.

mood lamp - part 3 - schematics

Ready to get to the real stuff? In comes the schematics!

All these have been done with Fritzing, a circuit design tool for Arduino users and beginners in general.
While it is still in alpha phase and therefore has quite a few annoying bugs, it is definitely usable and easy to use.

Anyway, here is the breadboard view of the design:


mood lamp - part 1 - overview

As promised here, the first content post on tinyLogic! Yay \o/

After some basic tests of my recently acquired Arduino Duemilanove and assorted components, I was ready to implement something more complex, and learn more of the basics along the way. I got a lot of interesting (and cheap) components from a german surplus online store, so I decided to incorporate the following components into the build:

  • linear slide potentiometer (some user interface that is not an on/off button)
  • RGB LED (blinking is fascinating, colorful blinking is even more so!)
  • 7-segment LED display(s) (I wanted some meaningful output)
  • transistors (digital switches, also fascinating)
  • Arduino (something to control, and therefore power!)