Rubber Band Gun Using an Arduino

by JohnathanF4 in Circuits > Arduino

4547 Views, 23 Favorites, 0 Comments

Rubber Band Gun Using an Arduino

Rubber Band Gun

I am new to the Arduino and with some research and hard work I was able to get this working. If I can do it, so can you! I had a few problems making the rubber band gun and I hope this instructable makes it easier for others to duplicate.

Materials

20161202_144738.jpg

3 Continuous Servo motors

1 Arduino - I used an Arduino Mega

Connector wires

4 AA battery holder and batteries

Wii Nunchuck

Wii Nunchuck Adapter

https://www.amazon.com/s/ref=nb_sb_noss?url=search...

1 Bread Board

Schematic

Screen Shot 2016-12-02 at 1.03.33 PM.png
Screen Shot 2016-12-02 at 1.04.55 PM.png
20161202_144518.jpg
20161202_144449.jpg

Follow the schematic and ensure all wires are in the proper place

Code

You will need to add the "nunchuck_func.h" to the library.

Test the Code/check to See If Servos Work Properly

  1. Upload the code to your Arduino.
  2. Check all connections
  3. Plug Arduino into a power supply

* If the servos are continuously spinning you will need to calibrate each one. There is a small screw on the side and all you have to do is adjust it until it stops spinning. You can also watch this youtube video to find out how to do it.

Around the 1:50 second mark is when he talks about calibrating the servo

Build the Gun Platform

584f45698852ddae600010e9.jpeg
584f45b97a9cb67bc3000c9f.jpeg
20161130_142651.jpg
584f466e65d2216366000758.jpeg
20161130_142603.jpg
Screen Shot 2016-12-12 at 6.15.35 PM.png
584f48ac65d2216366000760.jpeg
584f4825e02ad6188e00163c.jpeg

I built mine out of some scrap cedar that was left over from a woodworking project. Enjoy shooting things and I hope this works for you!