AVR Skeet Shooting Game 3d model
3dmdb logo
Thingiverse
AVR Skeet Shooting Game

AVR Skeet Shooting Game

by Thingiverse
Last crawled date: 4 years, 3 months ago
This electronic skeet shoot game is based on a concept by masonhorder (https://www.instructables.com/id/DIY-Aurduino-LED-Game/).
Video
https://youtu.be/5qr4b2HbMCg
Design
Most of the design is in the layout of the printed circuit board. It becomes the front panel for a simple box that was created using OpenSCAD. Since the PCB is the front panel, all components that are not required by the user are mounted on the back of the PCB. To continue to use DIP packages for both the ATTiny85 and MAX7219 chips, standard IC sockets are mounted on the back by flating out the pins and soldering them like an SMD device.
LED bar graph displays are used instead of individual LEDs. By using two 10 Segment Red, Yellow, Green, Blue LED Bar Graph displays along with two Blue LED bar graph displays, it gives a total of 40 LEDs in a relatively small space. There are four red bars in the center to represent the "target" area. Three 7 segment common cathode LED displays are used to display the level, number of LEDs hit in the target area, number of shots left and the score. These are all driven by a MAX7219 driver IC which in-turn is controlled by an ATTiny85 microcontroller. The microcontroller also drives a speaker and handles the input from the two switches.
Games
There are nine levels of play:
Level 1 - Sequential alternating four led skeet with a fixed 50mS between each frame.
Level 2 - Sequential alternating three led skeet with a fixed 40mS between each frame.
Level 3 - Sequential alternating two led skeet with a fixed 30mS between each frame.
Level 4 - Sequential alternating one led skeet with a fixed 30mS between each frame.
Level 5 - Sequential alternating three led skeet with a variable time between each frame.
Level 6 - Sequential alternating two led skeet with a variable time between each frame.
Level 7 - Sequential alternating one led skeet with a variable time between each frame.
Level 8 - Random two led skeet with a fixed 600mS before the next change.
Level 9 - Random two led skeet with a variable time before the next change.
You have 24 shots for each level. Each red LED "hit" will give you 1 point. So on Level 1, each shot can score up to 4 points. After 24 shots, your combined score is shown. Pressing the Shoot button again will allow you select a new level or play the same level again.
Printing/Assembly
The Eagle files for the Schematic and PCB layout have been included. I made my board using the toner method. I also printed on the top side board using the toner method as well.
The 3D printing of the box is simple and requires no support. Drill out the PCB mount holes with a 2.5mm drill and create a thread using a 3mm tap. Use M3 screws to mount the PCB.
Parts used
1 x ATTiny85
1 x MAX7219
1 x 78M05 (5V SMD regulator)
3 x 0.1uF 1206
1 x 10uF 1206 non-polar
1 x 220uF 10V 7343
1 x TECHNIK SMD power socket
2 x 10 Bar Graph (Blue) (https://www.ebay.com.au/itm/381523946953)
2 x 10 Bar Graph (Red, Yellow, Green Blue) (https://www.ebay.com.au/itm/382542287112)
3 x TSS-307EWA 9mm 7 Segment Red Common Cathode Display (http://www.rockby.com.au/catresultsSql_12.cfm?select=57&offset=321&stock_no=40663)
1 x 22K 1206
1 x 4K7 1206
2 x 1K 1206
2 x 12mm x 12mm Tactile switches
1 x Passive Buzzer 47
1 x 28 Pin IC Socket
1 x 8 Pin IC Socket
Software
Sketch included - code is documented.

Tags