Lab 5 Servo Motor PDF
Lab 5 Servo Motor PDF
Lab 5 Servo Motor PDF
Remarks: ……………………………………………
Spring 2020-Semester VI
Objectives:
• Controlling the position of servo motor via PWM signal.
Servo Mechanism:
Inside a typical RC servo contains a
• Motor
• Gearbox
• Potentiometer to measure the position of the output gear
• Electronic circuit that controls the motor to make the output gear move to the desired
position.
Because all of these components are packaged into a compact, low-cost unit, RC servos are great
actuators for robots.
It is a closed loop system where it uses positive feedback system to control motion and 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 reference output signal and the third signal is
produces by feedback system.
Third signal acts as input signal to control device. This signal is present as long as feedback signal
is generated or there is difference between reference input signal and reference output signal.
So the main task of servo mechanism is to maintain output of a system at desired value at
presence of noises.
• First of all we use gear assembly to reduce RPM and to increase torque of motor.
• Say at initial position of servo motor shaft, the position of the potentiometer knob is such
that there is no electrical signal generated at the output port of the potentiometer.
• Now an electrical signal is given to another input terminal of the error detector amplifier.
• Now difference between these two signals,
o One comes from potentiometer
o Another comes from other source,
o will be processed in feedback mechanism and output will be provided in term of
error signal.
• This error signal acts as the input for motor and motor starts rotating.
• Now motor shaft is connected with potentiometer and as motor rotates so the
potentiometer and it will generate a signal.
• So as the potentiometer’s angular position changes, its output feedback signal changes.
• After sometime the position of potentiometer reaches at a position that the output of
potentiometer is same as external signal provided.
• At this condition, there will be no output signal from the amplifier to the motor input as
there is no difference between external applied signal and the signal generated at
potentiometer, and in this situation motor stops rotating.
Characteristic Schematics are attached. Use the diagram given below to connect the hardware
properly.
Button 1 =>0◦
Button 2 => 45◦
Button 3 => 90◦
Button 4 => 180◦
On-Chip resource Judicious use of on- Not careful in using on- Not careful in using 1
management chip resources like chip resources like on-chip resources
RAM, code size, RAM, code size, timers, like RAM, code size,
timers, interrupts interrupts etc or timers, interrupts etc
etc and judiciously carelessly selected and carelessly
selecting the data data type of variables. selected data type of
type of variables. variables.
Code indentation and Proper indentation Indentation of code or No indentation of 1
descriptive variable of code with partially descriptive code and no
name descriptive variable variable names. descriptive variable
names. names.
Lab Report Writing The report is well The report is not The report is not 1
formatted with all formatted or the formatted and the
the queries queries asked are not queries asked are
answered in a answered clearly. answered incorrectly
thoughtful manner. or not clearly.
Neat and clean wiring All the components Few but not all the All the components 2
of circuit are wired in a neat, components are wired are not wired in a
clean and safe in a neat, clean and safe neat, clean and safe
manner. manner. manner.