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!