Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

how to run a servomotor(sm105 or turnigy tg9e) using pic 18f452

Status
Not open for further replies.

SolaiKannan

Junior Member level 1
Joined
Jan 19, 2012
Messages
19
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,401
i am using 20Mhz external oscillator and programming using microcode studio.

i have sent pulse using "pulsout=0,500"
and i am using this command within a loop
by using this i was able to move the motor but it is coming back to its original position.
so can anyone send me program for this so that i can make the servo be in a particular angle position
 

hi,

check if your pulses width are correct.
See the page **broken link removed** for more info
 

What you need to remember is

A servo requires a cycle of about 20ms
The position of the arm (on most servos) is a pulse between 1ms & 2ms, wth 1.5ms being the centre.

Therefore as an example to move the arm to an extreme
High pulse 2ms low for 18ms- making the 20ms cycle. This needs to be continously repeated to hold the arm in the correct position.

If the servo does not receive the pulse it does not know what to do.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top