A servo is very useful in many projects! In this video we are going to learn how to use the popular SG90 micro servo with Arduino in an easy tutorial.
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$.
WHERE TO BUY
1. SG90 Servo: http://educ8s.tv/part/SG90
2. Arduino Due: http://educ8s.tv/part/ArduinoDue
3. 3.2″ Display: http://educ8s.tv/part/32TFT
4. Distance Sensor: http://educ8s.tv/part/HCSR04
5. Cheap Arduino Uno: http://educ8s.tv/part/ArduinoUno
6. Wires: http://educ8s.tv/part/Wires
Full disclosure: All of the links above are affiliate links. I get a small percentage of each sale they generate. Thank you for your support!
The connection with Arduino is extremely easy. The servo has three leads. The brown one is the Ground so we connect to it Arduino Ground. The red one is Vcc so we connect it to Arduino 5V. The last lead, the yellow one is the signal lead which goes to any digital pin you like. We connect it to digital pin 8 today. As you can see, if we power up Arduino, the servo starts rotating! It is that easy!
CODE OF THE PROJECT
Quiz of Knowledge Android Game
You can download my latest Android Game which is called Quiz of Knowledge here:
Arduino Datalogger: https://www.youtube.com/watch?v=oei3Y6tOhVI
Arduino Weather Station Project: https://www.youtube.com/watch?v=9jN-3DtS1RI
Arduino Nokia 5110 LCD Display: https://www.youtube.com/watch?v=aDwrMeu4k9Y
Arduino OLED display tutorial: https://www.youtube.com/watch?v=A9EwJ7M7OsI
DIY Arduino: https://www.youtube.com/watch?v=npc3uzEVvc0
Educ8s.tv is a Youtube channel and website which is dedicated in developing high quality videos about DIY hardware and software projects. In this channel we develop projects with Arduino, Raspberry Pi, we build robots and simple electronic circuits. Check out our website as well for more information: http://www.educ8s.tv
SUBSCRIBE ON YOUTUBE
Never miss a video: https://www.youtube.com/subscription_center?add_user=educ8s