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.

Weird Movement of servo motor

Status
Not open for further replies.

elmediel

Junior Member level 3
Joined
Oct 20, 2010
Messages
31
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,288
Location
Mandaluyong, Philippines
Activity points
1,475
I have a servo motor and a PIC controller connected to the serial port of my PC. It's working fine.

When I order my servo to move from 30 deg to 60 deg. It's good

BUT, when I order my servo to move from 30 deg to 70 deg. It turns back to 0 deg then goes to 70 deg. Why is it happening? I don't want my servo to turn back then forward. I just want it forward. It hapens when the difference of degree to travel is about 40 deg

What do you guys think?
 

I don't think so. I created the software myself.

The software just send the pulse lenght.
example: 1000 us, 1500 us
its simple so mistake in software is not a factor

when i order the movement from 40 deg to 70 or 60. its good
but when i order the movement from 40 deg to 80 or above. it turn back to zero then go to the specified degree. its like its remeasuring its degree from zero. something like that. and i dont remember coding that.
 
Last edited:

The solution is to not change the pulse width in large jumps. Finding out why would require a circuit for the servo control circuit.

Keith
 
Thats a solution but I'm thinking that if I want to have speed, that solution may hinder my goal. I anyone have same behaviour of servo? or do you think i should buy other type of servo? im using GWS S03T. its a powerful servo but cheaper than other servo with less power. i think thats the reason?.. maybe?
 

your pc software may be fine, but what about the PIC? haow are you connecting to the PC? are you using the usart on the pic? are you using the ccp ports for the pwm? these are my first questions, as if you are polling the usart and then doing a lookup table you may be past the refresh rate. I have had sevo's do similar things just because i took too much time elsewhere.
just a thought though.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top