2021 ATtiny10 Christmas Tree
I love Christmas Trees.. So I've done many fire fly jars with ATtiny85's. I wanted to make a miniature Christmas tree that would run off a watch battery (CR2032). I was new to Attiny10 and was able to get it sleep at .09uA. So I started from there. Did the typical Charlie plex to get 6 individual lights from 3 pins. I doubled up on the colored lights making a total of 11 ( 10 colored and 1 white for a Star).
The glassy looks on LED and glue used was UV glue.. Looks like glass when done.
The code is such that now with firmware v1.3 you can now use the reset button as a mode button and it works great. I have 5 modes on it.
* 1 diagnostic light flash loops 20 times
* 2 All lights on for approx. 1 min 45 sec
* 3 Wild card (does modes 2-4)
* 4 Faster Slower loops 16 times
* 5 Flash on and off
Updated 08-24-2022:
Code re-write to port to Microchip studio IDE. (which is most up to date and optimized)
Updated 12-24-2021:
Added 5th mode with flashing lights (except Star) for about 1 minute 10 sec. and lengthened time for other modes for longer display. Also PCB available at Oshpark https://oshpark.com/profiles/shermluge Version 4.3 is current PCB.
For Microchip Studio use this code: (with -Os Optimization)
For Arduino IDE use this code:
A Penny, A Grain of rice, and the Attiny10 microcontroller.