Servo motor with Micro:bit

Purpose of this tutorial:

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

Components required

  • micro: bit card
  • servo motor
  • micro: bit GPIO Expansion Board
  • connecting wires 


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.

Makecode program

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.

You can also see

0 commentaire

Leave a comment

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *

Scroll to Top