The cyber:bot robot's drive motors are Parallax Continuous Rotation Servos. They control wheel rotation speed and direction in response to very specific patterns of high/low voltage signals.
In this activity, you will first check labels on the servos to identify whether they were factory centered, or if they need to be manually centered with a screwdriver while the micro:bit runs a certain script.
If the servos are factory centered, you will save the screws for attaching the wheels and then skip to the next activity.
If the servos need to be manually centered, you will continue all the way through this activity.
First, let's check the labels on the servos in your kit and then decide what to do next.
Parts Required
Tool Required
You’ll need a Parallax screwdriver, or a different Phillips #1 point screwdriver with a 1/8″ (3.18 mm) or smaller shaft.
cyber:bot Library Required!
The servo cables plug into the 3-pin P18 and P19 3-pin headers. These headers, sometimes called servo ports are above the white breadboard.
There is a smaller 3-pin header to the left of the servo ports. A shunt jumper connects two pins on it, selecting the voltage source supplied to the servos. The 5V setting limits the voltage to 5V, regardless of the input voltage. The VIN setting supplies the servo with whatever voltage level is connected to the board.
The Continuous Rotation Servos need 4 to 6 VDC to operate. So, the setting you should use depends on the kind of batteries you have.
Missing a Voltage Selection Jumper? Replacements are available - contact our sales department [3] to order part #452-00043; there are three per board.
The cyber:bot board has a three-position switch, which allows you to choose whether or not to power the servos when you power the rest of the board. Here are guidelines:
If a servo has not yet been centered, it may turn, vibrate, or make a humming noise when it receives the “stay-still” signal. Once you’ve assembled the cyber:bot, the servos must be removed to be centered again, making this step critical.
# left_servo_stay_still from cyberbot import * bot(18).servo_speed(0)
On the side of the servo is a small access hole. Inside the hole is what appears to be a small screw. This is a plastic potentiometer adjustment knob.
This short video will assist you with the process of centering the servos:
A potentiometer is an electrical device that provides variable electrical resistance. Some potentiometers have a knob for adjusting the resistance, like these servos and the one shown below that is meant to plug into a breadboard. Others may have a sliding bar. Either way, the schematic symbol for a potentiometer is the same.
# right_servo_stay_still from cyberbot import * bot(19).servo_speed(0)
Links
[1] https://learn.parallax.com/tutorials/robot/cyberbot/build-your-cyberbot-rev-c-board/build-chassis
[2] https://learn.parallax.com/tutorials/robot/cyberbot/add-modules-your-microbit
[3] https://www.parallax.com/sales/contact-sales/
[4] https://python.microbit.org/v/2
[5] https://learn.parallax.com/tutorials/robot/cyberbot/how-save-and-reopen-script-python-editor-v2