ESP32-C3 Mini Based Health Monitoring System with LiPo Battery Power
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary of the Circuit
This circuit is designed to interface a variety of sensors and a voltage regulator with an ESP32-C3 Mini microcontroller. The sensors include an Adafruit LSM303DLHC Triple-axis Accelerometer+Magnetometer (Compass) and a MAX30102 Heart Rate and SpO2 sensor. A 3.7v LiPo battery provides power to the circuit, which is regulated to 3.3V by an AMS1117 3.3 voltage regulator. A resistor is used for pull-up on the I2C communication lines. The NPA is another component in the circuit, but its specific function is not detailed in the provided information.
Component List
3.7v LiPo Battery
- Description: A rechargeable lithium polymer battery.
- Pins: +Ve, GND
Adafruit LSM303DLHC
- Description: A triple-axis accelerometer and magnetometer (compass) module.
- Pins: SCL, SDA, INT2, INT1, DRDY, GND, VIN, 3.3V
Resistor
- Description: A passive two-terminal electrical component that implements electrical resistance as a circuit element.
- Value: 4.7 Ohms
AMS1117 3.3 Voltage Regulator
- Description: A low dropout voltage regulator that outputs 3.3V.
- Pins: VIN, OUT, GND
MAX30102 HR + SpO2 Sensor
- Description: An integrated pulse oximetry and heart-rate monitor sensor solution.
- Pins: INT, IRD, RD, GND, SCL, SDA, VIN
NPA
- Description: The specific function of this component is not provided.
- Pins: 1, 2, 3, 4, 5, 14, 13, 12, 11, 10, VSS, SCL, SDA, VDD
ESP32-C3 Mini
- Description: A small-sized ESP32-based microcontroller with Wi-Fi and Bluetooth capabilities.
- Pins: 5V, GND, 21, 20, 3V3, 0, 1, 2, 3, 4, 5, 19, 18, 10, 9, 8, 7, 6
Wiring Details
3.7v LiPo Battery
- +Ve: Connected to the VIN of the AMS1117 3.3, 3.3V of the Adafruit LSM303DLHC, VDD of the NPA, and 3V3 of the ESP32-C3 Mini.
- GND: Connected to the GND of the AMS1117 3.3, GND of the MAX30102 HR + SpO2 sensor, and GND of the Adafruit LSM303DLHC.
Adafruit LSM303DLHC
- 3.3V: Connected to the 3.7v LiPo battery +Ve.
- GND: Connected to the OUT of the AMS1117 3.3.
- SCL: Connected to the SCL of the MAX30102, pin 8 of the ESP32-C3 Mini, and pin 2 of the Resistor.
- SDA: Connected to the SDA of the MAX30102, pin 9 of the ESP32-C3 Mini, and pin 1 of the Resistor.
- INT1: Connected to the INT of the MAX30102 and pin 5 of the ESP32-C3 Mini.
Resistor
- pin1: Connected to the SDA lines of the Adafruit LSM303DLHC and MAX30102 HR + SpO2 sensor, and pin 9 of the ESP32-C3 Mini.
- pin2: Connected to the SCL lines of the Adafruit LSM303DLHC and MAX30102 HR + SpO2 sensor, and pin 8 of the ESP32-C3 Mini.
AMS1117 3.3 Voltage Regulator
- VIN: Connected to the 3.7v LiPo battery +Ve.
- OUT: Connected to the GND of the Adafruit LSM303DLHC.
- GND: Connected to the GND of the 3.7v LiPo battery.
MAX30102 HR + SpO2 Sensor
- GND: Connected to the GND of the 3.7v LiPo battery.
- SCL: Connected to the SCL of the Adafruit LSM303DLHC, pin 8 of the ESP32-C3 Mini, and pin 2 of the Resistor.
- SDA: Connected to the SDA of the Adafruit LSM303DLHC, pin 9 of the ESP32-C3 Mini, and pin 1 of the Resistor.
- INT: Connected to the INT1 of the Adafruit LSM303DLHC and pin 5 of the ESP32-C3 Mini.
NPA
- VDD: Connected to the 3.7v LiPo battery +Ve.
- VSS: Connected to the GND of the 3.7v LiPo battery.
- 14: Connected to pin 4 of the ESP32-C3 Mini.
ESP32-C3 Mini
- 3V3: Connected to the 3.7v LiPo battery +Ve.
- GND: Connected to the GND of the 3.7v LiPo battery.
- 5: Connected to the INT1 of the Adafruit LSM303DLHC and INT of the MAX30102.
- 8: Connected to the SCL lines of the Adafruit LSM303DLHC and MAX30102 HR + SpO2 sensor, and pin 2 of the Resistor.
- 9: Connected to the SDA lines of the Adafruit LSM303DLHC and MAX30102 HR + SpO2 sensor, and pin 1 of the Resistor.
- 4: Connected to pin 14 of the NPA.
Documented Code
No code was provided for the microcontrollers in the circuit. Therefore, this section is left blank until the relevant code is supplied.