You are on page 1of 1

E12-133 Rashid Ali Lab Report 8

Objective

Servo Motor Position Control

Procedure

Open new project in MPLAB


Configure the required register which will be used to Serially transmit
and receive data
According to the inputs from the HyperTerminal we used TIMER0 to
generate PWM and drive the motor through H-Bridge
The duty cycle of PWM is varied for the 0 o , 90o & 180o using the value
that is loaded to generated from the TIMER0
Compile code and observe its working in MPLAB simulator and then
upload it to the Microcontroller and check its working on the hardware

Observations

We gave 3 inputs from Hyper Terminal to the microcontroller to change


the pwm
PWM using delay of 1ms rotates motor at 0 o , 1.5ms moves motor at
90o & 2ms moves motor at 180o

Conclusion

By changing the pwm we can control angles of servo motor

Sp-2015

Industrial Automation

You might also like