念慈菴

Power supply test

 
Overview

This is a circuit test board that can achieve the following functions:
1. Lithium battery charge and discharge management, 5V output
2. Push button to start, MCU control shutdown (cut off the power supply for yourself)
3. 5V boost
The overall circuit diagram is as follows. It can be seen that it is divided into four parts: lithium battery charge and discharge (first part), one-button startup and MCU shutdown (second part), 5V boost (third part) and lithium battery holder (fourth part):
 
First introduce the first part. The core is the IP5306 module. The interface part is defined as follows:
 
1. Pin1 is USBIN, connected to MCU, set to INPUT_PULLUP, when USB is charging, it will be pulled low; when not charging, it will be set to high. So the MCU can know whether it is currently charging by reading this GPIO. IP5306 does not have a pin to reflect the current charging status, so this design is used to obtain the charging status;
2. Pin2 is 5V output. When there is no external power supply, there is a voltage output of about 4V; when the external power is plugged in or the SW2 button is pressed, there will be a 5V output;
3. Pin4 is connected to the positive input of the battery;
4. Pin6 is a voltage divider output, and the ADC of the MCU can obtain the current battery voltage information
5. This part has a button. A short press can make the IP5306 output 5V. Pressing it again will cut off the output. If the load is <50ma, the output will stop after 45s
. 6. The LED is reversed and needs to be transparent to the front through the PCB.
Next is the second part, which is based on [Reference 1] and is very useful. The interface is defined as follows:
1. Pin1 is the input (OUT1 output in the first part can be connected here)
2. Pin2 is the output after control
3. Pin5 is the output control pin. Initially, the MCU needs to input a high level here through CTRL. When the power needs to be cut off, the CTRL input is low and the output of Pin2 is cut off immediately.
4. This part also has a button. After pressing it, Pin2 can output (it needs to be pressed a little longer to ensure that the MCU's CTRL can output a high level)
The third part is the 5V boost design based on the MT3608 chip. The specific chip DataSheet can be seen in [Reference 2]. This is also a design from someone else in Open Source Plaza (but I forgot which article it was and I couldn't find it after searching). The interface is defined as follows:
 
 
1. Pin1 is the input, for example, input 3.3V
2. Pin2 is the output. Here it is set by a resistor and the output is 5V.
 
Simple power consumption measurement. The test method is to measure the current by connecting a multimeter in series with the battery. When 5V is output to the ESP32S3 board [reference 3], the current is about 90ma; after the MCU cuts off the power supply, the current is about 5ma; after 45s, the current is about 0.04ma after the IP5306 automatically cuts off the power.
Except for the capacitors and resistors, the other main chips mentioned above are purchased from the self-created mall. Interested friends can experiment.
Reference:
1. https://oshwhub.com/armxu/kai-ji-zi-dong-guan-ji-dian-lu
2. https://atta.szlcsc.com/upload/public/pdf/source/20161110/1478743351706.pdf
3. https://mc.dfrobot.com.cn/thread-315546-1-1.html
参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2024-11-15 01:44:26

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号