ATtiny hacks: Roll 2d6 with an ATtiny
posted Sep 16th 2011 6:00am by Brian Benchofffiled under: ATtiny hacks


A pair of 6-sided electric dice (original in Dutch, here’s the Google Translate link) was sent in on the tip line for our ATtiny hacks theme. We really appreciate the simplicity of the circuit; it really shows how the complexity of discrete components can be cut down with a simple microcontroller.
The circuit is very simple – An ATtiny26 serves as the core of the project. Fourteen LEDs are connected to fourteen pins on the micro. The tiny26 might be a bit overkill. With Charlieplexing, we suspect this build could have been completed with an 8-pin micro like an ATtiny25. The code for the build (written in BASIC with BASCOM-AVR), board files and schematics have all been posted.
We’ve seen a few electronic dice builds before. this build uses an ATmega328 in a hugely overwrought circuit. Compared to what can be done with a 555, the ATtiny26 build provides a very nice middle ground.
Thanks [Roeland] for sending this in.








The PIC microcontroller: Your personal Introduction by John Morton. Does this using a PIC12F508 which only provides 6 i/o pins (well 5 i/o and 1 input only).
Here is an extract from the project.
http://books.google.co.uk/books?id=v9qwbBalahoC&pg=PA94&lpg=PA94&dq=the+pic+microcontroller+your+personal+introduction+dice&source=bl&ots=5JzDlRUWgf&sig=kpljrI0FsgBGJHnCvbjt1A3jfSI&hl=en&ei=T1ZzTu_EDsrHsga9oaHOCw&sa=X&oi=book_result&ct=result&resnum=2&ved=0CCUQ6AEwAQ#v=onepage&q&f=false