Society of Robots - Robot Forum
Electronics => Electronics => Topic started by: aruna1 on January 13, 2009, 07:09:23 AM
-
well i guess we cant do it with PWM coz Servos use PWM to position change,so how to controll the sped of a servo?
thanks
-
Instead of sending 1 signal to move of 2000 us when your servo is at 1000 us, you send intermediary signals: 1000, 1100, 1200, 1300, etc. The distance between these signals determines your speed. If your speed is low, you will have to use intermediary more points: 1000, 1001, 1002, 1003 so the servo won't jerk.
-
Instead of sending 1 signal to move of 2000 us when your servo is at 1000 us, you send intermediary signals: 1000, 1100, 1200, 1300, etc. The distance between these signals determines your speed. If your speed is low, you will have to use intermediary more points: 1000, 1001, 1002, 1003 so the servo won't jerk.
ahh i didn't get it can you explain it more simply? I'm new to servos and never have used one.I'm trying to learn theories
and can you take a look at this
http://www.societyofrobots.com/robotforum/index.php?topic=6500.0 (http://www.societyofrobots.com/robotforum/index.php?topic=6500.0)
-
Meh. Ok, so you keep sending a servo the same signal at 50 hz, right?
Now, let's say you are sending it 1000 us, so it's on one extreme. If you send start sending it 2000us instead, it will move at full speed at the other extreme.
You want to control this speed.
So, instead of sending it 2000us, you will send it 1005, and wait 5 times the frequency. Next, you send it 1010 and wait 5 times the frequency. You the send 1015 and wait 5 times the frequency. You will reach 2000 slower than maximum speed, thus, you have obtained your goal: controlling the servo's speed.
The increments between successive steps (1000, 1005, 1010 or 1000, 1001, 1002) and the delta t (time difference) between signal changes will determine the final speed.
Got it? ;D
-
Servos don't have speed control.
However servos slow down when you command it to go to a location close to its current location. So if you don't tell it to rotate too far, it won't rotate very fast. But there isn't any feedback on speed, so any counter-torque would throw it off . . .