GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Gopinath-Biomedical/Non-Invasive-Hemoglobin-Monitor: Non-invasive hemoglobin screening prototype using MAX30100, NodeMCU ESP8266 and a web dashboard

BranchesTags
Open more actions menu

Latest commit

 

History

1 Commit
1 Commit

Folders and files

NameName
Last commit message
Last commit date
dashboard
dashboard
 
 
data
data
 
 
firmware/hemopulse_esp8266
firmware/hemopulse_esp8266
 
 
hardware
hardware
 
 
images
images
 
 
tools
tools
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
requirements.txt
requirements.txt
 
 

Repository files navigation

Smart Non-Invasive Hemoglobin Monitoring System using IoT

A compact, low-cost prototype that estimates hemoglobin-related optical signals from the fingertip using a MAX30100 sensor and a NodeMCU (ESP8266), and shows the result live on a web dashboard (heart rate, SpO2, PPG waveform and an Hb status).

Disclaimer: Academic prototype. It provides an experimental estimate, not a clinical diagnosis, and does not replace a blood test (CBC / hematology analyzer). See Limitations.

Institution: Department of Biomedical Engineering, V.S.B. Engineering College Guide: Dr. Yuvaraj V, Associate Professor Team: Boobalan S, Gopinath A (@Gopinath-Biomedical), Nishanth R


Problem Statement

Standard hemoglobin testing needs a blood sample and a laboratory. It is invasive, slow and costly, which makes frequent or large-scale screening difficult, especially in rural areas where anemia often goes undetected. A painless, low-cost, portable screening aid would help early detection.

Proposed Solution

  1. The MAX30100 shines red and infrared light through the fingertip and measures the reflected light (photoplethysmography, PPG).
  2. The ESP8266 extracts the pulsatile (AC) and steady (DC) parts of both signals and computes the ratio of ratios R = (AC_red/DC_red) / (AC_ir/DC_ir).
  3. Heart rate (peak detection), approximate SpO2 and a calibrated hemoglobin estimate are derived from the signals.
  4. The ESP8266 serves the data as JSON over Wi-Fi; dashboard/index.html polls it and displays the results.

Block diagram

Prototype

Controller board MAX30100 sensor Enclosure
board sensor enclosure

Add a screenshot of your running dashboard as images/dashboard.png and embed it here.

Hardware

Part Role
NodeMCU (ESP8266) Reads the sensor, computes values, hosts the /data endpoint over Wi-Fi
MAX30100 Red + IR LEDs and photodiode (I2C)
Buzzer (optional) Audible indicator
9V battery Portable power

Wiring and cost table: hardware/README.md

Repository Structure

non-invasive-hemoglobin-monitor/
├── README.md
├── LICENSE
├── requirements.txt              # numpy (for the calibration tool)
├── .gitignore
├── firmware/hemopulse_esp8266/
│   ├── hemopulse_esp8266.ino     # NodeMCU firmware
│   └── secrets.h.example         # copy to secrets.h, add Wi-Fi details
├── dashboard/index.html          # HemoPulse dashboard (open in browser)
├── tools/calibrate.py            # fits Hb = a*R + b from lab values
├── data/calibration_template.csv
├── hardware/README.md
└── images/

How to Run (step by step)

1. Wi-Fi hotspot on the laptop Windows: Settings → Network & internet → Mobile hotspot. Set the network name to TOM (or any name), note the password, and set the network band to 2.4 GHz (the ESP8266 cannot join 5 GHz). Windows hotspots use the 192.168.137.x range, which the firmware expects.

2. Flash the firmware

  1. Install the Arduino IDE and add the ESP8266 board package (File → Preferences → Additional boards manager URLs: https://arduino.esp8266.com/stable/package_esp8266com_index.json, then Boards Manager → esp8266).
  2. Open firmware/hemopulse_esp8266/hemopulse_esp8266.ino.
  3. Copy secrets.h.example to secrets.h in the same folder and put in your hotspot name and password.
  4. Select Tools → Board → NodeMCU 1.0 (ESP-12E Module), choose the COM port, click Upload.
  5. Open Serial Monitor at 115200 baud. You should see MAX30100 OK and the board's IP (192.168.137.200). If you use a different IP, open the dashboard as index.html?ip=<that IP> and change localIP in the firmware.

3. Open the dashboard Open dashboard/index.html in Chrome on the laptop (or any device on the hotspot). The badge turns green (MODULE CONNECTED) when the board answers. Place a fingertip gently on the sensor; after about 3 seconds the readings appear.

The live dashboard cannot be hosted on GitHub Pages. It reads from the board over plain HTTP on a private network, and browsers block an https:// page from doing that. Run it locally. To show the project online, add a screenshot or a short screen recording of the dashboard to images/.

4. Calibrate (required for a hemoglobin value) Until calibrated, the dashboard shows UNCALIBRATED together with the measured R.

  1. For each volunteer, record the device R (Serial Monitor prints it every second) and a same-day lab Hb value in data/calibration.csv (format in data/calibration_template.csv). Use informed consent, and include both anemic and non-anemic subjects.
  2. pip install -r requirements.txt then python tools/calibrate.py data/calibration.csv
  3. Paste the printed HB_CALIBRATED, HB_A, HB_B into the firmware and re-upload.

Dashboard Output

  • Total Hemoglobin (g/dL), approximate SpO2 (%), Heart rate (BPM), Probe contact state
  • Live PPG waveform drawn from the real samples sent by the sensor
  • Screening result: normal / mild / moderate / severe low Hb estimate, using WHO adult cut-offs (female 12 g/dL, male 13 g/dL; selectable on the page)
  • Offline, probe-idle, measuring and uncalibrated states

Limitations

  • The MAX30100 has only two wavelengths (red, IR). It was designed for pulse oximetry. Estimating hemoglobin from two wavelengths is experimental and strongly affected by skin tone, finger pressure, motion and ambient light.
  • The Hb value is only as good as your calibration data. Report your own measured error (MAE, bias) against lab values before making any accuracy claim.
  • SpO2 uses a generic empirical formula and is not calibrated against a reference oximeter.
  • The dashboard uses adult WHO cut-offs only. Cut-offs differ for children, pregnancy and altitude, and the result is never a diagnosis.
  • Commercial or clinical use would need clinical validation and regulatory compliance (for example ISO 13485 and IEC 60601).

Results

To be added: calibration sample size, MAE / RMSE / bias against lab Hb (from tools/calibrate.py), and screenshots.

Future Work

  • Larger calibration study and validation against lab CBC
  • Additional wavelengths (for example MAX30102 or multi-LED designs)
  • Temperature and motion compensation
  • Battery monitoring, case design, mobile app

Reference

  • Maxim Integrated, MAX30100 Pulse Oximeter and Heart-Rate Sensor IC for Wearable Health, datasheet. https://www.analog.com/media/en/technical-documentation/data-sheets/max30100.pdf

  • WHO, Haemoglobin concentrations for the diagnosis of anaemia and assessment of severity (WHO/NMH/NHD/MNM/11.1), 2011.

License

MIT License, see LICENSE.

About

Non-invasive hemoglobin screening prototype using MAX30100, NodeMCU ESP8266 and a web dashboard

Topics

biomedical-engineeringesp8266hemoglobiniotmax30100noninvasivephotoplethysmography

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.