Iteration 2 - Eric Butler
For the second iteration of the HRV project, We started to delve more into the micro bit and sensors to conduct readings of both our heart rate and HRV.
Firstly we set up the apparatus which contains the Microbit mounted onto a breadboard to allow extra power to the microbit. This breadboard includes a 3V battery as well as pins to attach things such as the pulse sensor used in this research. A screenshot of the layout can be seen here:
After we had our apparatus set up, it was time to start building the application. Here we forked down a repository as shown here: https://github.com/
> Our code contains a pace that will have a small square for 4 seconds and then a larger square for 6 seconds so the user has a visual representation of how the heartbeat should be.
> Our code will monitor the heart rate (PulseDet) as well as the HRV (delta_t) on pin 2 of the breadboard.
> Adjustments to the if-else statements are required to calibrate both the heart rate and HRV for each individual. below will show 2 examples of what happens when these values are calibrated correctly and incorrectly.
Right below we can see a picture of the code base which does contain the pacer mentioned above.
codebase from the Microbit website
Although not shown working in this iteration, here is a possible concept and example of how we can log the data to a CSV file. This is something I will have to work with more to ensure this method works. To get the data logging columns you needed to go to the extensions section of Microbit and install from there. This does only work on the V2 version according to the website.
Using Microbit without PC
Need to do more research on this but from what I have found operating a micro bit through a phone and downloading the app to run the code. Although this may seem like a good portable idea, I'm still not certain how practical this is

Comments
Post a Comment