Circuit Lake

Electronic Project and Circuit Collection

Fireflies based on tiny AVR

11/15/2007 Category: Microcontroller, Project

When firs time found this article, i think it’s a great project using only few component. I like microcontroller project based on LED. And as you know this project very simple. I must try it…one day

Fireflies based on tiny AVR

Alex said:
“I was always fascinated by the emergence of patterns. One I like most is the synchronization of hundreds or thousands of fireflies. First they flash randomly but after some time and influencing each other, they flash in sync.

The rule behind this is very simple. All fireflies have nearly the same frequency for their flashing, but their phase is shifted. If a firefly receives a flash of a neighbour firefly, it flashes slightly earlier.

This circuit simulates fireflies with small microcontrollers.”

Here is the circuit and the component used for single fireflies

Fireflies based on tiny AVR schematic

  1. ATtiny13 microcontroller
  2. Light Dependant Resistor (LDR)
  3. LED
  4. 2 resistors

To make it interesting, assembly it on the board for 25 fireflies. Every single firefly is self contained, there is no over-all controller. Here is the picture