This guide provides step-by-step instructions, PCB Gerber design files, CAD 3D print files, specific BSP image and bash/python3.0 software.
PhyQuest is a single player demo inspired by the carnival game Duck Hunt (PhyQuest is cooler because it has a cowboy hotdog). The system starts once the player takes down the UFO target. Once activated, the player will have ~45 seconds to earn as many points as possible by taking down any of the targets. Their score and player ID will appear on laser gun's leader board, the I2C LCD screen.
OverviewLet's break down the project into sections.
1. Quickstart - Booting the development kit, getting comfortable with the system and program startup software.
2. Targets - Servos, photoresistors and 3D models.
3. Laser Gun/Transmitter - PCB designs and 3D casing model.
4. Optional: Audio - Memory for background music and trigger "pew, pew" noise .
5. Housing & Misc. - Structure
QuickstartHere are some resources to get the board booted and how to work with various peripherals. Don't worry, this tutorial will walk through everything you need to know to get this system working.
Startup Program Software
TargetsServos
The 5V servo motors control the movement of the target by communicating with PWM on the expansion board. The phyBOARD-6ULL expansion rail only outputs 3.3V, therefore an additional power circuit was constructed to increase the supplied voltage and protect the rail on the Segin.
Photoresistors
The purpose of the photoresistor is to trigger the motion reaction by it's servo. The photoresistor is in series with a 10k resister to protect the voltage rail on the phyBOARD-6ULL.
A custom PSB was developed for the laser gun. Here are the various features that were included:
- DIP Switch- ON/OFF Switch
- I2C LCD- Leader board
- Push button- Trigger
- 555 Timers- Denies the user from just holding down the trigger and using the gun as a laser pointer. Times out the laser and motor.
- Laser
- Vibration Motor - Provides physical feature when trigger is pulled.
- Audio Jumper- Providing two ways of triggering "pew, pew" noise
What's a 555 Timer? How does it work?
Here are a couple slides explaining how the Monostable 555 Timer works for this design. If you want to find out more about 555 timers, here are some great resources:
- 555 Timer Explained by The Learning Circuit (video)
- 555 Simulator by Falstad (online tool)
There are 3 audio files that can be downloaded from this project. Please look for them under the category of "Schematics and circuit diagrams".
Background Music & Pew, Pew Noise
See "Schematics and circuit diagrams" attachments for audio files.
3D Printed Housing & Misc.See "CAD - Enclosures and custom parts" attachments for CAD files.
Comments
Please log in or sign up to comment.