I wanted to go a step farther when I built the firefly jar as a Christmas present. My goal was to have multiple fireflies interacting, including males that sometimes synchronize with each other, and females that respond to the flashes of males. I also wanted to base it on the behavior of our backyard firefly, Photinus pyralis , the common Eastern firefly, which is also one of the best studied. I wrote my own software for the microcontroller to simulate this behavior. The full project is documented here , but this Instructable should be enough to follow.
The latest version of the firmware is available on GitHub .
You will need two things to use this software:
- An AVR-based LED array that follows the schematic in the original Jar of Fireflies Instructable with an ATtiny45 or ATtiny85 microcontroller.
- A means to program it. I use a 6-pin header connected to a USBtinyISP.
I tried making a video to demonstrate the flashing behavior. The quality isn't great (it's from an iPhone, and I reduced the quality to upload it):