Turn-key PCB assembly services in prototype quantities or low-volume to mid-volume production runs

Electronic LED dice with tilt sensor

There are many electronic LED dice projects around where you can choose the layout, triggering and circuit. This one has something a bit different from other. First of all PCB is round and LEDs are numbered instead of positioned to mimic physical dice. LEDs here are positioned in circular pattern that labeled from 1 to 6. When dice is rolled, LEDs display chasing effect and gradually slows down until it stops at one of LEDs.

Dice is built around PIC12LF1822 microcontroller. LEDs are connected by using three wires (Charlieplexing). Dice can be triggered with tilt sensor by shaking the dice. It is powered with coin cell battery. There is a switch to turn on and off. If dice is left powered for long time, it automatically enters sleep mode to save battery from draining. Software relies on rand() function witch is not true random, but is enough for dice project.

[..Source link..]

Bookmark the permalink.

Leave a Reply