2019年3月16日星期六

1_3

1_3
This week, first test the sensor function, then change and compile the initial code to ensure the sensor work.

 First of all, download the initial program from GitHub (https://github.com/) and import in the mbed platform.

Figure 1: initial code of the sensor MAX30102.

Next, compile this program on board MAX32600 mbed, open serial monitor and change the baud rate to 115200; you can see some parameters in the screen.

Figure 2: the results from the serial monitor

The HR in figure 2 presents the heart rate per minute and the SPO2 presents the blood oxygen concentration. The meaning of the HRvalid to feedback this heart rate can be used or invalid. It is equal to 1 means that this data is correct, equal to 0 means that this data is invalid. SPO2valid is the same function as HRvalid. 
Conclusion 

Because it is the first time to use the MBED programming platform, the operation is relatively unfamiliar. Make sure the board selection is correct before compiling; otherwise you will not be able to upload the program. Then the finger should be in full contact with the sensor, otherwise, it will cause data loss.

没有评论:

发表评论