AC Drive China Forum
Forum » Servo Control » Servo control help
Topics: Servo control help on Servo Control
Start by
06-10-2012 08:22 AM

Servo control help

I am new to servo controls. Unfortunately I cannot find a spec of the pulse-width for this servo, the only thing i see on the package is 4.8v: 0.09s/60 degrees. I tried a couple of pulses within the range of 1 to 2 ms with 1.5 (see code) being default operation pulse. The only thing i get out of it is some ticking movement (moving a little and returning right away).

My first question is, is it even possible to do it like this?
Can you advise on the pulse-width for this servo and my setup for control?
Any pointers in the right direction would be greatly appreciated!
My setup:
C18 C compiler
Pickkit 3 with 44 pin demo board. (18f45k20)
5 volt power supply
Modelcraft (TOP LINE) micro servo ES-07/JR.

I am using the pickit internal Oscilator at 1 mhz.
The servo is connected to port RB4 on the demo board Vdd/Vcc connected to external 5v power supply.
06-10-2012 08:23 AM
Top #2
06-10-2012 08:23 AM
I figured out something else in the mean time, I thought it just made some ticking movement, but it actually ticks at the end of its 180 degree span. So when I manually move the server back 180 degrees, it will move to the end again. What I want is it to stay in some position somewhere in the range of 0 - 180 degrees and move it back and forth.
06-10-2012 08:24 AM
Top #3
06-10-2012 08:24 AM
It seems just have to change your PWM's duty cycle, try that
Reply to Thread