Project – the continuous servo
Continuous servos are a little like a motor combined with a regular servo: you lose the ability to go to specific degrees like a regular servo, but you can stop instantly instead of coasting to a stop like many motors. You can tell a continuous servo to move clockwise or counterclockwise at different speeds, and you can tell it to stop.
Let's wire up a continuous servo and play with its abilities via the Johnny-Five REPL.
Â
Wiring up the servo
The only difference in the wiring is continuous servos look different from regular servos in that nearly all have a disc instead of a horn. And most have red, white, and black power, signal, and ground wires, respectively.

(Fritzing didn't have a continuous servo object, so we'll have to make due.)
Â
Continuous servo constructor and methods
The constructor for the continuous servo is reminiscent of the RGB LED constructor, in that it is a property of the Servo
object. Otherwise, it looks very similar to the Servo
constructor...