Wiznet makers

rudals

Published July 06, 2024 © 3-Clause BSD License(BSD-3-Clause)

0 UCC

0 VAR

5 Contests

0 Followers

0 Following

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.

COMPONENTS Hardware components

WIZnet - Surf5

x 1

W7500-Surf5


WIZnet - WIZPoE-P1

x 1


x 1

Used compatible one


DFRobot - Maxim Integrated MAX30102 High-Sensitivity Pulse Oximeter and Heart-Rate Sensor for Wearable Health

x 1

Used compatible one

Software Apps and online services

microsoft - VS Code

x 1


https://gotify.net/ - Gotify

x 1


PROJECT DESCRIPTION

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.

Block diagram of PHD in W7500-Surf5

 

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. 

Schematic of PHD

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

DEMO

Documents
  • PHD Source

    Personal Healthcare Device Code

  • PHD schematic

Comments Write