Love Hearts Lesson 3

In this lesson students use their paper prototypes and algorithms from the previous lesson to create a micro:bit prototype of their heart rate monitor using the MakeCode editor.

  • Global challenge
  • computing
Print lesson
  • Ages 9+
  • 60 mins
  • MakeCode Editor

Curriculum links

  • Computing: ccomputational thinking: algorithms, logical thinking, programming, debugging, iteration, loops, selection, variables, testing, debugging, creating effective presentations, evaluation
  • Science: The heart
  • P.E.: The importance of regular exercise
  • PSHE: Healthy mind and body
  • Design & Technology: Product design

Skills: designing, creative thinking, problem solving, prototyping, team working, presenting


It is assumed that you have first completed the Non-communicable disease introductory lesson and Lesson 1 and 2 of the Love Heart activity. Programming experience using micro:bit and creating presentations is assumed, though you can easily add additional time and explanation as required by your students.


In this lesson students use their paper prototypes and algorithms from the previous lesson to create a micro:bit prototype of their heart rate monitor using the MakeCode editor. If you wish of course, you can extend this so students create a mock up of their monitor using micro:bit boards.

Teacher Guide

Open Open teacher resources



  • Remind students to use effective programming practices (e.g. paired programming, regular testing and debugging - slides 4 & 5).
  • Ask students to open the MakeCode editor and start programming their heart rate monitor. If needed, use slides 6 & 7 to help students with the code and there is an example hex file included in resources.
  • As they program, encourage students to work through the problems together, thinking about why the program is behaving that way and stepping through code to find any errors.
  • As students finish, or if they encounter problems they cannot solve, ask them to work with other students to help them test and refine their code.

Screenshots of example code can be found in the lesson presentation slides above, or you may wish to download the example hex files.

Creating prototype presentation

  • Once students have completed their programs, explain they are going to present their prototypes to the class and the requirements for their presentation (slide 8).
  • Give students a short, focussed time to complete their presentation (in whatever format is best - encourage creativity) and ensure they are ready to present.

Presenting prototypes

  • Ask each pair/group to present their prototype and remind them of the requirements for the presentations. You could have a ‘timekeeper’ to keep time and give a 1 minute left signal.

Lesson wrap up

  • Give out the evaluation worksheets (see extension/homework) and highlight that next lesson they will be designing their own innovation for the micro:bit challenge (slide 10).
  • If you wish, revisit the learning objectives on slide 11.

Extension / homework

  • Ask students to complete the evaluation worksheets to evaluate their prototypes, their presentation and their approach to the task (slide 9).
  • If students are creating an actual prototype, give them extra time and the materials to do so.



  • Ensure students have appropriate support when programming and you may wish to make use of the example hex file to help them
  • You could give a template for their presentation, or ask them to simply talk about their ideas.
  • Encourage students to make simple evaluative statements (e.g. WWW/EBI)

Stretch & challenge:

Students can be challenged to add additional elements to their heart rate monitor, create code that is highly efficient, presentations that are slick and effective and evaluations that are considered and detailed.

Opportunities for assessment:

  • You could video students presenting their work and discussing their code for assessment.
  • Paper prototypes, code, presentations and evaluation worksheets can all be informally or formally assessed to suit your needs.
Selecting this opens external content from our support system, which adheres to their privacy policy.