Interface Servomotor With Arduino Uno
by Technoesolution2020 in Circuits > Arduino
462 Views, 3 Favorites, 0 Comments
Interface Servomotor With Arduino Uno
Hello Friends welcome back to Techno-E-Solution, In this Video I'll show you how to "Interface Servomotor With Arduino Uno". For making this project I used a Servomotor SG-90 & Arduino Uno microcontroller. Generally all motors rotate 360 degree but servo motor rotates at 180 degree.The servomotor has two types AC Servomotor & DC Servomotor. A Servo motor is a rotary actuator which rotate the motor in 180 degree.The servomechanism are connected to the motor to rotate it in 180 degree. The servo motor is mainly used in robotics for specific angular movement. The servo motor is used in RC cars for steering.The rotational angle of the servo motor can be controlled by using Arduino.
Follow me on :-
Facebook :- https://www.facebook.com/TechnoShubham
Instagram :- https://www.facebook.com/TechnoShubham
Instructables :- https://www.instructables.com/member/Technoesolution2020/instructables/
Dailymotion :- https://www.dailymotion.com/technoesolution
Youtube :- https://www.youtube.com/channel/UC_5HS4mSYyrLXwtX...
If you like this project subscribe us on Youtube, So without wasting time Let's get started..............
MATERIAL REQUIRED
For making this project we need some material, I provide the best buy link if want to buy go through it.
CIRCUIT DIAGRAM
Follow the circuit diagram for making the connection. I make this circuit in Easy EDA software.
<<<<< Arduino + Servo Motor >>>>>
5V ----- VCC
GND ----- GND
D9 ----- PWM
Next PCB
NextPCB is a high-quality PCB Manufacturer. With professional PCB manufacturing capabilities, our PCB engineers with more than 10 years of experience will double-check your engineering files.
NextPCB is certified by IATF16949, ISO9001, ISO14001, UL, CQC, RoHS and REACH; more importantly, we handle the whole process including the PCB prototype, PCB manufacturing, PCB assembly, testing, and final shipment. We are capable of assembling BGA, Micro-BGA, QFN, and other leadless package parts. We also have an online parts shop, you can choose any parts you need.
If you want a Printed circuit board go through the NEXT PCB
ARDUINO CODE
Simply Copy the following code & upload in your Arduino IDE software.
/* * Hello friend welcome to Techno-E-Solution. * Here is a code for Interfacing Servomotor with Arduino */ #include <Servo.h> Servo myservo; int pos = 0; // variable to store the servo position void setup() { myservo.attach(9); // attaches the servo on pin 9 to the servo object } void loop() { for (pos = 0; pos <= 180; pos += 1) { // goes from 0 degrees to 180 degrees // in steps of 1 degree myservo.write(pos); // tell servo to go to position in variable 'pos' delay(15); // waits 15ms for the servo to reach the position } for (pos = 180; pos >= 0; pos -= 1) { // goes from 180 degrees to 0 degrees myservo.write(pos); // tell servo to go to position in variable 'pos' delay(15); // waits 15ms for the servo to reach the position } }
Downloads
DEMONSTRATION
If you like this Video Do subscribe for my latest project.....
NextDFM Software From NextPCB
A PCB Design Problems Detector, An Engineering Solution Provider Import the Gerber file with one click. No need for complicated file reading steps to review easily and improve efficiency.
Download Software Help you quickly familiarize DFM design specifications and production needs to determine whether there are any manufacturing constraints
FeaturesMake PCB design more standard Prevent the quality flaw Impedance calculation function and lamination automation Automatically generate the best puzzle CAM350 free alternative version Check Gerber files anytime, anywhere and parse it with one click Instate Quote and evaluate delivery time Reduce cost and improve benefit these are advantage comparing to Eagle and Altium