Blog 2 - HRV
Blog 2 - HRV
Arthur Bilyk - 20097938
Week 1 -
We were given a task to learn how to use a micro:bit and to create a Heart Rate Monitor. This was my first time working with a micro:bit, so I started by familiarizing myself with the basics, including how to program it using Microsoft MakeCode.
The micro:bit
The micro:bit is a small programmable device equipped with sensors, buttons, LEDs, and Bluetooth functionality. For this project, we focused on using the micro:bit’s input capabilities to detect heart rate signals and display data.
MakeCode
To begin, I used MakeCode, a block-based coding platform, to program the micro:bit. The key steps included:
Setting up the micro:bit to detect input changes from a heart rate sensor
Displaying a graph on the LED panel when a pulse was detected.
Sending the heart rate data over the serial connection to monitor it on a computer.
Testing and Serial Output
After uploading the program to the micro:bit, I tested the heart rate monitor by simulating pulse inputs. I also used the serial monitor in MakeCode to display the detected heart rate values on my computer, making it easier to analyze the readings.
Final Thoughts
Through this project, I learned the fundamentals of programming a micro:bit and how to use serial communication to display data. It was a fun and interactive way to explore microcontrollers and sensors
Comments
Post a Comment