This is a christmas tree ornament that uses an Attiny and 3 LEDs. The power is supplied by a CR2032 battery.
- Arduino IDE version 1.8.3 (The attine10 core is not working on higher versions)
- ATtiny10Core
- USBASP programmer(Need recent firmware, will probably require an update if bought from eBay)
See here to learn how to install the required software and program the MCU.
The PCB does not include a programming port. It is possible to use an external programmer with a socket, or use one of the PCB as the programmer. To do it:
- Solder wires to one PCB as seen in the images folder (including RESET on the backside, 5 wires in total)
- Plug the wires in one end of the programmer's cable
- Disconnect the cable from the programmer
- Place the IC on the PCB, at the right place and in the right direction, and hold it with one hand
- With the other hand, plug the wire in the programmer
- Program with the Arduino IDE
- Disconnect the programmer's cable
- Start with the MCU.
- Continue with the leds (D*) and the resistors (R*). For the leds, the small green dot is the negative side and it goes in the "white box".
- Solder the battery holder. The + side is at the top.
- PCB (Printed Circuit Boards, order from OSHPark or another supplier)
- MCU (Attiny4-5-9-10)
- 3 * 0805 1kOhm resistors
- 3 * 0805 LED (different colors)
- 2032 battery holder (with distance between pins of 20mm)
- Real pseudo-random LEDs pattern
- Add a small programming port
- Use a smaller battery so it is smaller than the board
- Edward Rousseau - Initial work - Edward Rousseau
This project is licensed under the GPLv3 - see the LICENSE file for details