https://github.com/mutcianm/tinyfireflies
Fireflies in a jar using charlieplexing and bit angle modulation
https://github.com/mutcianm/tinyfireflies
attiny attiny13 avr bam charlieplexing fireflies leds
Last synced: 4 months ago
JSON representation
Fireflies in a jar using charlieplexing and bit angle modulation
- Host: GitHub
- URL: https://github.com/mutcianm/tinyfireflies
- Owner: mutcianm
- Created: 2018-02-15T13:56:58.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-07T15:23:12.000Z (about 8 years ago)
- Last Synced: 2025-10-20T07:55:31.190Z (8 months ago)
- Topics: attiny, attiny13, avr, bam, charlieplexing, fireflies, leds
- Language: CMake
- Size: 6.84 KB
- Stars: 0
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
[](https://i.imgur.com/cufzkq7.mp4) [](https://i.imgur.com/o5OHXny.mp4)