Share via


Cardio pace - Code a micro:bit to track heart rate​

The micro:bit is a pocket-sized computer that introduces how software and hardware work together. This activity helps students earn coding by turning a micro:bit into a heart rate monitor. ​

This activity is divided into two: the Box Breathing micro:bit Coding Activity and the Heart Rate Monitor activity. The first have participants do some coding to put together a short animation sequence that plays on the micro:bit LED display to help identify and regulate breathing patterns. The second focuses on physically connecting a heart sensor into a micro:bit, downloading code to display the user’s current pulse, and doing some exercises to see what happens to the participant’s heart rate and how they feel. ​

Both activities focus on a specific part of computing: the first on writing code and having it display on the micro:bit while the second on physically putting together a circuit and having the premade code work on the device.

  • Audience: Students ages 9-15 with an interest in STEM and interactive learning experiences.

  • Length: Three hours

  • Learning objectives for learners

    • Build a heart rate monitor and the different parts of a circuit required to produce animations.
    • Understand the importance of activity to help keep the heart healthy.
    • Measure the effects of different activities on heart rate.
    • Learn how to use a design process to generate ideas, test theories, and create innovative solutions.
    • Learn how to define problems, analyze data, and develop models to solve complex issues.

Download instruction materials

Ready to try out this micro:bit activity? Check out the activity guide!

Instructor facilitation guide

A graphic displaying a logo of Microsoft's collaboration with STEM and Sports.