IndianEngineer

india's No 1

Servo Motor Control with PIC16F84

Servo Motor Control with PIC16F84

This simple micro-control circuit controls a servo motor according to a 3-state switch. A servo motor acts as an actuator in 3 position. It has 3 wires, one for VCC, one for Ground and another one for position control. The last signal is a single pulse with variable width. The pulse width can vary between 1 and 2 mSec. An 1 mSec pulse width turns the motor axis in -45 degrees position. An 1.5 mSec pulse width turns the motor axis in 0 degree position. A 2 mSec pulse width turns the motor axis in +45 degrees position. The following source code has been written in PICBasic:

Symbol porta = 5
b3 = 150
start:
Peek porta,b0
If bit0 = 0 Then sweepl
If bit1 = 0 Then sweepr
Pulsout 0,b3
Pause 18
Goto start
sweepl:
b3 = b3 + 1
Pulsout 0,b3
Pause 18
If b3 > 200 Then hold1
Goto start
sweepr:
b3 = b3 – 1
Pulsout 0,b3
Pause 18
If b3 < 100 Then hold2
Goto start
hold1:
b3 = 200
Goto start
hold2:
b3 = 100
Goto start

Title: Servo Motor Control with PIC16F84
Source: unknown

September 28, 2008 - Posted by IndianEngineer | project ideas | | 9 Comments

9 Comments »

  1. kindly send me d full detailes about dis project (pcb diagram, cost..etc
    Im a btech student, i wnt to sbmt my mini project on january.bt d prblm is dat i hav no idea dis. will anyone help me

    Comment by Sarath | December 11, 2008

  2. plz give me details about servo motor control

    Comment by aa | January 25, 2009

  3. sir, i want to know that how can i get more information about this project so that i can make it.

    Comment by rishi | February 1, 2009

  4. can you please send the full details of this project so i could chck it up for my final yr project.

    Comment by dicey | February 10, 2009

  5. plz mail me the details….i m working on the same project

    Comment by omkar | February 28, 2009

  6. hi, i need all details about this project can u send me

    Comment by yogi | March 2, 2009

  7. To book this project mail us at freshersblog@gmail.com

    Comment by badmedia | August 2, 2009

  8. i tink its too small for be,anyway pls mail me details of tis project including price

    Comment by lion | August 12, 2009

  9. i need all the details about this project

    Comment by Anur Omer | August 16, 2009


Leave a comment