This shows you the differences between two versions of the page.
iothings:proiecte:2021:remote-heart-rate-and-blood-oxygen-detector [2022/01/27 21:21] radu_george.dumitru [Schematic & Breadboard implementation] |
iothings:proiecte:2021:remote-heart-rate-and-blood-oxygen-detector [2022/01/28 10:51] (current) radu_george.dumitru |
||
---|---|---|---|
Line 3: | Line 3: | ||
====== Introduction ====== | ====== Introduction ====== | ||
- | This project's goal is to implement a fully-functional heart rate and blood oxygen detector, using the GY-MAX30100 pulse oxymeter, and the ESP-WROOM-32 microcontroller. This project is done through the Arduino IDE. The data coming from the sensor can be observed both through the serial monitor available through Arduino, but also through a local web server, using Wi-Fi. | + | This project's goal is to implement a fully-functional heart rate and blood oxygen detector, using the GY-MAX30100 pulse oximeter, and the ESP-WROOM-32 microcontroller. This project is done through the Arduino IDE. The data coming from the sensor can be observed both through the serial monitor available through Arduino, but also through a local web server, using Wi-Fi. |
====== Hardware Bill of Materials ====== | ====== Hardware Bill of Materials ====== | ||
* ESP-WROOM-32 microcontroller with Bluetooth and Wi-Fi. | * ESP-WROOM-32 microcontroller with Bluetooth and Wi-Fi. | ||
- | * GY-MAX30100 Pulse Oxymeter. | + | * GY-MAX30100 Pulse Oximeter. |
* Wires, breadboard and a micro-USB cable. | * Wires, breadboard and a micro-USB cable. | ||
Line 14: | Line 14: | ||
{{ :iothings:proiecte:2021:HRBOD_schem.png | Schematic of the project}} | {{ :iothings:proiecte:2021:HRBOD_schem.png | Schematic of the project}} | ||
- | *This is the schematic representative of the circuit implemented. | + | * This is the schematic representative of the circuit implemented. |
- | {{ : | Breadboard implementation of the project}} | + | {{ :iothings:proiecte:2021:hrbod_bb_2.png?750 | Breadboard implementation of the project}} |
* This is the breadboard implementation of the project. | * This is the breadboard implementation of the project. | ||
+ | {{ :iothings:proiecte:2021:real_life_2.jpg?750 | Breadboard implementation of the project}} | ||
+ | * In this photo we can see the physical implementation of the circuit in the proximity of South Africa. | ||
+ | ====== Software implementation ====== | ||
+ | {{ :iothings:proiecte:2021:hrbod_sw.png?750 | Software results}} | ||
+ | * Above we can see the real-time readouts of the pulse oximeter sensor through the web server. | ||
+ | |||
+ | This project transmits the sensor information through the Wi-Fi module implemented inside the microcontroller. It needs access to a Wi-Fi connection, and the credentials are hardcoded in Arduino. The Wi-Fi connection itself is done through the WiFi.h header library, which tries to connect the microcontroller with the credentials provided. | ||
+ | |||
+ | Once connected to Wi-Fi, the program sends the data to the web server though the WebServer.h library, which is responsible for HTTP requests. In order to view the data, I created an HTML page using Aynchronous JavaScript and XML (AJAX). Using this language, it is possible to update values asynchronously, without the need of refreshing the whole page. | ||
+ | |||
+ | ====== Problems encountered ====== | ||
+ | |||
+ | Even though this project seems pretty simple in hardware terms, the hardware itself was a nightmare to deal with. I initially ordered a variant of the GY-MAX30100, namely RCWL-0530 MAX30100, but when I tried to route it to the microcontroller, it failed to connect. While reading online, I came across [[https://www.teachmemicro.com/max30100-arduino-heart-rate-sensor/ | this article]], which outlined the problem with the sensor that I had. Because of this, I would be required to remove three resistors from its surface, or buy its variant, which I ultimately had to do. This sensor ultimately had no problems, and I managed to work through the project just fine. | ||
+ | |||
+ | ====== Conclusions ====== | ||
+ | |||
+ | Seeing the sensor do its job and present data as advertised is something of great impact. Not only do you see real life sensors come into play, but you also have the opportunity to interact directly with them. This project was a window of opportunity for me to delve deeper into the IoT world. Already working for clients in the IoT space, it was an opportunity to get more hands-on work with the actual sensors themselves, and this was a satisfying experience. |