TinyDice LED Die (Arduino Compatible)

Introduction: TinyDice LED Die (Arduino Compatible)

About: Industrial Designer. Interested in all kind of projects, mainly electronics and object manufacturing.

I used an ATtiny25 to control some LEDs, it generates a number randomly and displays it as a die.
It first displays light sequence, then the random number and it finally goes to sleep, consuming less than 0.1uA untill someone presses the button and wakes it up to start again, battery will last about 250 YEARS when asleep.

The code is fully compatible with arduino and written on the Arduino IDE, for further info on how to program the ATtiny using the arduino ide visit This Guide.

T
he code can be downloaded here.

Microcontroller Contest

Participated in the
Microcontroller Contest

Be the First to Share

    Recommendations

    • Make it Glow Contest

      Make it Glow Contest
    • First Time Author Contest

      First Time Author Contest
    • PCB Challenge

      PCB Challenge

    12 Discussions

    0
    styker17
    styker17

    6 years ago on Introduction

    Hi, is this line:

    ADCSRA &= ~(1 << ADEN);

    same as writing:

    ADCSRA=0

    0
    kushalverma
    kushalverma

    9 years ago on Introduction

    hi, can you plz tell the steps to make this astonishing led dice plz.. THANKS

    0
    Emiliano Valencia
    Emiliano Valencia

    Reply 9 years ago on Introduction

    Hi, I didn't really document it, so i have no way of doing so, but a better, newer version of it is coming, this time with the full step by step guide.
    ill tell u when I'm done with it.

    0
    maxchu765
    maxchu765

    Reply 7 years ago on Introduction

    When is this instructable coming?

    0
    dan3008
    dan3008

    Reply 6 years ago on Introduction

    https://www.instructables.com/id/ATtiny854525-LED-dice-Super-simple-and-CHEAP/?ALLSTEPS

    0
    ninjamark
    ninjamark

    7 years ago on Introduction

    Interesting solution. I dont know what his schematic is but here is the basic wiring for the leds if that helps anyone.

    Pin 0 powers 2 leds (bottom left,top right)
    Pin 1 powers 2 leds (middle left, middle right)
    Pin 3 powers 1 led (Center middle )
    Pin 4 powers 2 leds (top left, bottom right)


    X X
    4 0

    X X X
    1 3 1

    X X
    0 4



    0
    Snuletek
    Snuletek

    Reply 8 years ago on Introduction

    to me it looks charlie plexed :) google around on that a bit and i think you should be on your way :)

    0
    Emiliano Valencia
    Emiliano Valencia

    Reply 8 years ago on Introduction

    Hi, it is not charlieplexed, there are 3 pairs of LEDS and one that is on it's own, using only 4 pins, see the video to find the pairs.

    0
    Snuletek
    Snuletek

    Reply 8 years ago on Introduction

    As allways I tend to overdo it. Your way is a much simpler and much nicer way to do it :) kudos to you :D

    0
    Emiliano Valencia
    Emiliano Valencia

    Reply 9 years ago on Introduction

    Hi, I currently have no schematic since this project was built on-the-go, along with the code, but I'll make one soon and upload it.

    0
    vishalapr
    vishalapr

    9 years ago on Introduction

    THIS IS ASTONISHING!!!
    Have a look at my ibles as well
    Rated 5*!!!!
    Thanks for sharing such an amazing ible with us!