You are on page 1of 25

Design a personal heart monitoring system

Programme the system using the accelerometer and LED display


Key words / Topics
Subjects: Design & Technology, Computing
> BBC micro:bit
> system and sub-system
> input, process, output
> accelerometer
Approx. time: 60 - 120 minutes depending on ability and prior
> programmable components
experience of learners
> embedded intelligence
Suggested Learning Outcomes

> To understand a block systems diagram of the heart monitoring system.


> To understand the use of and apply an accelerometer as a heart monitoring device.
> To successfully program the BBC micro:bit so that the system meets the design criteria.

Introduction

This is one of a series of resources to support the use of the BBC micro:bit in Design and Technology lessons. It can also be
used as a follow up to the IET Education Resource ‘Wearable antennas’.
There are many reasons to monitor heart rate. For example:
 There are 2.7 million people in the UK currently suffering from heart problems. The quicker these problems can be
found and treated the better the chance of a full recovery.
 Athletes measure their heart rate during training to ensure that they are training in their optimum physical range.
In this unit of learning, learners will use the BBC micro:bit to develop a prototype for a personal heart monitoring system.

Purpose of this activity

In this activity, learners will develop their programmable system using the BBC micro:bit’s inbuilt accelerometer to detect
motion created by the pumping of the heart.
This could be used as a main lesson activity with ‘Social Effects of Health Management’ as the starter. It is an ideal exercise
for learners to improve their understanding of basic electronics, develop programming skills, make use of programmable
components and embed intelligence into a product design.

Activity Teacher notes

1. Design Brief The IET TV video – Heart Rate Monitor


https://tv.theiet.org/Index.html?videoid=7298 can be
Teacher to introduce the situation and design brief to learners.
shown as an introduction or starter for activities in this
Use the teacher presentation as a guide for this. Emphasise that
unit of work.
they will be using the BBC micro:bit system, which is a
programmable system, to create their solution.
Situation: This activity can be attempted by learners as
individuals, in pairs or in small groups.
There are 2.7 million people in the UK currently suffering from
heart problems. The quicker these problems can be found and If learners have not seen or used a block systems
treated the better the chance of a full recovery. diagram before it would be necessary to describe this
in more detail (i.e. what is meant by input, process,
Brief:
output etc).
Using the BBC micro:bit, create a prototype for a personal heart
It will probably be impractical for learners to attach the
monitoring system. The system must use an accelerometer to
actual system to their actual heart or bodies, so it is
detect the movement of the heart. It must also use a suitable
fine for learners to simulate how this would work by
sound output and an LED display to give heart rate information to
the user. manually moving the BBC micro:bit to trigger the
accelerometer.
2. Systems diagram
Programming the BBC micro:bit and example
Introduce the systems diagram for the heart rate monitoring
system. Discuss this with learners. What do input, process and When writing the program, low ability learners or those
output mean? What are the physical parts of the system and their who have not done programming before may benefit
functions? from writing, experimenting with and downloading the
example program shown on the Teacher PowerPoint.
3. Design criteria for the system
They can use this as a base for their own program.
Go through the design criteria with learners. Question them as to This is provided as JavaScript Blocks Editor Powered
what each of the criteria might mean in practice in terms of
producing their system. How might they meet each of the criteria? by Microsoft MakeCode (microbit-heartrate-jsb.hex)
and Python Editor (heartrate.py) code.
4. Use of accelerometer
When the accelerometer detects movement the LED
Describe what is meant by an accelerometer (detects
screen will create a graphical representation of the
acceleration), what it does and how it works. Ask learners if they
‘heart beat’. A buzzer or beeper can also be added and
know of any electronic products that use them and show
attached between pin 1 and ground (this will require
examples where possible.
additional programming).
Explain how accelerometers are used in heart monitoring
For ease of testing, Button A can also be used to
equipment in hospitals and cardiac care units. They can detect
create the display images in place of the
the tiny body movements made by the heart pumping – e.g. a
smart phone with an inbuilt accelerometer can do this effectively. accelerometer.
5. Sound output and LED display To open the example program:
Introduce a suitable output device to give an audible indication of > Go to http://microbit.org/code/
the heart rate. This could be a small buzzer or beeper. > Find the appropriate programming editor.
Demonstrate how this can be connected to the BBC micro:bit
using either flying leads, block connectors, crocodile clips or hard > Click on ‘Let’s Code’.
wiring. Any external devices used should be connected between > Drag the relevant program file from the folder
the pin number chosen and ground. where it is stored to the work area on screen.
Introduce the BBC micro:bit’s inbuilt LED display and show how > Visit http://support.microbit.org/support/home
this can display a simple text and/or characters. for help and further support if needed.
6. Writing the program
Learners begin writing their program to meet the design criteria
using the example program as a guide where necessary.
7. Progress review
Review learner progress part way through the activity and recap
key points as necessary. Refer to the example program where
appropriate to help guide learners.
8. Downloading program and testing
Learners download and test their program, refining and improving
it as necessary.

