Circuit Playground Nerf Target
by AlexV102 in Circuits > Arduino
1753 Views, 13 Favorites, 0 Comments
Circuit Playground Nerf Target
This project is expanding on my Project Box Instructable, a responsive Nerf Target using Project Box with lights and sound, and uses the Adafruit Circuit Playground as the brains.
Supplies
Circuit Playground:
- Circuit Playground Bluefruit or Circuit Playground Express
- Small Alligator Clip Test Lead
- 3 x AAA Battery Holder with On/Off Switch and 2-Pin JST
or
- Code.org Circuit Playground Individual Kit Pack
- 3 x AAA Battery Holder with On/Off Switch and 2-Pin JST
Software:
Tools you will need:
Parts needed:
- Filament for 3D printing
- 3.5MM Mini Stereo Panel Mount Jack
- 22AWG Silicone Hook Up Wire
- Ring terminal insulated 22-16 AWG #4-#6 Stud (3mm-3.5mm clave) (x2)
- Female Disconnect (x2)
- 3/4 inch Lumber Wood (13.5x18 cm) or (5x7 inch)
- Super glue
- Micro Switch
Nuts, bolts and screws needed:
- #6 x 1/2 sheet metal screw (x6)
- M3x30mm Bolts (x4)
- M3x16mm Bolts (x4)
- M3 Nuts (x8)
- M2x8 bolt (x2)
- M2 Nut (x2)
(Project Box) would protect the the Circuit Playground.
Optional Parts:
Customize Target in Tinkercad
Before we start printing any of the parts, we need to customize the target. I will show you three ways to do that in Tinker Cad below.
This video will show how to make a target insert.
This video will show how to edit the "Target no insert.stl" file and add a custom face to it.
This video will show how to get a Silhouette of an image and create an insert face from it.
image to svg: https://convertio.co/png-svg/
How to Print the Target With 2 Colors Using One Nozzle
If you want to make your artwork visible on your target, you're going to want to print in 2 colors. If you don't have a printer that can print in two colors, this video from Crazy Will Tech Show will show you how to do it.
3D Print Target Parts
Let's print the base parts for the target.
Building the Target
We are going to use Pin 1 and Pin 3 on the micro switch.
Circuit Playground Project Box (optional)
If you want to protect the circuit playground, follow the instructions for this project box. It will also allow you to see the the LED pixels while playing the games.
Programming the Target
Now that we have the target assembled, we can start writing the programs. I have created 3 programs that we can use with our target. Game One is a single player game with the objective to hit the target 10 times in order to win. Game Two is a two player game to see who can successfully hit the target first a total of 5 times. Game Three is a "Crack the Code" game where you set up multiple targets and you have to hit the targets in the right order.
Game 1 - 1 Player Game
This is a one player game with the objective to hit the target 10 times in order to win.
Make code Link: https://makecode.com/_P5UgL2CdpE1J
Game 2 - 2 Player Game
In this game, two players will compete to see who can successfully hit the target first a total of 5 times.
Code Link: https://makecode.com/_6a7d6qRAJ8uo
Game 3 - Puzzle Game
This Puzzle is a fun "Crack the Code" Game that would be an exciting game to play at a party.
Code Link: https://makecode.adafruit.com/50881-11141-21451-28619
Optional Audio Jack
There are two ways to get audio output - one is via the small built-in speaker and the other is by using alligator clips to connect a headphone or powered speaker to the A0/AUDIO pin. We are going to cut a set of alligator clips and connect them to 3.5mm female audio jack so we can connect external speakers. For this step, you will need the audio jack, solder seal wire connectors, wire cutters and heat gun. By using the solder seal wire connectors, the result is a clean connection with no soldering needed. The photos show the finished product.
Conclusion
What other game ideas can you come up with? Please comment below with your suggestions.