All tutorials

Environment Detective: Exploring Our World with micro:bit

microbitpythonBeginner ⏱ 45 mins

Overview

Ever wondered how technology can help us understand the world around us?

In this project, you are going to become an environment detective using your and its built-in sensors.

Just like your senses help you explore the world, the micro:bit can tell you:

  • How warm or cold it is using its
  • How bright or dark it is using its
  • Which direction you are facing using its

You will write Python code to make the readings appear on the micro:bit’s .

🎯

What you'll learn

  • Read the micro:bit’s temperature sensor
  • Display numbers, pictures and letters on the LED matrix
  • Detect light levels and make the micro:bit react
  • Use the compass to find a direction
  • Use Python if statements to make decisions
  • Use buttons, shake gestures and variables in your code

Are you ready? Let’s begin our detective adventure!