Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

LED Fireflies in a Jar

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
10,429
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Oct 18, 2008

An ATtiny13 uses PWM to fade 12 0603 surface mount green LEDs in and out, suspended from the PCB inside a jam jar.

The ATtiny13 picks a random LED to flash each time, flashes it once, twice or three times randomly, then waits a random amount of time before flashing the next one. An incrementing counter is stored in EEPROM and used to seed the random number generator, leading to a different sequence each time the device is powered up via the switch mounted on the top.

The LEDs are arranged in a standard 3x2 matrix which gives 6 LEDs, and for each position there is a second LED in reverse. The two column controllers are PB0 and PB1 as they can do PWM - another two LEDs could be added between PB0 and PB1 (and were on the prototype) but made the PCB design needlessly more complex: 12 is more than enough!

See photos on flickr here: http://flickr.com/photos/randomskk/sets/72157608158262467/

Inspired by: http://www.instructables.com/id/Jar-of-Fireflies/

More info / source files:
http://negativeacknowledge.com/2008/10/18/led-fireflies-in-a-jarled-fireflies...

Category:

Science & Technology

Tags:

License:

Standard YouTube License

  • likes, 2 dislikes

Link to this comment:

Share to:
see all

All Comments (3)

Sign In or Sign Up now to post a comment!
  • booooring

    

  • That's really neat. The colours seem spot on, too.

  • any guys have a cam? i have mine in my profile

    meh hehe 5w

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more