In this tutorial we will test the servomotor by sweeping an angular range in one direction and then in the other: It is positioned at the angle 0 ° it is positioned at the 180 ° angle. we go back to step 1
The connection is almost always the same and will be done using 3 wires, the main colors of which you may encounter:
Red: + 5V power supply.
Black or brown: common to be connected to the GND Pin of the micro: bit
Orange, yellow or white: positioning signal sent by the micro: bit card.
There are several mounting methods.
Here is the makecode program which allows you to turn a servo motor using the micro: bit card.
Note: You must go to Extensions to import the servo extension.