Code Monkey home page Code Monkey logo

esp8266_max30102_spo2_pulse_meter's Introduction

ESP8266_MAX30102_SPO2_PULSE_METER

ESP8266 SPO2 and Pulse meter using MAX30102 sensor. The ESP8266 acts as a WiFi Access Point and web page server. SPO2 and heart rate measurements are displayed on a browser and updated every 4 seconds.

Development Environment

  • ESP8266 Wemos D1 Mini board
  • home-brew MAX30102 breakout board (MAX30102 modules are available on AliExpress)
  • Arduino 1.8.12 on Ubuntu 20.04 amdx64

Prototype

Credits

This is a mashup of code from the following projects :

  • MAX30102 sensor initialization and FIFO readout code from Sparkfun

  • SPO2 & pulse rate measurement code by Robert Fraczkiewicz from aromring's repository. I tweaked RF's implementation to use 50Hz sample rate.

  • ESP8266 WiFi Access Point & Webpage server code from Random Nerd tutorials

Usage

  • Connect to the WiFi Access Point "SPO2-Pulse". There is no password, but you can define one if you like.
  • Open the url 192.168.4.1 in your web browser
  • A new measurement is displayed every 4 seconds

  • If the measurement fails (finger not present, disturbed while reading), the value will display as 0
  • If unable to detect the MAX30102 sensor on power-up, the board built-in LED will blink rapidly. Try cycling power to the board.
  • In normal operation, the board built-in LED will toggle every 4-second measurement cycle
  • You can compile the code in debug mode to check the actual sample rate (required for the SPO2/Pulse algorithm). Or you can display real-time red and ir sensor data on the Arduino Serial Plotter window, to determine an optimal sensor led current setting.

esp8266_max30102_spo2_pulse_meter's People

Contributors

har-in-air avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.