ATTiny85 Game Timer – Get Rid of That Old Hourglass!

What did I make? =

This is a little project that uses ATTiny85 to make a simple ā€œgame timerā€, intended to be used with board games that demand timed turns, like ā€œRummikubā€ or ā€œScrabbleā€. Never wait for all that sand getting down for the next turn again!!

The working is simple:

ā€“ A binary preset time selector (00=30s; 01=60s; 10=90s or 11=120s), indicated by two leds showing the selected time;

ā€“ A start/reset button that can be pressed anytime.;

ā€“ ā€œmillis()ā€ counting system [doesnā€™t use delay()];

ā€“ turn on ā€œmusicā€ and timeā€™s up buzzer; and

ā€“ fully programmable in Arduino environment.

= Why did I make it? =

I was tired of searching Game Timer apps for my smartphone. None of them pleased me. So, why not to build one myself?

Much cooler indeed!

Sorry for any english misspelling, itā€™s not my mother language.

Step 1: Previous Knowledge

This Instructable assumes that you know:

  • How to code in Arduino Environment;
  • How to program ATTiny85 (either using Arduino or other uploader);
  • How to assemble parts in a breadboard (for prototyping); and
  • How to solder components in a PCB.

Step 2: Gathering Materials

Shopping List

Amount / Part / Type / Properties

  • REUSABLE:
    • 1 UPLOADER (AVR Programmer, Arduino or any other, just for programming ATTiny85) ā€“ mine is the one at the photo.
    • Soldering iron
    • Board support (optional, but highly advisable)
    • Scissors or x-acto knife
    • Hot glue gun
    • Pliers
    • Tweezers
    • Multimeter
    • Desoldering pump
  • CONSUMABLE
    • 1 Piezo Speaker
    • 1 Yellow (595nm) LED leg yes; pacote 5 mm [THT]
    • 1 Blue (430nm) LED leg yes; pacote 5 mm [THT]
    • 1 Red (633nm) LED leg yes; pacote 5 mm [THT]
    • 3 470Ī© Resistor bands 5;
    • 2 100Ī© Resistor bands 5;
    • 1 22kĪ© Resistor bands 5;
    • 2 10kĪ© Resistor bands 4;
    • 2 Pushbutton
    • 1 attiny85 tipo Atmel AVR; variante dip08 THT; pacote dip; versĆ£o Attiny85-20PU (burned @8MHz internal)
    • 1 LIPO-110mAh variante 110mAh; pacote lipo-110
    • 1 8-pin IC socket
    • 1 PCB
    • contact headers (for using with the battery)
    • EVA sheet
    • Hot glue
    • Wires

Total cost (excluding the program uploader) = LESS THAN 10 DOLLARS!!!

Step 3: Breadboard Mounting

Itā€™s advisable testing the circuit and programming at the breadboard first, so you can be sure the project works!

Step 4: Program and Test

Upload the following (commented) code to your ATTiny85 and see if it works.

For me, Iā€™ve used Arduino as ISP to program the ATTiny85 (@8MHz internal). Iā€™ve used this zipped file (arduino-tiny-0150-0020) to add a working sound ā€œboard infoā€, that makes the Tiny compatible with sounds.

Remember to check if the sounds are working correctly. Not all the ā€œboards infoā€ for the Tiny are compatible with sounds.

Step 5: Soldering

Once you have successfully tested your project, itā€™s time to get it more serious.

I wonā€™t show each step of mounting the components at the PCB because mine might be different from yours.

The trick here is to ā€œsolve the puzzleā€ and make all the components fit in a appropriate order in the PCB.

Tips:

  • Bend the legs of the components so you can ā€œstickā€ it to he PCB, to easy the soldering;
  • Put the legs of connected components in the same hole or in adjacent holes: it will make it more easy to solder;
  • Save the cut legs of the components so you can use it to make connections;
  • Use short strips of wire to make connections that need to be insulated of others because of the circuit layout; and
  • Use the multimeter to check the connections/continuity of the circuit.

Step 6: Finishing Touches

As for the finishing touches, do the following:

  • Plug in the batteries andā€¦
  • TEST IT! MAKE SURE IT WORKS BEFORE THE STEPS BELOW;
  • Cut some EVA squares, to function as a ā€œbumperā€. Hot glue it. Then, cut a rectangle the size of the PCB to insulate and protect the soldering. Hot glue it again. The fourth picture shows the final results;
  • Strip a bit of the wire so you can get a little piece of the insulating plastic. Put these in the battery headers so you wonā€™t invert the battery sides. Use the tweezers;
  • You may put it in a beautiful 3D printed box if you want to, but itā€™s gonna lose some of itā€™s ā€œcharmā€™; and
  • Now, justā€¦

Step 7: GAME ON!

Source: ATTiny85 Game Timer ā€“ Get Rid of That Old Hourglass!


About The Author

Muhammad Bilal

I am a highly skilled and motivated individual with a Master's degree in Computer Science. I have extensive experience in technical writing and a deep understanding of SEO practices.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top