Differentiation
Basic Extension

Learners can write the example program directly into the Learners could extend the program to provide more
programming software and download it as a starting point. They detailed information about the heart rate.
can then develop this further as required. The example program
is included in the accompanying PowerPoint. This could include scrolling graphical information of the
heart rate, a warning if the heart rate drops or rises
Learners should be able to use the accelerometer as a simple sharply or a more complex audible output using a piezo
motion sensor and simulate how this might mimic a device sounder with a programmed set of tones.
attached to the heart. Their system should beep each time the
accelerometer detects movement to give an audible indication of
the heart rate. The LED display should also give some indication
of this, such as a simple graphical display updated with each
movement of the accelerometer.

Resources
Required files
> Projector/Whiteboard
> BBC micro:bit system and online programming software Programming the System presentation
> Internet (to access programming software)
> Crocodile clips or other wiring options (to attach sound output
device)
Example BBC micro:bit JavaScript Blocks Editor
and Python Editor programs (also provided as .hex and
.py files).

Additional websites

The following websites can be used for additional technical information or to provide a wider context to the development of the
system.

> IET TV – Heart Rate Monitor: Supporting IET TV video - ideal for use as part of a starter or introductory activity to
support this resource. https://tv.theiet.org/Index.html?videoid=7298
> BBC micro:bit website: Website containing everything needed to get started with using the micro:bit! https://microbit.org/
> IET Education – Wearable antennas: Existing IET Education resource set that can act as an ideal partner to this unit of
learning. https://education.theiet.org/secondary/teaching-resources/wearable-antennas/
> YouTube Video – Normal vs Accelerated Heart Rate: Animated video showing the difference between normal and
abnormal heart rates. https://www.youtube.com/watch?v=BhGwb5hxbX4
> YouTube Video – British Heart Foundation: Guide to blood pressure and Holter monitoring tests.
https://www.youtube.com/user/BritishHeartFound?v=N4wi2oiL3BY
Related activities (to build a full lesson)

Starters Plenary
> ACTIVITY: Social Effects of Health Management > ACTIVITY: Wearable technology
> IET TV VIDEO – Heart Rate Monitor > Opportunities within activity for presentations,
https://tv.theiet.org/Index.html?videoid=7298 peer/self assessment
> Reflection on Objectives and PLTS skills used

Main
> ACTIVITY: Design a personal heart monitoring system

The Engineering Context

Personal health is an ideal topic for teaching about programmable components and embedded intelligence in products.
These are key parts of the 2014 programme of study for Design and Technology at key stage 3.
It is also an ideal vehicle for using the BBC micro:bit in the classroom and developing the programming skills of learners.
Curriculum links

England: National Curriculum Northern Ireland: Curriculum

Design & Technology Technology & Design


> KS3 3c, 4c, 4d > KS3 Knowledge and Skills: Control – incorporate
control systems, such as mechanical, electronic or
computer-based, in products and understand how
Computing these can be employed to achieve desired effects.
> KS3 Objective 2: Design cost effective and appropriate
KS3 Pupils should be taught to: solutions to meet the specific needs of diverse local
> design, use and evaluate computational and global groups.
abstractions that model the state and behaviour
Learning Outcomes:
of real-world problems and physical systems
> undertake creative projects that involve > Show deeper understanding by thinking critically and
selecting, using, and combining multiple flexibly, solving problems and making informed
decisions, using Mathematics and ICT where
applications, preferably across a range of
appropriate.
devices, to achieve challenging goals, including > Demonstrate creativity and initiative when developing
collecting and analysing data and meeting the ideas and following them through.
needs of known users

Scotland: Curriculum for Excellence Wales: National Curriculum

Technologies Design and Technology


> TCH 3-01a, TCH 3-03a, TCH 3-04a,TCH 3-13a > KS3 Skills: Designing 1
> KS3 Skills: Systems and Controls 16, 18, 20, 21
GCSE D&T GCSE Engineering

AQA D&T AQA Engineering

> 3.1.4, 3.3.4 > 3.3.2, 3.3.3, 3.4.2

Edexcel D&T

> 1.6, 1.7, 1.16.1c, 1.6, 1.7, 1.16.1c, 5.1.1, 5.2.1,


5.2.2, 5.2.3
Eduqas D&T

> 2.1 Core: 5, 6

> 2.1 Systems: 1

OCR D&T

> 4.2a ii, 6.4


Assessment opportunities

Regular questioning throughout the activity, review of progress at key intervals and formal assessment of finished program
and working system.
Personal, learning & thinking skills (PLTS)

> Creative thinker


> Independent enquirer
> Team worker (if done as a team activity)
> Self manager
> Effective participator

You might also like