This easy to build circuit is an electronic die. It uses an ATtiny2313 microcontroller programmed in Bascom. The display is a 7-segment LED display. Pressing the push-button will roll the die until the push-button is released. A random number from 1 to 6 will then be shown. A simple way to play quietly during the evening when the children are in bed.
In the Bascom source code a comment explains how to adapt the program from a common-cathode (CC) 7-segment display for common-anode (CA) 7-segment display.
Original text in German:
Diese sehr schnell aufzubauende Schaltung ist eine Variante eines elektronischen Wuerfels. Benutzt wird ein ATTiny2313 Microcontroller, programmiert in Bascom. Die Anzeige der Zahlen 1-6 erfolgt auf einer 7-Segment-Anzeige. Mit Tastendruck laufen die Zahlen bis zum Loslassen sehr schnell durch. Per Zufall leuchtet dann bis zum naechsten Tastendruck eine Zahl zwischen 1 und 6 auf. Eine einfache Methode um Abends, wenn die Kinder schlafen, etc lautlos zu wuerfeln. Im Bascom-Quellcode ist beschrieben, wie man die für CC (Commom Cathode) 7-Segment-Anzeigen geschriebene Software in kuerzester Zeit und ganz einfach für CA (Common Anode) 7-Segment-Anzeigen umprogrammiert.
Stueckliste / Part list:
5 Volt stabilisierte Gleichspannungsquelle / 5VDC stabilised voltage source
1 x Taster / push-button
2 x 22 kOhm
7 x 470 Ohm
2 x 33 pF (Oder ähnlich/or similar)
1 x 20 MHz Quarzresonator (Oder langsamer, Software anzupassen/or slower with software mod)
1 x ATTiny2313
1 x 7-Segment-Anzeige CC (Oder CA, Software anzupassen/or CA with software mod)