Archive for September, 2009

My Jar of Fireflies

I’ve seen a lot of electronic fireflies on the internet. Here, here, and probably others. The theory is simple, just small LED’s charlieplexed with a microcontroller. I wanted to take it a step futher, with a light sensor, solar panel, and more complex firmware.

This is my first microcontroller project from scratch, and I got to learn all sorts of interesting things like SPI programming, Watchdog Timers, Sleep states, and many other things…

IMAG0001IMAG0002

I wanted to flash more than just one firefly at a time, so I couldn’t do true PWM with all 12 with an ATtiny85. So I came up with my own way to control varying levels of brightness. Also I wanted a light sensor so the fireflies could come out slowly during the night, and the quickly disappear when the lights come on. The hardware was pretty difficult to solder, involving stripping magnet wire and hand soldering SMD LEDs.

IMAG0016IMAG0005

Sorry for the poor pictures, my camera doesn’t do well in low light.

Get the Flash Player to see this content.

All the code is located here. You can check it out using svn or just download it directly. I was hoping to use a solar panel to make them self-sufficient, but they required too much power for them to be useful unless they were in direct sunlight.

The parts list and schematic and more info are on my wiki.

Final Clock Post

I’ve finally moved to Colorado, and I had to leave the big clock behind, and luckily I had finished it:

photo

I finilized the code, installed the clock in my church, and programmed it for there needs. The code is stored here if someone want to see it. If you want to check it out run:

svn co http://dev.xkyle.com/clock

I have a little more technical info on my wiki, but it basically goes like this:

68fbb4a6882a094ecd708c15fca783ee

So using this and Openvpn, I can control the clock through the serial interface anywhere in the world, even Colorado! And of course the best part of it all, the church staff can also control it by sending an @reply using twitter!