Arduino sketch which adds a laser and sound effects to a Nerf gun.
Created by Charles Li and Jeffrey Leung.
- Instructions for installing and using PCM
- Simplified instructions for installing PCM:
- Open the Arduino program
- Navigate to File, Preferences
- Note the location of the Arduino sketchbook folder
- Move the libraries folder in this repository into the aforementioned sketchbook folder
- Open laser_nerf_gun/laser_nerf_gun.ino in the Arduino program
Arduino Uno (SparkFun Redboard)
Interlink Force Sensing Resistor - 0.2" Circular
SKU: SFE-09673
Seeed Studio Laser Emitter Module
SKU: SE-IRL104A2B
USB Speaker JY-2030 (Speaker extracted)
- The speaker is, by default in the PCM library, set to output on pin 11
Verify and upload the code to the Arduino and you're done!