Hello Friends , I am Cyberautics and today in this session we learn about Servo Motor ,How to Operate Servo Motor using Arduino and Degree angles for manipulating rotors
What is Servo Motor
- Servo Motor is a simply Rotating motor but in a specified degree position.
- Servo Motor has Rotating Arm that can rotate up to 180 degree.
- Servo Motor is used in RC system, Car's Steering, Robotics, Automation, UR sensor based Radar System and many more.
How Servo Motor works
- Basically Servo Motor is a Simple Motor which is attached with Arduino Uno or similar Boards using just one input pins .
- Servo Motor has a inbuilt Driver which is responsive for changes in angle of the motor according to the degree position received from Arduino.
- They have Internally feedback circuit that makes sure angle position achieved or not?
Connection Diagram
- A servo Motor has a everything built in motor , Feedback circuit and motor driver.
- It just need to power , Control and Ground pin .
Code
#include<Servo.h>
Servo servo1;
void setup() {
servo1.attach(10);
}
void loop() {
servo1.write(0);
delay(1000);
servo1.write(180);
delay(1000);
}
Explanation
- Here We include the servo motor library for perform servo motor operations.
- 'Servo servo1 ' indicates we make a variable 'servo1' for 'Servo' library.
- in setup we use attach() function for assign the control pin number 10 , It get the position from pin no.10.
- servo1.write() means set the specific motor degree position .
- delay() for pass the delay in the loop.
So My Dear Friends, I wish this blog is Helpful for you , If you have any questions You can contact me by just CLICK HERE .
Comments
Post a Comment