Professional Documents
Culture Documents
Lab Report 6
Lab Report 6
ENGINEERING
UNIVERSITY OF ENGINEERING AND
TECHNOLOGY, PESHAWAR
MtE-226L ACTUATING SYSTEM LAB, 4th Semester
LAB NO. 6
SUBMITTED BY : TAIMOOR KHAN
REG NO. : 20PWMCT0739
Servo Motor:
A Servo Motor is a rotary actuator or linear actuator that allows for precise control of
angular or linear position, velocity, and acceleration. It consists of a suitable motor
coupled to a sensor for position feedback. Servomotors are used in applications such
as robotics, CNC machinery, or automated manufacturing.
Figure 2 DC SERVO
2) AC SERVO MOTOR
AC servo motor is an AC motor that includes encoder is used with controllers for giving
closed loop control and feedback. This motor can be placed to high accuracy and also
controlled precisely as compulsory for the applications. Frequently these motors have higher
designs of tolerance or better bearings and some simple designs also use higher voltages in
order to accomplish greater torque. Applications of an AC motor mainly involve in
automation, robotics, CNC machinery, and other applications a high level of precision and
needful versatility.
Figure 3 AC SERVO
Positional rotation servo motor is the most common type of servo motor. The shaft’s o/p
rotates in about 180o. It includes physical stops located in the gear mechanism to stop turning
outside these limits to guard the rotation sensor. These common servos involve in radio-
controlled water, radio-controlled cars, aircraft, robots, toys and many other applications.
Figure 4 ROTATIONAL SERVO
Linear servo motor is also similar to the positional rotation servo motor discussed above, but
with an extra set of gears to alter the o/p from circular to back-and-forth. These servo motors
are not simple to find, but sometimes you can find them at hobby stores where they are used
as actuators in higher model airplanes.
Figure 6 LINEAR SERVO
1. Controlled device
2. Output sensor
3. Feedback system
WORKING PRINCIPLE
It is a closed-loop system where it uses a positive feedback system to control motion and
the final position of the shaft. Here the device is controlled by a feedback signal generated
by comparing output signal and reference input signal.
Here reference input signal is compared to the reference output signal and the third signal
is produced by the feedback system. And this third signal acts as an input signal to the
control the device. This signal is present as long as the feedback signal is generated or there
is a difference between the reference input signal and reference output signal. So the main
task of servomechanism is to maintain the output of a system at the desired value at
presence of noises.
DC Servo Motors are separately excited DC motors or permanent magnet DC motors. Figure
(a) shows the connection of Separately Excited DC Servo motor and figure (b)shows the
armature MMF and the excitation field MMF in quadrature in a DC machine.
This provides a fast torque response because torque and flux are decoupled. Therefore, a
small change in the armature voltage or current brings a significant shift in the position or
speed of the rotor. Most of the high-power servo motors are mainly DC.
AC SERVO MOTOR
The AC Servo Motors are divided into two types 2 and 3 Phase AC servomotor. Most of the
AC servomotors are of the two-phase squirrel cage induction motor type. They are used for
low-power applications. The three-phase squirrel cage induction motor is now utilized for
applications where a high power system is required.(2)
1. Task 1
TO CONTROL THE SPEED OF SERVO MOTOR (0 TO 180)
DELAY OF 0.1 SEC 0 TO 180 WITH SERVO LIBRARY:
PROCEDURE
I. Take an arduino UNO and servo motor.
II. Then connect them with jumper wires.
III. Then write the code according to the circuit
IV. Then check the results.
CODING:
#include<Servo.h>
Servo Myservo;
int pos;
void setup()
{
Myservo.attach(3);
}
void loop()
{
for(pos=0;pos<=45;pos++){
Myservo.write(pos);
delay(15);
}
delay(1000);
for(pos=45;pos<=90;pos++){
Myservo.write(pos);
delay(15);
}
delay(1000);
for(pos=90;pos<=135;pos++){
Myservo.write(pos);
delay(15);
}
delay(1000);
for(pos=135;pos<=180;pos++){
Myservo.write(pos);
delay(15);
}
delay(1000);
}
EXPERIMENTAL PICTURES
CODING
#include<Servo.h>
Servo Myservo;
int pos;
void setup()
{
Myservo.attach(3);
}
void loop()
{
for(pos=0;pos<=180;pos++){
Myservo.write(pos);
delay(15);
}
delay(200);
for(pos=180;pos>=0;pos--){
Myservo.write(pos);
delay(15);
}
delay(200);
PROCEDURE
V. Take an arduino UNO and servo motor.
VI. Then connect them with jumper wires.
VII. Then write the code according to the circuit and upload it to the arduino.
VIII. Then check the results.
CODING:
#include <Servo.h> // add servo library
void setup() {
myservo.attach(9); // attaches the servo on pin 9 to the servo object
}
void loop() {
val = analogRead(potpin); // reads the value of the potentiometer (value
between 0 and 1023)
val = map(val, 0, 1023, 0, 180); // scale it to use it with the servo (value between 0
and 180)
myservo.write(val); // sets the servo position according to the scaled value
delay(15); // waits for the servo to get there
}
REFERENCES:
[1] https://www.watelectrical.com/servo-motor-types-and-working-principle/
[2] https://circuitglobe.com/servo-motor.html