PixArt HR main.cpp

Dependencies:   PXI_HR_Nordic mbed

Homepage

This section highlights the setup and operating guide to integrating PAH8005 with the Nordic nRF51 DK board.

Setup

Hardware:

  • 1. PC with Windows Operating System
  • 2. nRF51 Dev Kit Board from Nordic
  • 3. PAH8005 Arduino Enabled Board
  • 4. USB Cable (one end with microUSB)

Connection:

Please connect the board as show below.

/media/uploads/pixus_mbed/nordic_pah8005_connection.jpg

Supplying Power

Connect the one end of the USB to the PC USB and the other to the Nordic micro USB as shown in the figure below.

/media/uploads/pixus_mbed/supplying_power.jpg

I am assuming that you already know and are able to download the code at this point.

Do remember to reset the Nordic Board after downloading the code on the Nordic device by pushing on the button illustrated below.

/media/uploads/pixus_mbed/resetting_nordic.png

Next, we will test to see if the sensor is indeed functional and deriving the Heart Rate.

Functional Test

1. Open up Tera Term. If you do not have Tera Term, you can download here.

https://en.osdn.jp/projects/ttssh2/releases/

2. Once you have your Tera Term open, go to File > New Connection or use the Hot Key "Alt + N".

3. Select "Serial".

4. On the Port selection, click on the drop down menu and select the port that describes "JLINK CDC UART Port".

/media/uploads/pixus_mbed/terra_terminal_port_selection.jpg

5. Click on "OK"

6. Place finger gently on the PAH8005 as illustrated below. Remember that finger does NOT need to press hard onto the sensor package in order to derive a heart rate.

/media/uploads/pixus_mbed/finger_on_pah8005.jpg

7. Going back to the Tera Term window, you should see that it is acquiring heart rate when it is writing "Measuring Heart Rate..." and repeating the same message over a 6 to 8 seconds period. This is normal as the algorithm requires certain amount of data to compute the first heart rate. After this startup time, the heart rate measurement should be displayed approx. every second on the Tera Term window.

/media/uploads/pixus_mbed/measuring_heart_rate.jpg

Have fun with this and let us know if you have any further questions!


All wikipages