Personal Healthcare Device (PHD)
A personal healthcare device is a device that helps improve your health and can measure heart rate and oxygen saturation on a regular basis.
![](/upload/project/5864/cover1.jpg)
![](https://www.electronicscomp.com/image/cache/catalog/096-inch-i2c-iic-4pin-oled-display-module-blue-400x400.jpg)
SOLOMON SYSTECH - Monochrome 0.96" 128x64 OLED Graphic Display
x 1
Used compatible one
![](https://dfimg.dfrobot.com/store/data/SEN0518/SEN0518.jpg?imageView2/1/w/564/h/376)
DFRobot - Maxim Integrated MAX30102 High-Sensitivity Pulse Oximeter and Heart-Rate Sensor for Wearable Health
Used compatible one
A personal health device (PHD) is a device that helps improve personal health by regularly measuring heart rate and oxygen saturation. You can add and delete personal schedule alarms by accessing the PHD Manager of a PHD device connected to the Internet. For example, it can be used to set periodic heart rate and oxygen saturation measurement times, or to set medication taking times. You can obtain the SNTP time and receive notifications on your registered mobile device when that time comes.
External device and alarm services were implemented by adding I2C/TIMER/WEB SERVER/SNTP functions in W7500-Surf5.
Below is a block diagram of PHD.
Hardware Implementations
Below image is a schematic of PHD, Conbine W7500-Surf4 with POE Module P1 board and Connect to OLED and MAX30102 with I2C interface on W7500-Surf5.
And I made a PHD case like below.
When the POE power is connected, the IP assigned by DHCP is displayed on the screen and the heart rate and oxygen saturation can be measured by placing a finger.
Software Implementations
To implement PHD, the following functions of W7500-Surf5 are implemented.
Wiznet software I2C driver
- There is no HW I2C block in W7500 so i used wiznet software i2c driver.
- Used to measure heart rate and oxygen saturation of max30102.
- Used SSD1306 OLED device output for display purposes.
DualTimer
- Check SNTP time periodically by setting a timer at 1 second intervals.
- Check the specified schedule by comparing the current SNTP time with the schedule registered in the scheduler.
HTTP WebServer
- Process GET/POST data by implementing HTTP web server and parser.
PHD Schedule Manager
- Implementation of management page.
- Schedule management by adding or deleting notification schedules.
- When connected to Surf5, the Healthcare Manager screen appears like below.
Simple alarm message
- Run Gotify server on Windows PC and operate it as a message server
- Alarm is sent to registered mobile device at a scheduled time based on SNTP time