View on GitHub

Hammes Hacks

Projects designed by Emily Hammes

Tiny Dice

Introduction

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 compatable. Code comes preloaded onto the microcontroller.

Theory

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

Materials

To solder the dice follow these steps:

schmatic

  1. Solder on all 14 LEDS paying attention to the LED orientation on the silkscreen.
  2. Solder the capacitor onto the PCB.
  3. Solder the resistors onto the PCB.
  4. Solder the battery holder onto the PCB.
  5. Solder the ATtiny13A onto the PCB.
  6. Solder the button onto the PCB.

Uploading Code

Whats Inside the PCB?

schmatic

This is the schematic of the PCB, showing how all the components are connected.

PCBPCB

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.