Skip to content

🏆 Top 10 Globally @ Google Solution Challenge 2024 - Glutara Hardware Application. Built with Arduino MAX30100 oximetry, ESP32, and C++

Notifications You must be signed in to change notification settings

Glutara/glutara-hardware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation


Glutara

A Key to Your Diabetes Journey


Glutara Hardware

The beating heart: This repository houses the hardware blueprints for the Arduino and ESP32 devices that power Glutara, serving as the vital link between sensor data and the cloud, enabling real-time monitoring and seamless data exchange. This repository code development is based on this reference.

👨🏻‍💻  Technology Stack

Arduino | ESP32

Getting Started

Make sure you already have these components before following the 'how to run' steps

  1. MAX30100 Sensor Arduino
  2. Install Arduino IDE on your computer
  3. Appropriate board (e.g., ESP32)
  4. USB Cable

⚙️  How to Run

Clone this repository from terminal using this following command

$ git clone https://github.com/Glutara/glutara-hardware.git

Hardware Setup

  1. Sensor Connection:
    • Connect the MAX30100 sensor to an Arduino board (e.g., ESP32). Ensure the VCC, GND, SDA, and SCL pins of the sensor are correctly connected to the corresponding pins on the Arduino.
  2. Computer Connection:
    • Connect the Arduino board to your computer via a USB cable.

Hardware Setup

  1. Arduino IDE:
    • Install the Arduino IDE if it is not already installed on your computer.
  2. Library Installation:
    • Install the MAX30100_PulseOximeter library via the Library Manager in the Arduino IDE or download it from GitHub if available.

Uploading the Code

  1. Open the Sketch:
    • Open the MAX30100_Debug.ino file in the Arduino IDE.
  2. Board and Port Selection:
    • Select the appropriate board (e.g., ESP32) and the correct port in the Arduino IDE.
  3. Upload:
    • Upload the code to the Arduino by clicking the "Upload" button in the Arduino IDE.

Monitoring the Output

  1. Open Serial Monitor:
    • Open the Serial Monitor in the Arduino IDE after the code has been successfully uploaded.
  2. Set Baud Rate:
    • Set the baud rate of the Serial Monitor to 115200 bps to match the configuration in the code (Serial.begin(115200);).

Saving Data to CSV

  1. Serial Data Logging:

    • Data will be displayed on the Serial Monitor at specified intervals (e.g., every 1000 ms).
  2. Python Script for CSV:

    • Use a Python script with the pyserial library to read data from the Serial Monitor and write it to a CSV file. Here is an example script:
    import serial
    import csv
    import time
    
    ser = serial.Serial('COM_PORT', 115200)  # Replace 'COM_PORT' with the appropriate COM port
    with open('data.csv', 'w', newline='') as file:
        writer = csv.writer(file)
        while True:
            line = ser.readline().decode('utf-8').rstrip()
            if line.startswith('H:') or line.startswith('O:'):
                writer.writerow([time.strftime("%Y-%m-%d %H:%M:%S"), line])

    You can also use available python scripts here.

🛠️  Hardware Development Documentation

Arduino MAX30100

Under Development Board

👥  Contributors

Bandung Institute of Technology

Bandung Institute of Technology

Bandung Institute of Technology

Bandung Institute of Technology

About

🏆 Top 10 Globally @ Google Solution Challenge 2024 - Glutara Hardware Application. Built with Arduino MAX30100 oximetry, ESP32, and C++

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published