Data Sheet
Robot Arm for micro:bit User Manual
DEMO CODES
We provide four demo codes (HEX file) for this module. You can copy them to micro:bit for testing.
Drag HEX file to the web page directly could get details information of demo code:
https://makecode.microbit.org/
MICROBIT-SERVO
This demo code is used to rotate 16 servos in range 0~180 all the time.
item: current angle
Flag: step length for every change. Positive value stands for co-rotating, and negative for reverse,
interval is 20s.
After running the code, you can see that 16 servos turn from 0° to 180°, then turn 0° again all the
time, you can adjust its speed by change the pause on code.
MICROBIT-SERVO
This demo uses A and B keys to control rotation of servo 0. It moves forward when A button is
pressed and moves backward when B button is pressed.