The hart of this game is the ATMEL ATmega328P on a stand alone board. Powered by 4 AA NiMD batteries.
Can you find the SECRET SWITCH in the main picture? Where is the SECRET SWITCH?
The first person that answers the TEST question correctly will win a PRO 3 month subscription to Instructables.
This project was from 2 different places. The schematic from here and the code from there.
The blood and sweat from me.
I am not skilled enough yet to actually write code so Maewert was gracious and offered his code for this project. Also he took time to answer a lot of my coding questions.
Video Link. to YouTube to see this in action.
Step 1: Resources and Materials
- 1 ATMege328P-PU
- 1 28 Pin Socket
- 1 Perfboard
- 1 16 Mhz Crystal
- 2 22pF Capacitors
- 1 10K ohm Resistor
- 1 Tact Switch
- 1 NO Push Button
- 14 LED's
- 14 220R Resistors
- 1 Reed Switch
- 1 Small Magnet
- 4 AA NiMD batteries
- 1 Battery Holder for the AA Batteries
- ? Various wires ect
- 1 Project Box
Step 2: Schematic
So i am using a 328P at 16Mhz with an external crystal for this project.
FYI a ATmega328 is not supported by Arduino so make sure you get a ATmega328P or ATmega328P-PU.
Step 3: The Box
Step 4: Prepare the Box
Lay the template on you box where you see fit. I put mine direct in the upper center. Left room the the Dice Roll switch at the bottom of the LED's.
Step 5: The Build, LED's
Soldered the resistors from the cathodes to the " flat wire ". The flat wire is used for making custom Nicd battery packs so it conducts and solders very well. The two center LED's i had to make the resistors L shaped to fit well to the ground strap.
The LED's are wired; Bottom Left to Top Right together. Bottom Right to Top Left together. Left Center and Right Center together, then Center is all by itself. That gives 4 connections per dice. The 4 wires per Dice go to the ATmega 328P, plus ground. 9 wires we need to run to the 328P.
Step 6: The Build, Circuit
Blue wire for the upper dice and white for the lower dice.
Red for positive and black for negative.
The 328 was programmed on my Aceduino then transferred to the project board.
Step 7: Secrete Switch
I notched a groove in the underside of the lid with a Dremel so the switch would be closed to top, outside. Better chance of it working if the magnet used wasn't very strong.
In case you didn't see it the Secrete switch is in the upper left corner of the lid. It has a small magnet there over the reed sw in the first picture.
Thanks for looking. I am sure some of my explanations are not as clear as should be, so if you don't understand some of my rambling just ask and i will try to clear it up