Arduino : How to Use a Servo Motor With an External Power
Intro: Arduino : How to Use a Servo Motor With an External Power
This instructable is the written version of my "Arduino : How to Use a Servo Motor with an External Power" YouTube video that I've uploaded recently. I strongly recommend you to check it out.
STEP 1: Tutorial
Servo, can be powered by another power source without Arduino power. Only thing important here is that all the GND are connected to each other.
STEP 2: Hardware Required
Hardware Required :
- Arduino or Genuino Board
- Servo Motor
- Battery for Servo (I used for my servo; 4pcs (1.5V) batteries.)
- Mini Breadboard
- Wires
STEP 3: Circuit
Like this you can add as many servo motors as you want.
***Important! If you will use high voltage battery and you want give power to arduino with same power source, you need to put a 7805 voltage regulator in, and make a parallel circuit for that too.
STEP 4: Code
This example makes use of the Arduino servo library.
STEP 5: If I Was Helpful
First of all, I would like to thank you for reading this guide ! I hope it helps you.
If you want to support me, you can subscribe my channel and watch my videos.
9 Comments
MertArduino 7 months ago
An extra tip:
If you add a 100uF capacitor to the positive and negative (i.e. VCC and GND) legs of the Servo Motor, you can prevent vibrations caused by sudden current fluctuations in the servo motor movements. Remember, the positive and negative legs of the capacitor must be placed correctly.
Another scenario:
If you want to power the entire hardware from an external battery, you can use the VIN pin on the Arduino UNO, but in this scenario, you need to disconnect the VIN pin when connecting the Arduino UNO to the USB port to program it. Otherwise, the Servo Motor may momentarily draw a high current from your USB port and damage your computer. (The positive wire of the battery is connected to the VIN pin.)
renojim2014 7 months ago
MertArduino 7 months ago
An extra tip:
If you add a 100uF capacitor to the positive and negative (i.e. VCC and GND) legs of the Servo Motor, you can prevent vibrations caused by sudden current fluctuations in the servo motor movements. Remember, the positive and negative legs of the capacitor must be placed correctly.
Another scenario:
If you want to power the entire hardware from an external battery, you can use the VIN pin on the Arduino UNO, but in this scenario, you need to disconnect the VIN pin when connecting the Arduino UNO to the USB port to program it. Otherwise, the Servo Motor may momentarily draw a high current from your USB port and damage your computer. (The positive wire of the battery is connected to the VIN pin.)
InstructDA 2 years ago
Pirulina 3 years ago
filipmrsovic 3 years ago
unglaublich 4 years ago
functionaldesign 7 years ago
Nice tutorial. Would be interesting to also see a fritzing diagram where the arduino is connected to the same power source, for example using the mentioned 7805 voltage regulator.
MertArduino 7 years ago
Thank you for your interest. Sorry any missing information.