The Tiny Dice is a PCB with 14 LEDs which represent 2 dice faces. The LEDS are controlled by an ATTINY 13 using charlieplexing. Code is uploaded to the device with AVR dude using a Bus Pirate, a AVRisp mk II or similar. It is not arduino compatible. Code comes preloaded onto the microcontroller.
The dice are controlled using Charlieplexing:
The dice pairs are related in the following way:
The button uses a pull up resistor:
Soldering The Dice
- 7 110 Ohm resistors
- 1 capacitor
- 14 LEDs
- 1 ATtiny13A
- 1 button
- 1 battery holder
- 1 coin cell battery
To solder the dice follow these steps:
- Solder on all 14 LEDS paying attention to the LED orientation on the silkscreen.
- Solder the capacitor onto the PCB.
- Solder the resistors onto the PCB.
- Solder the battery holder onto the PCB.
- Solder the ATtiny13A onto the PCB.
- Solder the button onto the PCB.
- Code comes pre-uploaded to the ATtiny. The source can be found on github.
Whats Inside the PCB?
This is the schematic of the PCB, showing how all the components are connected.
Above left is a transparent view of the front of the PCB. Above right is the back of the PCB. Green lines are wires on one side and red lines are wires on the other side of the PCB. The text that will be printed on the board is in magenta on one side and teal on the other. The yellow line is the edge of the board. The gold circles are drilled through the board and have copper on both sides.