Circuit Documentation
Summary of the Circuit
This circuit integrates an ESP32 microcontroller with a MAX30102 heart rate and oxygen sensor. The ESP32 is a versatile microcontroller with Wi-Fi and Bluetooth capabilities, while the MAX30102 is an optical sensor that measures heart rate and blood oxygen saturation levels. The ESP32 powers the MAX30102 sensor and communicates with it via I2C protocol. An interrupt line is also connected from the sensor to the ESP32 to signal when new data is available.
Component List
ESP32 (30 pin)
- Description: A powerful microcontroller with Wi-Fi and Bluetooth capabilities, featuring a wide range of GPIO pins.
- Pins: EN, VP, VN, D34, D35, D32, D33, D25, D26, D27, D14, D12, D13, GND, Vin, D23, D22, TX0, RX0, D21, D19, D18, D5, TX2, RX2, D4, D2, D15, 3V3.
MAX30102 Heart Rate and Oxygen Sensor
- Description: An integrated pulse oximetry and heart-rate monitor sensor solution. It communicates with the ESP32 via I2C and has an interrupt pin.
- Pins: VIN, SCL, SDA, INT, IRQ, RD, GND.
Wiring Details
ESP32 (30 pin)
- 3V3: Provides power to the MAX30102 sensor.
- D22 (SCL): I2C clock signal connected to the SCL pin of the MAX30102.
- D21 (SDA): I2C data signal connected to the SDA pin of the MAX30102.
- D19 (INT): Interrupt signal connected to the INT pin of the MAX30102.
- GND: Ground connection shared with the MAX30102 sensor.
MAX30102 Heart Rate and Oxygen Sensor
- VIN: Connected to the 3V3 output from the ESP32 to receive power.
- SCL: Connected to the D22 pin of the ESP32 for the I2C clock signal.
- SDA: Connected to the D21 pin of the ESP32 for the I2C data signal.
- INT: Connected to the D19 pin of the ESP32 to signal interrupts.
- GND: Connected to the ground pin of the ESP32 to complete the power circuit.
Documented Code
No code has been provided for the microcontroller. To operate this circuit, code must be written and uploaded to the ESP32 to initialize and communicate with the MAX30102 sensor, handle interrupts, and process the sensor data. The code should include the initialization of the I2C interface, interrupt configuration, and the main loop to read and process the data from the MAX30102 sensor.
