educ8s.tv shows us how to use a servo motor with Arduino UNO:
A Servo is a small device that has an output shaft. This shaft can be positioned to specific angular positions by sending the servo a coded signal. That’s why we need the Arduino, in oder to send that signal to the servo. Servos in general require a lot of current to operate since they have a motor inside. If you only need to control one small servo like this one you can connect it directly to Arduino. If you need to control two or more servos you need an external power supply or battery pack. Today we are going to use only one servo so we are going to connect it directly to an Arduino Uno. We are using an SG90 micro servo today which is a very popular one and very cheap. It costs around 3$.
Arduino Tutorial: Using a Servo SG90 with Arduino – [Link]