Author
Topic: servo problem (Read 3920 times)

while (1) { PORTD.7 = 1; delay_us(200); delay_us(200); delay_us(200); delay_us(200); delay_us(100); PORTD.7 = 0; delay_ms(19); delay_us(100);}i also made sure that the portd is an out and i did include the delay library and the xtal freq is set right,,,problem is that the servo is turning into +90 with jerky steps,, somthin is wrong,,anyone can help?

ill do this once i get my programmer pcb back,,anyways i was thinking ,,im feeding my servo from a 6 volt battery but this batter cant provide more than 300mA but anyways im not putting any load on the servo,would this affect its motion?and by the way, should the micro and the servo share the same ground?

It "stalls". That means it draws a whole heap of current, but doesn't actually move. Unless I'm way off this shouldn't set it on fire or anything. Basically the rotor of the motor is held in a static position, which means after time the coil that makes the motor move will just behave like any other piece of wire.

In short, if you stall a motor, you reduce the lifetime until its been 'trashed' (destroyed, hence you throw it away in the trash).

But still!!! It has a nice small ESC on it!!!You probably be a able to drive a small hobby - toy motor with the dead servo's electronics!!! (forward / backward)

And as mentioned before... servos can handle a lot abuse... but just don't over do it...Also keep the gear box and try to find a motor fitting to replace the old-burned motor... This will reduce the whole maintenance cost of your project-robot

Logged

For whom the interrupts toll...

P.S. I've been inactive for almost a year... Don't give promises but I'll try to complete my tutorials. I'll let you know when..

In short, if you stall a motor, you reduce the lifetime until its been 'trashed' (destroyed, hence you throw it away in the trash).

But still!!! It has a nice small ESC on it!!!You probably be a able to drive a small hobby - toy motor with the dead servo's electronics!!! (forward / backward)

And as mentioned before... servos can handle a lot abuse... but just don't over do it...Also keep the gear box and try to find a motor fitting to replace the old-burned motor... This will reduce the whole maintenance cost of your project-robot

Small hobby motors fit inside standard servos and can replace the previous motor in there

i got to turn my servo from -90 to +90 and +90 to -90 and so on,, but thats the servo speed (the one written on it)so changing the PWM directly would let your servo operate at its maximum speed. i dont want to move that fast , i want it to take longer, so should i change the PWM gradually?wouldnt that by too much coding?

well i did give a 1.5 ms on pwm and the servo is centered,i then gave it a 2.1 ms on pwm (supposed to go to +90(datasheet)), it went to about +45,, any one can give me the +90 and -90 pwms for the hitec HS-322HD servo?