Close

Project Overview

A project log for Lit Christmas Ornament/Badge

It is a PCB ornament which is designed to look like a house in the winter with Christmas lights.

thelogicofpithelogicofpi 12/01/2018 at 19:570 Comments

It is a PCB ornament which is designed to look like a house in the winter with Christmas lights. It is an Attiny85, controlling over i2c an MCP23017 which then drives the leds, it is all powered off of one cr2032 battery (NOT included). The code is using the watchdog timer with different periods to setup different blink mode timing. In the code linked via GitHub, there are the examples with how it is done as well as how long each period is (if you are going to reprogram yourself this will be useful) keep in mind the longer the lights are on for each mode the shorter the batteries will last. so blinking is the longest lasting as well as only having a couple on at a time.

There are a few modes, the default option (ALL OF THEM) is to have all the modes play after each-other. But if you would like to select just one that you like, there is a dropdown where you can select just one. Since these are controlled by a mcp23017, there are essentially 16 LED outputs, in the form of 2 bytes (8 bits), there are many ways to set a pattern.

Components

Discussions