1Getting Started with the HealthyPi Complete Kit
Plug in the HealthyPi HAT to the Raspberry Pi
The HealthyPi is an add-on "HAT" board for the Raspberry Pi 3. It could also possibly be used with any other HAT compatible Raspberry Pi board, including a Raspberry Pi Zero. Connect the HealthyPi HAT to the main Raspberry Pi just snapping it on to the 40-pin header on the Pi.
Check out the below video for complete instructions about assembling and getting the HealthyPi up and running.
2Getting started with HealthyPi on your own Raspberry Pi
If you have a Raspberry Pi setup already available, just follow the following steps on your Raspberry Pi. You will need a monitor and a keyboard/mouse and the Raspberry Pi should be running Raspbian before proceeding with HealthyPi installation. To find out how to install Raspbian check out this great tutorial on Raspberry Pi’s official site.
The following video shows you how to connect the HealthyPi to a Raspberry Pi.
After completing the steps shown in the video, open up the terminal window (Menu -> Accessories -> Terminal) on Raspbian running on your Raspberry Pi:
In the terminal window, type the following lines.
curl -sS http://pi.protocentral.com/hpi3.sh | sudo bash
Follow the instructions shown carefully, this will download and install all that is required to get the HealthyPi running.
It really is as simple as that. This code will install all the required overlays, configuration and application files to get the Healthy Pi up and running.
After the script reboots your Raspberry Pi, you should be able to see the GUI display the sensor outputs in real-time on the screen.
This completes the install!
3Getting started with the HealthyPi GUI on Windows, MacOS and Linux
The HealthyPi board now streams the same data on the on-board USB port. This allows you to get the same data that goes to the Raspberry Pi, now on your desktop PC as well.
Java 8 is required on all platforms for running the processing-based GUI application. You can download Java for your platform from the following link.
Installing drivers (only for Windows)
HealthyPi uses the same drivers as an Arduino Zero. Once plugged in to the USB port, the device would be recognized as an “Unknown Device”. You can locate the device is the Windows Device Manager and manually install the drivers provided in the “drivers” folder in the Windows Executable ZIP archive provided.
MacOS and Linux do not need any drivers to be installed.
Processing GUI Installation
Download the zip file containing the executable files from the following links for 32-bit/64-bit Windows. If you do not know if you have a 64-bit or 32-bit computer, try with the 32-bit version.
Simply download the appropriate file for your operating system, unzip the contents and run the executable program contained in it. On desktop operating systems, you will have to choose the correct port name assigned to the HealthyPi by USB. Simply select the port from the dropdown on the top and port should be opened.
Note: On MacOS, if you see an error saying “app is damaged”, please follow the steps given in https://support.apple.com/en-us/HT202491 .This is a known issue with Processing on MacOS.
4Connecting the sensors
Connecting the ECG/Respiration Electrodes
A 3-electrode cable along with a standard stereo jack is provided along with the shield to connect the electrodes to the board. The other side of the electrode connector would connect to snap-on electrodes attached to the body. For testing purposes, you can use an ECG simulator to provide inputs to the board.
Important Warning: When connecting the electrodes to the body, it is safer to disconnect the mains power source to the Arduino. For example, if you are using the Arduino along with a laptop, disconnecting the battery charger from the laptop would be a safe option.
Place the electrodes on the body in these positions to get the best signal. However, placing it in other positions on the chest would work as well with differing ECG signal patterns. For getting respiration using the Impedance Pneumography, it’s best to wear them on the chest as given in the figure below to get the best signal.
Connecting the Pulse Oximetry Probe
[Pulse oximetry] is an optical method of non-invasively measuring the oxygen content in the blood. This is achieved with the help of a finger-clip probe that contains some LEDs on one side of the clip and a photo-detector on the other side.
The LEDs emit light in the red and IR wavelengths. Some of these are absorbed by the blood and the rest is transmitted through to the other side of the finger, which is is picked up by the photo-detector. The Pulse Oximetry front-end measures this variance in the transmitted light intensity to display the Photoplethysmogram (PPG) signal. SpO2 is a computed value derived from the Red and IR PPG signal.
To start measuring, simply plug-in the provided SpO2 finger-clip probe to the DB9 connector on the HealthyPi main board. If the probe is properly plugged in, you should see a Red glow inside the probe.
Connecting the temperature sensor
A digital human body temperature sensor based on the MAX30205 from Maxim Integrated is provided. This sensor provides direct, calibrated temperature values over a digital I2C interface. This comes pre-connected with the HealthyPi through a simple screw-terminal based connector and a cable for maximum flexibility