📊 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
  • Servo Motor Activity
  • Assembly Instructions
  • Functionality

Was this helpful?

Export as PDF
  1. Showcase Projects
  2. 01 - Air Pollution

A - Servo Motor

Previous01 - Air PollutionNextB - Neopixel Grid

Last updated 2 years ago

Was this helpful?

Servo Motor Activity

Visualize data containing air pollution information represented as pm2.5 or smaller values in Canada between 1990 and 2014.

Materials

Quantity
Material

1

micro:bit

1

battery pack

1

set of 3 alligator clips to M connector

1

servo motor

1

pre-cut cardstock sheet

Assembly Instructions

Functionality

micro:bit A Button

  • Cycle through the different programmed years.

  • Each year is represented by a lit LED on the micro:bit.

  • The data includes information from 1990 to 2014.

micro:bit B Button

  • Goes back one year each time it is pressed, stopping in 1990.

Servo Motor

  • It will move each time either the A or B buttons are pressed on the micro:bit to the specified pm reading for that year.

  • Once the project is assembled, the servo motor will point to the scale drawn on the cardstock sheet.

MakeCode project

In the next section, we are using the neopixel grid to visualize this data.

Data used for this activity

Find more projects at our partner's website

DATA
SteamLabs