Skip to content

spbnick/christmas-card

Repository files navigation

Christmas-card

Christmas-card is a firmware for a simple one-off blinking christmas card board.

LEDs off, frontRotatingLEDs on, front Demo video thumbnail

Building

First you'll need the compiler. If you're using a Debian-based Linux you can get it by installing gcc-arm-none-eabi package. Then you'll need the libstammer library. Build it first, then export environment variables pointing to it:

export CFLAGS=-ILIBSTAMMER_DIR LDFLAGS=-LLIBSTAMMER_DIR

LIBSTAMMER_DIR above is the directory where libstammer build is located.

After that you can build the program using make.

Hardware

The hardware is very basic: just a cheap "Blue Pill" board based on STM32F103, with a series of five TLC5916 LED drivers attached via SPI and controlling 40 lights (41 LEDs). Power is supplied through the Micro USB cable attached to the Blue Pill.

The front of the card is made from black cardboard with silver-colored paper on the front, and colored tissue paper on the back for the lights. Two layers of black EVA foam below that provide spacing and light insulation for the surface-mount LEDs. Holes were made with punches of various sizes. Round pieces of white polyethylene foam are inserted into the light holes for diffusion.

Four colored LEDs are used: white, red, yellow, and green. The tissue paper is used for providing color when LEDs are off, and improving color richness when LEDs are on. The card is held together by acrylic glass on the front, and the prototype board with all the electronic at the back, attached with four 2mm screws. Stands are made from thick copper wire insulated with heat-shrink tubing.

Photos

off_front off_front_left off_right off_back_right off_back off_back_left

Releases

No releases published

Packages

No packages published