I received the board some weeks ago and this weekend started to play with it. Had a lot of fun following the tutorial and trying the extra exercises!
What I didn't get is what's Servo.speed suppose to do. I thought that it starts to continuous rotate the motor (clock/counterwise) but for me it works exactly like angle. Am I missing something here?
I'm using the stock pyboard with the HS-55 servo (the Kickstarter wireless kit).
Servo.speed(..) and continuous rotation.
Re: Servo.speed(..) and continuous rotation.
Continuous Rotation servos are modified versions of regular servos.
You normally disconnect the shaft potentiometer, and connect up a couple of resistors in place of the potentiometer. This fakes out the servo driver and tells it that the shaft is in a central position all of the time.
The servo drivers look at the current position (faked out to say its in the middle) and the desired position (whats being sent over the control line). The further away the desired position is from the current position, the faster the driver will drive the motor. Some servos do this more than others, and some don't do it at all. It really depends on the brand of the servo.
So yes - setting the speed of a continuous rotation servo is exactly the same thing as setting the angle. But the semantics are different, so the code looks a litle cleaner when calling a set speed function rather than a set angle function.
You normally disconnect the shaft potentiometer, and connect up a couple of resistors in place of the potentiometer. This fakes out the servo driver and tells it that the shaft is in a central position all of the time.
The servo drivers look at the current position (faked out to say its in the middle) and the desired position (whats being sent over the control line). The further away the desired position is from the current position, the faster the driver will drive the motor. Some servos do this more than others, and some don't do it at all. It really depends on the brand of the servo.
So yes - setting the speed of a continuous rotation servo is exactly the same thing as setting the angle. But the semantics are different, so the code looks a litle cleaner when calling a set speed function rather than a set angle function.