Skip to content

Fireflies in a jar using charlieplexing and bit angle modulation

Notifications You must be signed in to change notification settings

mutcianm/tinyfireflies

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Tiny13 Firefles

  • the LEDs flicker randomly imitating fireflies
  • 6 LEDs on 3 pins(PB0-PB2) using charlieplexing and bit angle modulation(more efficient PWM alternative for leds) for dimming
  • BAM implemented with hardware timer in CTC mode
  • could easily be scaled to 20 LEDs with almost no code changes(rewriting charlieplexing bitmasks)
  • randomness implemented with linear congruential generator with seed persisted in eeprom and incremented on each power on
  • 0.25 mA power consumption on a 3V CR2032

TODO

  • watchdog for even deeper sleep during dim phase
  • button for toggling power(manual deep sleep)

Example videos

demo board bottled

About

Fireflies in a jar using charlieplexing and bit angle modulation

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published