Simple electronic dice

Step 3Software

It's a no brainer that it can't work without a brain. We're using the ATTiny26 because it's small, cheap and powerful enough for the dice to work.

I had some problems changing the random number to a number between 1 and 6. The ciel function is just too strong for the little avr. Then I got an idea. I devide the number with 6 and take the remainder and increase it by 1. As you can see, it works :)
dice.c717 bytes
« Previous StepDownload PDFView All StepsNext Step »

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
12
Followers
5
Author:DemonDomen