Islamic University of Technology: EEE 4483 Digital Electronics & Pulse Techniques
Islamic University of Technology: EEE 4483 Digital Electronics & Pulse Techniques
EEE 4483
Digital Electronics & Pulse Techniques
Lecture- 10
Servo Motors Controlling servo motor using PWM
Camera Auto Focus: A highly precise servo motor built into the camera corrects a camera's lens to sharpen out-of-focus
images.
Solar Tracking System: Servo motors adjust the angle of solar panels throughout the day so that each panel continues
to face the sun.
Automatic Door Openers: Supermarkets and hospital entrances are prime examples of automated door openers
controlled by servo motors, whether the signal to open is via push plate beside the door for handicapped access or by
radio transmitter positioned overhead.
Industrial Application of Servo Motors
Conveyor Belts: Servo motors move, stop, and start conveyor belts carrying
product along to various stages, for example, in product packaging/bottling,
and labeling.
Metal Cutting & Metal Forming Machines: Servo motors provide precise
motion control for milling machines, lathes, grinding, centering, punching,
pressing, and bending in metal fabrication for such items as jar lids to
automotive wheels.
Controlling a Servo Motor using Arduino Uno
#include <Servo.h>
Servo myServo;
int angle = 0;
void setup(){
myServo.attach(9);
}
void loop(){
for(angle=0; angle < 180; angle += 1) {
myServo.write(angle);
delay(20);
}
for(angle=180; angle >= 1; angle -= 1){
myServo.write(angle);
delay(20);
}
}