Skip to content

Arduino sketch which adds a laser and sound effects to a Nerf gun.

License

Notifications You must be signed in to change notification settings

jleung51-coursework/laser_nerf_gun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laser Nerf Gun

Arduino sketch which adds a laser and sound effects to a Nerf gun.

Created by Charles Li and Jeffrey Leung.

Final Product

Demo video

Setup

Libraries Used

Setting up the Code

  • 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

Circuit Components Used

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)

Setting up the Circuit

Schematic

  • The speaker is, by default in the PCM library, set to output on pin 11

Annotated Picture

Verify and upload the code to the Arduino and you're done!

About

Arduino sketch which adds a laser and sound effects to a Nerf gun.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages