The Arduino library is a great place to start, as it really only requires a few lines of code. Right out of the box, MG90S servos work with the prescribed Arduino ‘Servo’ code, which rotates the servo back and forth based on its built-in servo library. Both the MG90S and the SG90 are wired the same and use similar code. The MG90S is also slightly faster than the SG90, which is a further justification for why it is used here. The MG90S is another small servo motor that is similar to the SG90, but weighs slightly more (14g) and has metal gears instead of plastic. The goal of this project is to introduce users into the workings of a servo motor, how PWM (pulse-width modulation) controls a servo motor, and how Arduino can interface with servo motors to produce desired movements to great precision.
![small servo motor arduino small servo motor arduino](https://cdn.instructables.com/ORIG/FSZ/8THR/IBXHIW13/FSZ8THRIBXHIW13.jpg)
The basics and composition of an SG90 will be explored, and the application of several servo codes and applications will be given for another type of servo motor, the MG90S. In this tutorial, an Arduino board will be used to power and control a small servo motor. Lastly, servo motors use a circuit to control and send feedback information to a given controller, which in our case is an Arduino board (read more about servo motors here).
Small servo motor arduino series#
Often, servo motors contain a series of gears that either speed up or slow down and smooth the movement of the DC motor.
![small servo motor arduino small servo motor arduino](https://pg-cdn-a2.datacaciques.com/00/Mzk1Mw/17/11/09/eit8g1n6557k511d/a0e504ef8a7f2be6.jpg)
![small servo motor arduino small servo motor arduino](https://ardubotics.eu/12226-thickbox/towerpro-sg90-9g-micro-small-servo-motor-360-degree-turn-rc-robot-helicopter-for-arduino-2560-uno-r3-avr-a049.jpg)
The low-cost servos that are found in maker projects use potentiometers to register voltages as positions on the rotating plane of the servo. Servo motors are often comprised of DC motors that use feedback mechanisms to move with great precision from one position to another. Servo motors can be found in robotic arms, cameras, lathes, CNC machines, printing presses, and other engineering applications where precision and repeated movement are required.