Smalls
Published

Pan & Tilt Assembly for MG90S Servos

A 3D printed pan and tilt assembly for your MG90S servos.

BeginnerFull instructions provided8 hours279
Pan & Tilt Assembly for MG90S Servos

Things used in this project

Hardware components

M2.2 10mm Self-Tapping Screws
×4
M2.2 16mm Self-Tapping Screws
×4
M2.5 12mm Screw
×1
M2.2 5mm Screw
×1
Arduino UNO
Arduino UNO
Or similar Arduino microcontroller that has 2 digital pins.
×1
USB-A to B Cable
USB-A to B Cable
×1
MG90S Servo
You only need 2 servos in total. Link on part is an 8-pack, so only order 1 of these of using the link.
×2

Software apps and online services

Arduino IDE
Arduino IDE
3D Print Slicing App

Hand tools and fabrication machines

Screwdriver
3D Printer (generic)
3D Printer (generic)

Story

Read more

Custom parts and enclosures

MG90S Pan and Tilt Assembly 3D Print Files

All files needed to print the assembly. Recommend 20% infill.

Code

Set Servos to Neutral (90 Degrees)

Arduino
Use this code prior to mounting your servos to set them to the natural position (90 degrees).
#include <Servo.h>

//Created by Smalls on January 1 2024

Servo pan; //create servo object to control a servo
Servo tilt; //create servo object to control a servo

void setup() {
  pan.attach(9); //attaches the servo on pin 9 to the servo object
  tilt.attach(10); //attaches the servo on pin 9 to the servo object
}

void loop() {
  pan.write(90); //resets servo to neutral position
  tilt.write(90); //resets servo to neutral position
  }            

Credits

Smalls

Smalls

6 projects • 27 followers
Making stuff, breaking stuff, and learning everything I can. IG & TT: @smallswonderworks

Comments