Introduction: Simple Arduino Pan & Tilt System
Hello everybody! Today, I'm going to show you how to make a pan & and tilt kit. Let's get in to the build!
Step 1: Parts
For the pan & tilt kit, you will need:
- 9G Micro Servo (2)
- Arduino Uno (1)
- Jumpers (6)
- 3D printer w/ Filament
- Servo Horn pack (1) (should come with servos)
- Assorted screws (3)
- Rubber feet(4)
You can ignore the camera equipment mounted on the pan/tilt, that'll be covered in another instructable that's coming soon.
Step 2: Printing the Parts
These files were made Thingiverse user fbuenonet, check out his user page. Here's the link:
Anyway, the .stl files are above, so just follow the directions for if you have or do not have a 3D printer. Make sure to slice the files before you print.
***STEPS IF YOU HAVE A 3D PRINTER
Upload these files into your SD card or upload them to your printer. Keep that print time in mind when scaling the files up or down. Load the new g code files into your 3D printer (I use a PRUSA is MK2, so I just put the files onto a SD card, but if you have a wireless printer, just upload the files wirelessly). Start the print and you are done.
***STEPS FOR SOMEONE WHO DOES NOT HAVE A 3D PRINTER
First, Choose the printing service you want to use. I recommend that you use 3D hubs, since their file sharing system is very easy to use. Upload the files and chose the hub you want to use. The hubs also give you the option of filament you want to use. Most filaments would be fine for this project, just use common sense when choosing. For example, printing this crossbow in a super flexible filament would not be that great of an idea, since the functionality of a crossbow is based on having a tense frame. The site will guide you through payment and the hub will give you an estimated delivery date as well
Step 3: Assembling the Pan & Tilt
The pieces of the Pan/Tilt print have parts were you need to place servo horns on your servos for said servos to fit securely. It's pretty obvious which horns fit where, so you can handle that yourself. So insert the proper horns into the proper holes before you assemble the whole pan/tilt system. Once you have done that, screw a servo in to the bottom plate. Make sure to attach rubber feet to ensure that the pan/tilt is balanced. Now place the "tapa" piece on top of the servo you have screwed in to the base. Use a small amount of tape to secure you 9G servo. Now just tape your other servo to the "camara" piece and screw said servo into the horn located in the side of the "tapa" piece. Secure that servo with another screw through the back hole of the "camara" piece. Now, on to wiring!
Step 4: Wiring
Wiring for this project is fairly basic. in fact, you could change how you wire it depending on if you want to mess with the code a little bit. Anyway, you need to connect the GND wires of your servos to one of three GND ports on the Arduino. Next, connect the V+ wire of one of you reserves to 5v, and the other V+ wire of your other servo to 3.3v. After that, connect the input wires of your servos to any PWM port (the code specifies 9 and 10, but as I said before you can change that with minor adjustments).
Step 5: Code
The cod is right above. Upload it to the Arduino and your pan and tilt kit will begin to work in seconds. Alright, thanks for reading and, as always, Happy Making!
P.S. I also have a youtube video about this project, so if you would like to check it out click the link below. Thanks again!
We have a be nice policy.
Please be positive and constructive.