Organize and Share your Electronics the way you want. Sign-Up for a free account now. It takes only 30 seconds!

How to make high-tech LED decorations for the holidays

How to make high-tech LED decorations for the holidays

Here we present two open-source, do-it-yourself, microcontroller-powered holiday electronics projects, A micro-readerboard Christmas tree ornament and a mini-LED Hanukkah menorah.

These two projects are based on the Atmel ATtiny2313, a powerful little 8-bit AVR microcontroller. This microcontroller is an inexpensive single-chip computer complete with a clock, 2 kB of flash memory, and 128 bytes each of SRAM and EEPROM memory.

As we have the chip configured, 17 of the chip’s 20 pins can be used as logical outputs to directly drive LEDs. The remaining three pins are for power (2.7 – 5.5 V DC), ground, and a reset pin reserved for programming use. You can find a diagram of that configuration here.

Since the microcontroller is a little computer, it doesn’t really do anything without a program. We wrote our two programs in C, and they do basically what you’d expect: tell the chip when to turn the different lights on and off. There’s a little bit of work in building the font table for the ornament, but even that isn’t so bad.

One trick that we used: An integer representing the current message displayed on the ornament (or the day on the menorah) is stored in EEPROM, a type of nonvolatile memory, in order to let the chip change its behavior from the previous time that it was turned on. Once the code was written, we used open source, cross-platform development tools (including avr-gcc and avrdude) to compile the C code into a binary firmware object and program the device through a low-cost USB programmer.

Visit Here for more.

 

More Articles to Read

Estimating Power for ADSP-BF561 Blackfin® Processors
Estimating Power for ADSP-BF561 Blackfin® Processors
Teach Your Arduino to Switch Itself Off!
Teach Your Arduino to Switch Itself Off!
Control a tracked robot with your mind (or joystick)
Control a tracked robot with your mind (or joystick)
A 400W (1kW Peak) 100A electronic load using linear MOSFETs
A 400W (1kW Peak) 100A electronic load using linear MOSFETs
Shirt Pocket Transceiver with the Si5351 and OLED
Shirt Pocket Transceiver with the Si5351 and OLED
All metal C930e webcam
All metal C930e webcam
The Soldering Tools That Make Your Life Easier
The Soldering Tools That Make Your Life Easier
App note: Operation evaluation of ultra low ON resistance MOSFET supporting quick charge for 1 c ...
App note: Operation evaluation of ultra low ON resistance MOSFET supporting quick charge for 1 cell Lithium ion battery protection
Synthesized Sidetone
Synthesized Sidetone
App note: Application precautions: Power MOSFET application notes
App note: Application precautions: Power MOSFET application notes

Top




Shares