Tuesday, July 7

Upgrading An Old Lantern

[Shockwaver] stumbled across some old kerosene lanterns, and decided he also stumbled across his next project. He decided to leave the kerosene out, and in its place used some RGB LEDs to bring the lanterns back to life. This is quite an upgrade. Considering the burning kerosene will only put out a few colors of light, the astute reader will have realized the RGB array has the ability put out over 16 million colors.

After some initial testing, he settled on a 24 LED circle array powered by an ATtiny85. Adafruit’s fast LED library helped him keep the code within the tight memory requirements. [Shockwaver] was not used to working with the such a small amount of memory, but after some fiddling he was able to make it work in the end, using 8,126 bytes.

The source can be found on his github page. Be sure to check out the video below to see the RGB lantern in action.


Filed under: ATtiny Hacks, led hacks

No comments:

Post a Comment