-
Project Overview
12/01/2018 at 19:57 • 0 commentsIt 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.
- ALL THE MODES (looping)
- ALL - ON
- ALL - Flashing
- Alternating even/odd - (flashing)
- Alternating even/odd - (on-off)
- Binary Counter
- Grey Code Counter
- Knight Rider Scanner (only middle row)
- Looping Around Roof
- Random Flashing
- right shift in 1 until all on, then left shift in 0 until all off
Components
- 1 House PCB
- 1 ATtiny85
- 1 MCP23017
- 16 LEDs (red, orange, yellow, green, blue)
- 16 0805 SMD Resistors (10k ohm pullups for i2c and 137 ohm LED current limiting)
- 1 Power Switch
- 1 2032 Battery Holder (battery NOT included)
-
YouTube Video of Modes
12/01/2018 at 19:56 • 0 comments