📊 micro:bit Data and Climate Change
  • Introduction
  • Data
  • Climate Change
  • Our Tools
    • 01- micro:bit
    • 02 - MakeCode
      • A - Events
      • B - Animations
      • C - Counting
      • D - If Hot
    • 03 - Servo Motor
      • Coding your first servo motor on MakeCode
    • 04 - Neopixel
      • Coding your first neopixel on MakeCode
  • Activities
    • Tools and Data Together
      • 01 - micro:bit and Data
      • 02 - Servo Motor and Data
      • 03 - Neopixel and Data
  • Showcase Projects
    • 01 - Air Pollution
      • A - Servo Motor
      • B - Neopixel Grid
    • 02 - Green Energy Forecast
    • 03 - Temperature Change
      • A - Neopixel Grid
      • B - Neopixel Ring
    • 04 - Heavy Precipitation Days
      • A - Neopixel Grid
      • B -Servo Motor
      • C-Neopixel Fairy Lights
    • 05 - Greenhouse Gas Emission
      • A - Neopixel Grid
      • B - Neopixel Fairy Lights
  • 🚀Extra Missions
  • Support Material
    • Data on the Run
    • Data Visualization Examples
    • Data Science of Climate Change by Lucie Luneau
    • Ideas from the Canadian Space Agency - CSA
    • CASC + Science Spotlight
Powered by GitBook
On this page

Was this helpful?

Export as PDF
  1. Our Tools

03 - Servo Motor

PreviousD - If HotNextCoding your first servo motor on MakeCode

Last updated 2 years ago

Was this helpful?

Electric motors are great, they move many of the devices we have in our daily lives. We find them in things like blenders, washers, dryers, drills, cars, garage doors, pumps and many more. They are also part of one of the tools we are using, the Servo Motor or Servo.

Servos are electrical devices that rotate a part of a machine providing predictable, repeatable and precise movement. Think of them as motors that you can spin with precision, controlling speed and placement.

Servos do have electric motors in them, but they also include other parts that allow them to be moved to specific angles, positions and velocities. We will control our servo motor using a micro:bit, with instructions created on MakeCode.

All is coming together, we can write code to represent data about climate change using an external device. In this case the servo motor!

Connecting a Servo Motor to a micro:bit

Servo Motors usually have three cables, Signal, Ground and Power.

  • The Signal wire carries the information from our micro:bit to the servo, telling it when and where to move.

  • The Ground(GND) wire provides a way for excess electricity to flow safely. The Ground wire only acts when there is a problem with the electrical system.

  • The Power wire, as the name implies, carries the electricity for the device to run. In this case, for the servo motor to turn

In the next section, we code our first servomotor.

Teacher's Corner - more about Servos

For more in-depth resources about servo motors, check the following links:

Video -

Video -

micro:bit guide -

Servos guide -

🍎
Behind the MakeCode Hardware - Servo Motors with micro:bit
Connecting a servo motor to the micro:bit
MakeCodeUsing a servo with the micro:bit
Servos - A Brief Guide
micro:bit connected to a servo motor