Hello everyone,
This is not my first PCB design, but I’ve always worked in a hobbyist capacity, so I would really appreciate any suggestions or feedback regarding potential mistakes that could affect the functionality of my circuit.
The final device will be an embedded system for respiratory monitoring. In the previous version, I used an ESP8266 microcontroller, but now I’ve decided to migrate to the ESP32, which integrates Bluetooth connectivity and has a dual-core processor.
Connected to it is an analog pressure sensor (MP3V5004GP), powered by 3V, with an input range from 0.6V to 2.9V. I used a voltage divider with resistors of 180kOhm and 100kOhm to bring the voltage down to 1V for the microcontroller.
There’s also a battery gauge with an I2C interface and 10kOhm pull-up resistors.
For battery management, I based the circuit on the ESP32-WROOM-32 development board, FEATHER model. This setup includes a 3.3V voltage regulator (AP2112K-33TRG1), which receives voltage either from the battery (LiPo 3.7V, 820mAh) or from the USB Type-C port via a protection diode. The selection between the two voltages depends on the presence of the power supply, managed by a P-channel enhancement mode MOSFET (DMP2045U).
Battery charging is handled by the MCP73831T-2ACIOT component.
I believe I’ve designed this part correctly, based on the components' datasheets. However, I have doubts about the maximum current ranges that the components can handle. Also, I’ve added a latched push button between the input line and the voltage regulator, but in my previous version of the design it seemed to cause issues. Specifically, it appeared that a small amount of current could flow in the circuit even when the switch was open. How can I prevent this from happening?
Finally, four LEDs (which will be used as indicators in the final enclosure) and a buzzer are connected to the GPIOs of the microcontroller.
I’ve designed the 4-layer PCB using OrCad. You can find attached photos of the design, the Gerber viewer, and the 3D model.
Thank you in advance to anyone who will be willing to help. I truly believe in the value of this community, without it many beginner designers would be lost.