element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
microbit
  • Learn
  • Learning Center
  • STEM Academy
  • microbit
  • More
  • Cancel
microbit
micro:bit Blog Heart Monitor Project
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
microbit requires membership for participation - click to join
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: rancell
  • Date Created: 1 Nov 2018 7:56 AM Date Created
  • Views 841 views
  • Likes 5 likes
  • Comments 0 comments
  • intermediate micro:bit projects
  • micro:bit education giveaway
  • intermediate_microbit_projects
  • stem projects
  • the great micro:bit challenge
Related
Recommended

Heart Monitor Project

rancell
rancell
1 Nov 2018

About this project

 

This project shows how to send radio messages between two BBC micro:bits. One micro:bit will be used by the patient who will press the A button when they feel their heartbeat. The other micro:bit will be used by the nurse and will see a heat symbol flash when the patient presses the button.

 

What you'll need

 

2 x BBC micro:bit

1 x Micro USB

1 x Computer or tablet

4 x AAA Batteries & 2 x Battery Holder (optional)

 

Project walk through

 

  • Go to the BBC micro:bit website, and begin a new project.

 

  • Now click 'Radio' section to find the "radio set group block". This block requests the micro:bit to use the radio module and communicate with other mciro:bits using the same group. Choose a group number that no-one else in the room is using, in this example we've chosen group 1.

 

image

 

  • Now it's time to send a radio message. Using the "radio send string" block we'll send the word "beat" each time the patient presses the button.

 

image

 

  • Use the emulator to try this out. You when you press A on the micro:bit you should see the antenna flash and a second micro:bit appear. The second micro:bit doesn't do anything yet, so we need to tell it how to receive this message.

 

image

 

  • In the 'Radio' section is a "on radio received" block. This is like the "on button pressed" block except instead of running when a button is pressed it runs when a radio message is received. A new variable called 'receivedString' is automatically created - this will contain the string that was received.

 

image

 

  • We need to only listen to the "beat" string. You'll need to use blocks from the 'Logic', 'Variables' and 'Text' sections to make an if condition that runs when the word "beat" is received.

 

image

 

  • Each time we receive a beat we want to flash a heart symbol on the display.

 

image

 

  • Use the emulator to try this out. You when you press A on the micro:bit you should see a second micro:bit appear and flash a heart.

 

Congratulations! Download this program to two micro:bits and connect the battery packs. Have one person be the patient and press the A button each time their heart beats. Have another person be the nurse and watch the monitor. See how far you away from the patient you can get and still receive their heartbeat.

 

Next Steps

 

  • Can you modify the program so the receiving micro:bit shows a sad face when no heartbeat is received for 5 seconds? Hint: use a variable that increases every second. When you received a heartbeat set it to zero. If the variable every gets to 5 or above show the warning!
  • If you have three or more micro:bits you could manage multiple patients. Can you make the program send different messages for each patient and display them differently?
  • What other sensors can you build? Can you connect some wires to a micro:bit to notify you when a door opens or closes?
  • Sign in to reply
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube