New schematic diagram for charging and discharging section: (TP4056 is a high-performance single-cell lithium-ion battery constant current/constant voltage linear charger. The TP4056 uses an ESOP8 package and requires fewer external components, making it ideal for portable products and suitable for powering USB and adapter power supplies. A charging current of 0.2C is recommended for lithium batteries.) ![image.png]
The lithium battery voltage is approximately 3.7-4.2V, requiring a boost circuit to power the microcontroller. The MT3608 is selected, with an input of 2.2V - 16V and an output voltage up to 20V. When a 5V output is required, the schematic formula is Vout = 0.6 * (1 + R24/R25) = 4.9999999V (A shortcoming in this ported charging and discharging module: when powering the core board alone, it cannot charge the battery. The schematic should connect VBUS to the 5V-USB.)
5V Input Selection (Battery Power Not Used When Connected to TYPE-C) ① When USB is inserted, the diode is turned on, the gate of AO3401 is at a high level, the MOSFET is turned off, and BAT does not output. It is powered by USB and charges the battery at the same time. ② When USB is not inserted, the gate of the MOSFET is pulled low by the 10k pull-down resistor, and AO3401 is turned on. At this time, the 5V input selection is powered by battery BAT.
All reference designs on this site are sourced from major semiconductor manufacturers or collected online for learning and research. The copyright belongs to the semiconductor manufacturer or the original author. If you believe that the reference design of this site infringes upon your relevant rights and interests, please send us a rights notice. As a neutral platform service provider, we will take measures to delete the relevant content in accordance with relevant laws after receiving the relevant notice from the rights holder. Please send relevant notifications to email: bbs_service@eeworld.com.cn.
It is your responsibility to test the circuit yourself and determine its suitability for you. EEWorld will not be liable for direct, indirect, special, incidental, consequential or punitive damages arising from any cause or anything connected to any reference design used.
Supported by EEWorld Datasheet