3002 21700 5V3A Power Bank:修订间差异

来自Mcuzone Wiki
(创建页面,内容为“== '''关键词''' == 树莓派4B、Raspberry Pi、21700动力电池、5V2A、5V3A、5V4A、交互串口、串口命令、边充边放、实时电压检测 == '''一、简介''' == 21700电源模块专为树莓派设计,可通过顶针或者USB口对树莓派进行供电。板上分为两个区域,左侧为典型的充电宝设计,充电和放电同口,也就是接入外部电源即可对电池进行充电,接入用电设备即可对外供电,充…”)
 
无编辑摘要
 
(未显示同一用户的5个中间版本)
第1行: 第1行:
== '''关键词''' ==
[[3002 21700 5V3A树莓派专用电源模块|切换语言为中文]]
树莓派4B、Raspberry Pi、21700动力电池、5V2A、5V3A、5V4A、交互串口、串口命令、边充边放、实时电压检测


== '''一、简介''' ==
== '''Keywords''' ==
21700电源模块专为树莓派设计,可通过顶针或者USB口对树莓派进行供电。板上分为两个区域,左侧为典型的充电宝设计,充电和放电同口,也就是接入外部电源即可对电池进行充电,接入用电设备即可对外供电,充电可达2.8A,放电可达5V2A。右侧区域为电池升压电路,具备一个电源总开关,可通过镀金顶针为树莓派供电,另外还具备两路USB-A口对其它外设供电,同时还可以通过串口查看电池信息。电池电路支持边冲边放,具备充电的过充保护,过热保护和放电的过热保护、过流保护、欠压保护、短路保护。实测顶针版接树莓派4B播放1080P视频的续航测试可达10小时。
Raspberry 4B, Raspberry Pi, 21700 Power Battery, 5V2A, 5V3A, 5V4A, Interactive Serial Port, Serial Port Commands, Charge and Discharge Simultaneously, Real-time Voltage Monitoring


== '''二、硬件资源''' ==
== '''I. Introduction''' ==
The 21700 power module is specifically designed for the Raspberry Pi and can supply power to it via pogo pins or a USB port. The board is divided into two areas. On the left side, there is a typical power bank design where charging and discharging share the same port. This means that connecting an external power source will charge the battery, while connecting a device will allow it to be powered externally. The charging capacity can reach up to 2.8A, and the discharging capacity can provide up to 5V2A. The right side of the board features a battery boost circuit with a main power switch. It can supply power to the Raspberry Pi through gold-plated pogo. Additionally, it has two USB-A ports for powering other peripherals. Furthermore, battery information can be viewed via a serial interface. The battery circuit supports simultaneous charging and discharging, and it comes equipped with overcharge protection, overheat protection during charging, as well as overheat protection, overcurrent protection, undervoltage protection, and short-circuit protection during discharging. Practical tests have shown that when connected to a Raspberry Pi 4B playing 1080P video, the battery life can last up to 10 hours using the probe version.


=== 1. 硬件特征 ===
== '''II. Hardware Resources''' ==
*适用于Raspberry Pi系列主板,5V2A和5V4A两路相互独立的双输出接口;


*5V2A端,提供三种类型的接插件(USB-C,USB-A,micro USB),并支持同进同出,即输入5V进入充电模式,接入用电设备变成放电模式;
=== 1. Hardware Features ===
*Suitable for Raspberry Pi series motherboards, featuring two independently dual output interfaces: one at 5V2A and the other at 5V4A.


*5V2A USB-A口支持给iphone充电,支持给安卓充电;
*The 5V2A port offers three types of connectors (USB-C, USB-A, micro USB) and supports simultaneous input and output. This means that when 5V is input, it enters charging mode, and when a device is connected, it switches to discharging mode.


*5V4A稳定输出,UPS不间断电源,且有双USB大电流接口,共享4A电流,也可以用顶针供电;
*The 5V2A USB-A port supports charging both iPhone and Android devices.


*一路输出开关和一路输出控制按键,可用于控制两路USB-A口;
*The 5V4A output provides stable power, functioning as a UPS. It features dual USB high-current ports that share a 4A current and can also supply power via pogo pins.


*板载4盏电量指示灯;
*One output switch and one output control button are provided to manage the two USB-A ports.


*一个电量指示按键,用于查看电量指示;
*The board features four LED lights for indicating the battery level.


*一个电源指示灯;
*A battery level indicator button is provided to check the battery status.


*顶针版用串口顶针;USB版本,板载串口插针,均用于串口交互;
*A power status indicator light.


*2节21700电池并联,容量10000mAh(MAX),也可只用一节电池;
*The probe version features serial communication pogo pins, while the USB version includes onboard serial communication pins. Both are used for serial communication.


*尺寸:85*56mm;高度38.6mm:从底部亚克力到板上铜柱;
*Two 21700 batteries can be connected in parallel, providing a maximum capacity of 10000mAh. The module can also operate using just one battery.


*PCB板沉金工艺,无铅生产;PCB板通过UL和ROHS认证,防火等级94V-0。
*Size: 85*56mm; Height: 38.6mm, measured from the bottom acrylic plate to the copper pillars on the board.
 
*The PCB board uses a gold plating process and is produced without lead. The PCB board has passed UL and ROHS certification, with a fire resistance rating of 94V-0.


http://www.mcuzone.com/wiki/3002_21700_Power_Supply/3002_21700_Power_Supply_31.jpg
http://www.mcuzone.com/wiki/3002_21700_Power_Supply/3002_21700_Power_Supply_31.jpg


=== 2. 产品特点 ===
=== 2. Product Features ===
*MCU用于电源管理,并支持串口输出,用于提示电池电压和输出电压;
*The MCU is used for power management and supports serial output, which is used to indicate the battery voltage and output voltage.


*两路MOSFET用于输出控制,支持低电压关闭输出,支持手动或串口命令关闭/打开输出;
*Two MOSFETs are used for output control, supporting low-voltage shutdown. They also support manual or serial command control for turning the output on or off.


*充电头(输入)检测功能。
*Charge head (input) detection function.


=== 3. 串口输出特征 ===
=== 3. Serial port output characteristics ===
*自动上报电池电压和输出端电压,上位机系统可据此估算系统续航时间并提前做好数据保护。上报间隔可通过命令设置,默认间隔为2秒;
*The system automatically reports the battery voltage and output voltage, enabling the host system to estimate the system's runtime and prepare for data protection in advance. The reporting interval can be set via a command, with a default interval of 2 seconds.


*自动点亮电量指示LED,方便观察,可通过命令设置点亮间隔,默认为1分钟;
*Automatically illuminate the battery level indicator LEDs for easy observation. The illumination interval can be set via a command, with a default of 1 minute.


*可设置电池低电压保护阈值,默认为3V关闭输出;
*The low-voltage protection threshold for the battery can be set, with a default setting of 3V to shut off the output.


*可查询系统上电总时长;
*The system can query the total uptime since power-on.


*可通过命令关闭/打开两路输出;
*The system can turn off or turn on the two output channels via commands.


*可设置按键用于控制其中一路输出或者两路输出。
*The system allows setting a button to control either one or both output channels.


:注意:不支持电流采样。
:Note: Current sampling is not supported.
串口线用于数据传输,连接如下图所示:
The serial cable is used for data transmission and should be connected as shown in the following diagram:


http://www.mcuzone.com/wiki/3002_21700_Power_Supply/3002_21700_Power_Supply_32.jpg
http://www.mcuzone.com/wiki/3002_21700_Power_Supply/3002_21700_Power_Supply_32.jpg


=== 4. 电池说明 ===
=== 4. Battery Description ===
本产品使用两节21700动力锂电池并联提供电源,可提供长时间续航,可靠放电能力达10A以上,确保5V2A加5V4A足功率双输出。采用开关模式充电,所以即便充电电流达到2.8A,芯片和电池也不会出现过热保护情况。建议采用5V2.5A以上的适配器充电;如果适配器达不到2.5A的输出能力,可能会导致充电时充电头保护(充不进)甚至损坏。
This product uses two 21700 lithium-ion power batteries in parallel to provide power, offering long-lasting operation with a reliable discharge capability of over 10A, ensuring sufficient power for dual outputs of 5V2A and 5V4A. Switch-mode charging is used, so even if the charging current reaches 2.8A, neither the chip nor the battery will trigger overheat protection. It is recommended to use an adapter with an output capability of 5V2.5A or higher for charging. If the adapter cannot meet the 2.5A output requirement, it may result in the charger's protection mechanism kicking in (preventing charging) or even cause damage.


电池极性和安装说明:
Battery polarity and installation instructions:


http://www.mcuzone.com/wiki/3002_21700_Power_Supply/3002_21700_Power_Supply_33.jpg
http://www.mcuzone.com/wiki/3002_21700_Power_Supply/3002_21700_Power_Supply_33.jpg


21700电池能量巨大,请千万看清楚方向再放入电池座。一旦插反很可能会冒烟起火甚至爆炸,为了大家安全着想,请仔细核对,非必要请勿插拔!
The 21700 battery has a large energy capacity. Please make sure to carefully check the orientation before inserting it into the battery holder. If inserted incorrectly, there is a risk of smoking, fire, or even explosion. For everyone's safety, please verify carefully before inserting. Do not plug or unplug unless necessary!


对于因电池接反导致的任何风险我们概不承担,请小心使用;且因电池接反导致的器件损坏不在保修范围内。
We will not be liable for any risks resulting from incorrect battery connection. Please use with caution. Additionally, damage to components caused by incorrect battery connection is not covered under warranty.


因用户自备的电源适配器充电,导致电池炸了或器件损坏,概不保修,请用优质正品电源,或从我司采购。
Damage caused to the battery or device due to charging with a user-supplied power adapter is not covered under warranty. Please use high-quality, genuine power supplies, or purchase one from our company.


=== 5. 电量指示与输出控制 ===
=== 5. Power indication and output control ===
可通过电量检测按键查看剩余电量:
The remaining battery level can be checked by pressing the battery level detection button:


http://www.mcuzone.com/wiki/3002_21700_Power_Supply/3002_21700_Power_Supply_34.jpg
http://www.mcuzone.com/wiki/3002_21700_Power_Supply/3002_21700_Power_Supply_34.jpg


可通过输出控制按键控制USB1或者USB2输出:
The output control button can be used to control the output of USB1 or USB2:http://www.mcuzone.com/wiki/3002_21700_Power_Supply/3002_21700_Power_Supply_35.jpg


http://www.mcuzone.com/wiki/3002_21700_Power_Supply/3002_21700_Power_Supply_35.jpg
=== 6. Dual output application ===
One of the key features of this product is its support for dual output:


=== 6. 双输出的应用 ===
One output is 5V2A, which is always on; it can connect to three external devices simultaneously and also supports simultaneous charging and discharging, meaning one input and two outputs. Whether connecting two or three outputs simultaneously, they all share 5V2A.
本产品的一个大特点是支持双输出:


一路为5V2A,常开输出;可以同时接3个外部设备,也可以边冲边放,即一进两出;不管同时接2路还是3路,均共享5V2A。
One output is a high-power 5V4A output, featuring a pogo pin interface and two USB-A ports. Therefore, if using the probe version, this output port can simultaneously connect to 3 devices, sharing 5V4A.


一路为5V4A大功率输出,具备顶针接口和2个USB-A接口;因此,若使用顶针版,此路输出口可同时接3个设备,共享5V4A。
This product can connect up to six devices simultaneously; if charging and discharging at the same time, it can connect up to five devices simultaneously. It supports the simultaneous operation of a Raspberry Pi, 4G module, servos, radar modules, and more using the same power module, solving power supply issues.
 
此应用最多可以同时接6个设备;若边冲边放,可同时接5个设备,可支持树莓派、4G模块、舵机、雷达模组等用同一个电源模块同时工作,解决供电问题。


http://www.mcuzone.com/wiki/3002_21700_Power_Supply/3002_21700_Power_Supply_36.jpg
http://www.mcuzone.com/wiki/3002_21700_Power_Supply/3002_21700_Power_Supply_36.jpg


== '''三、串口交互(树莓派OS)''' ==
== '''III. Interactive serial port(Raspberry Pi OS)''' ==
此操作基于树莓派OS版本为:2024-10-22-raspios-bookworm-armhf.img.xz
The version of the Raspberry Pi OS is: 2024-10-22-raspios-bookworm-armhf.img.xz


树莓派OS下载地址:
You can download the Raspberry Pi OS in:


https://www.raspberrypi.com/software/operating-systems/#raspberry-pi-os-64-bit
https://www.raspberrypi.com/software/operating-systems/#raspberry-pi-os-64-bit


=== 3.1 配置树莓派OS ===
=== 3.1 Configure Raspberry Pi OS ===
左上角树莓派标志—Preferences—Raspberry Pi Configuration—Interfaces
The Raspberry Pi logo in the upper left corner — Preferences — Raspberry Pi Configuration — Interfaces


将Serial Port打开,Serial Console关闭,如图所示:
Enable "Serial Port", disable "Serial Console", as shown in the figure:


http://www.mcuzone.com/wiki/3002_21700_Power_Supply/3002_21700_Power_Supply_19.jpg
http://www.mcuzone.com/wiki/3002_21700_Power_Supply/3002_21700_Power_Supply_19.jpg


这样就完成了串口配置。
This completes the serial port configuration.


=== 3.2 查看电源实时参数 ===
=== 3.2 View real-time power parameters ===
使用串口命令进行交互,串口软件可以使用minicom或者CuteCom,安装命令如下:
Use serial commands for interaction, serial communication software such as minicom or CuteCom can be used. The installation commands are as follows:


<code>sudo apt install minicom</code>
<code>sudo apt install minicom</code>
第115行: 第115行:
<code>sudo apt install cutecom</code>
<code>sudo apt install cutecom</code>


在树莓派OS下,交互串口为ttyS0(注意,S为大写)。
Under the Raspberry Pi OS, the interactive serial port is ttyS0 (note that S is uppercase).


==== 3.2.1 使用minicom软件 ====
==== 3.2.1 Use minicom ====
打开树莓派终端,运行minicom:
Open the Raspberry Pi terminal and run minicom:


<code>sudo minicom -D /dev/ttyS0</code>
<code>sudo minicom -D /dev/ttyS0</code>


即可看到交互信息:
You will then see the interactive information:


http://www.mcuzone.com/wiki/3002_21700_Power_Supply/3002_21700_Power_Supply_15.jpg
http://www.mcuzone.com/wiki/3002_21700_Power_Supply/3002_21700_Power_Supply_15.jpg


DCINPUT:直流输入电压
DCINPUT: DC input voltage


OUTPUT1:输出电压1
OUTPUT1: Output  voltage 1


OUTPUT2:输出电压2
OUTPUT2: Output  voltage 2


BATTERY:电池电压
BATTERY: Battery voltage


==== 3.2.2 使用CuteCom软件 ====
==== 3.2.2 Use CuteCom ====
运行CuteCom软件,打开ttyS0串口,在输出窗口中查看交互信息:
Run the CuteCom, open the ttyS0 serial port, and view the interaction information in the output window:


http://www.mcuzone.com/wiki/3002_21700_Power_Supply/3002_21700_Power_Supply_16.jpg
http://www.mcuzone.com/wiki/3002_21700_Power_Supply/3002_21700_Power_Supply_16.jpg


=== 3.3 运行电源系统控制命令 ===
=== 3.3 Run the power system control commands ===
运行CuteCom软件,打开ttyS0串口,在输入(Input)窗口中输入命令,在输出窗口中查看相应的返回信息。
Run the CuteCom, open the ttyS0 serial port, enter commands in the Input window, and view the corresponding return information in the Output window.


<code>ATE</code>表示查询系统总运行时长:
For example, <code>ATE</code> indicates that query the total system uptime:


http://www.mcuzone.com/wiki/3002_21700_Power_Supply/3002_21700_Power_Supply_17.jpg
http://www.mcuzone.com/wiki/3002_21700_Power_Supply/3002_21700_Power_Supply_17.jpg


<code>AV3.1E</code>表示电池电压低于3.1V时关闭电源输出:
<code>AV3.1E</code> indicates that the power output will be shut down when the battery voltage drops below 3.1V:


http://www.mcuzone.com/wiki/3002_21700_Power_Supply/3002_21700_Power_Supply_18.jpg
http://www.mcuzone.com/wiki/3002_21700_Power_Supply/3002_21700_Power_Supply_18.jpg


常用控制命令列表:
List of common control commands:
 
http://www.mcuzone.com/wiki/3002_21700_Power_Supply/3002_21700_Power_Supply_37.jpg


<!--
== '''IV. Interactive serial port(Ubuntu system)''' ==
{| class="wikitable"
The version of the Ubuntu system is: ubuntu-24.10-preinstalled-desktop-arm64+raspi.img.xz
| colspan="3" |串口参数:3.3V TTL电平;波特率:115200;数据位:8;校验位:无;停止位:1
|-
|命令
|命令功能
|说明
|-
|AL<设置值>E
|设置电量指示灯显示间隔
|单位:min,初始值为1,支持小数点后1位,如AL5.2E,表示5.2*60=312秒(不建议设置过短,电量指示灯会持续点亮4s,过短的间隔会导致常亮)
|-
|AV<设置值>E
|设置电源输出关闭阈值
|单位:V,初始值为3.0V,确保稳定,支持小数点后1位,建议设置范围2.8-3.5V,如AV3.0E表示电池电压低于3.0V时关闭电源输出
|-
|ATE
|查询系统总运行时长
|内容格式:*天:*时:*分:*秒
|-
|AU<设置值>E
|设置串口电压数据接收间隔
|单位:s,初始值为2,不支持小数。如AU3E,表示串口每隔3秒发送一次电压数据
|-
|AB1E
|设置按键开关控制USB1电源输出
|
|-
|AB2E
|设置按键开关控制USB2电源输出
|
|-
|AO1FE
|串口控制关闭USB1电源输出
|
|-
|AO2FE
|串口控制关闭USB2电源输出
|
|-
|AO1OE
|串口控制打开USB1电源输出
|
|-
|AO2OE
|串口控制打开USB2电源输出
|
|-
| colspan="3" |补充:命令生效返回“SET OK”信息,命令错误返回“Error Command”信息
|}
-->
http://www.mcuzone.com/wiki/3002_21700_Power_Supply/3002_21700_Power_Supply_26.jpg
== '''四、串口交互(Ubuntu系统)''' ==
此操作基于Ubuntu系统版本为:ubuntu-24.10-preinstalled-desktop-arm64+raspi.img.xz


Ubuntu系统下载地址:
You can download the Ubuntu system in:


https://ubuntu.com/download/raspberry-pi
https://ubuntu.com/download/raspberry-pi


=== 4.1 设置配置 ===
=== 4.1 Set configuration ===
修改Ubuntu系统的配置:
Modify the configuration of the Ubuntu system:


<code>sudo nano /boot/firmware/cmdline.txt</code>
<code>sudo nano /boot/firmware/cmdline.txt</code>
第218行: 第168行:
http://www.mcuzone.com/wiki/3002_21700_Power_Supply/3002_21700_Power_Supply_20.jpg
http://www.mcuzone.com/wiki/3002_21700_Power_Supply/3002_21700_Power_Supply_20.jpg


删除红框中的文字,然后保存退出:
Delete the text in the red box, then save and exit:


<code>console=tty1</code>
<code>console=tty1</code>
第228行: 第178行:
http://www.mcuzone.com/wiki/3002_21700_Power_Supply/3002_21700_Power_Supply_22.jpg
http://www.mcuzone.com/wiki/3002_21700_Power_Supply/3002_21700_Power_Supply_22.jpg


添加红框中的文字,然后保存退出:
Add the text in the red box, then save and exit:


<code>enable_uart=1</code>
<code>enable_uart=1</code>
第234行: 第184行:
http://www.mcuzone.com/wiki/3002_21700_Power_Supply/3002_21700_Power_Supply_23.jpg
http://www.mcuzone.com/wiki/3002_21700_Power_Supply/3002_21700_Power_Supply_23.jpg


修改完毕后重启系统。
After making the changes, restart the system.


=== 4.2 查看电源实时参数 ===
=== 4.2 View real-time power parameters ===
串口软件可以使用minicom或者CuteCom,安装命令如下:
Serial communication software such as minicom or CuteCom can be used. The installation commands are as follows:


<code>sudo apt install minicom</code>
<code>sudo apt install minicom</code>
第243行: 第193行:
<code>sudo apt install cutecom</code>
<code>sudo apt install cutecom</code>


在Ubuntu系统下,交互串口为ttyS0(注意,S为大写)。
Under the Ubuntu system, the interactive serial port is ttyS0 (note that S is uppercase).


==== 4.2.1 使用minicom软件 ====
==== 4.2.1 Use minicom ====
打开Ubuntu系统终端,运行minicom:
Open the Ubuntu terminal and run minicom:


<code>sudo minicom -D /dev/ttyS0</code>
<code>sudo minicom -D /dev/ttyS0</code>


即可看到交互信息:
You will then see the interactive information:


http://www.mcuzone.com/wiki/3002_21700_Power_Supply/3002_21700_Power_Supply_27.jpg
http://www.mcuzone.com/wiki/3002_21700_Power_Supply/3002_21700_Power_Supply_27.jpg


==== 4.2.2 使用CuteCom软件 ====
==== 4.2.2 Use CuteCom ====
运行CuteCom软件,打开ttyS0串口,在输出窗口中查看交互信息:
Open the Ubuntu terminal and run CuteCom, open the ttyS0 serial port, and view the interaction information in the output window:


<code>sudo cutecom</code>
<code>sudo cutecom</code>
第261行: 第211行:
http://www.mcuzone.com/wiki/3002_21700_Power_Supply/3002_21700_Power_Supply_25.jpg
http://www.mcuzone.com/wiki/3002_21700_Power_Supply/3002_21700_Power_Supply_25.jpg


== '''五、产品图片''' ==
== '''V. Product images''' ==
http://www.mcuzone.com/wiki/3002_21700_Power_Supply/3002_21700_Power_Supply_28.jpg
http://www.mcuzone.com/wiki/3002_21700_Power_Supply/3002_21700_Power_Supply_28.jpg


第268行: 第218行:
http://www.mcuzone.com/wiki/3002_21700_Power_Supply/3002_21700_Power_Supply_30.jpg<nowiki/>
http://www.mcuzone.com/wiki/3002_21700_Power_Supply/3002_21700_Power_Supply_30.jpg<nowiki/>


{{联系我们_图标}}
{{Contact_Us_icon}}

2024年11月22日 (五) 15:45的最新版本

切换语言为中文

Keywords

Raspberry 4B, Raspberry Pi, 21700 Power Battery, 5V2A, 5V3A, 5V4A, Interactive Serial Port, Serial Port Commands, Charge and Discharge Simultaneously, Real-time Voltage Monitoring

I. Introduction

The 21700 power module is specifically designed for the Raspberry Pi and can supply power to it via pogo pins or a USB port. The board is divided into two areas. On the left side, there is a typical power bank design where charging and discharging share the same port. This means that connecting an external power source will charge the battery, while connecting a device will allow it to be powered externally. The charging capacity can reach up to 2.8A, and the discharging capacity can provide up to 5V2A. The right side of the board features a battery boost circuit with a main power switch. It can supply power to the Raspberry Pi through gold-plated pogo. Additionally, it has two USB-A ports for powering other peripherals. Furthermore, battery information can be viewed via a serial interface. The battery circuit supports simultaneous charging and discharging, and it comes equipped with overcharge protection, overheat protection during charging, as well as overheat protection, overcurrent protection, undervoltage protection, and short-circuit protection during discharging. Practical tests have shown that when connected to a Raspberry Pi 4B playing 1080P video, the battery life can last up to 10 hours using the probe version.

II. Hardware Resources

1. Hardware Features

  • Suitable for Raspberry Pi series motherboards, featuring two independently dual output interfaces: one at 5V2A and the other at 5V4A.
  • The 5V2A port offers three types of connectors (USB-C, USB-A, micro USB) and supports simultaneous input and output. This means that when 5V is input, it enters charging mode, and when a device is connected, it switches to discharging mode.
  • The 5V2A USB-A port supports charging both iPhone and Android devices.
  • The 5V4A output provides stable power, functioning as a UPS. It features dual USB high-current ports that share a 4A current and can also supply power via pogo pins.
  • One output switch and one output control button are provided to manage the two USB-A ports.
  • The board features four LED lights for indicating the battery level.
  • A battery level indicator button is provided to check the battery status.
  • A power status indicator light.
  • The probe version features serial communication pogo pins, while the USB version includes onboard serial communication pins. Both are used for serial communication.
  • Two 21700 batteries can be connected in parallel, providing a maximum capacity of 10000mAh. The module can also operate using just one battery.
  • Size: 85*56mm; Height: 38.6mm, measured from the bottom acrylic plate to the copper pillars on the board.
  • The PCB board uses a gold plating process and is produced without lead. The PCB board has passed UL and ROHS certification, with a fire resistance rating of 94V-0.

3002_21700_Power_Supply_31.jpg

2. Product Features

  • The MCU is used for power management and supports serial output, which is used to indicate the battery voltage and output voltage.
  • Two MOSFETs are used for output control, supporting low-voltage shutdown. They also support manual or serial command control for turning the output on or off.
  • Charge head (input) detection function.

3. Serial port output characteristics

  • The system automatically reports the battery voltage and output voltage, enabling the host system to estimate the system's runtime and prepare for data protection in advance. The reporting interval can be set via a command, with a default interval of 2 seconds.
  • Automatically illuminate the battery level indicator LEDs for easy observation. The illumination interval can be set via a command, with a default of 1 minute.
  • The low-voltage protection threshold for the battery can be set, with a default setting of 3V to shut off the output.
  • The system can query the total uptime since power-on.
  • The system can turn off or turn on the two output channels via commands.
  • The system allows setting a button to control either one or both output channels.
Note: Current sampling is not supported.

The serial cable is used for data transmission and should be connected as shown in the following diagram:

3002_21700_Power_Supply_32.jpg

4. Battery Description

This product uses two 21700 lithium-ion power batteries in parallel to provide power, offering long-lasting operation with a reliable discharge capability of over 10A, ensuring sufficient power for dual outputs of 5V2A and 5V4A. Switch-mode charging is used, so even if the charging current reaches 2.8A, neither the chip nor the battery will trigger overheat protection. It is recommended to use an adapter with an output capability of 5V2.5A or higher for charging. If the adapter cannot meet the 2.5A output requirement, it may result in the charger's protection mechanism kicking in (preventing charging) or even cause damage.

Battery polarity and installation instructions:

3002_21700_Power_Supply_33.jpg

The 21700 battery has a large energy capacity. Please make sure to carefully check the orientation before inserting it into the battery holder. If inserted incorrectly, there is a risk of smoking, fire, or even explosion. For everyone's safety, please verify carefully before inserting. Do not plug or unplug unless necessary!

We will not be liable for any risks resulting from incorrect battery connection. Please use with caution. Additionally, damage to components caused by incorrect battery connection is not covered under warranty.

Damage caused to the battery or device due to charging with a user-supplied power adapter is not covered under warranty. Please use high-quality, genuine power supplies, or purchase one from our company.

5. Power indication and output control

The remaining battery level can be checked by pressing the battery level detection button:

3002_21700_Power_Supply_34.jpg

The output control button can be used to control the output of USB1 or USB2:3002_21700_Power_Supply_35.jpg

6. Dual output application

One of the key features of this product is its support for dual output:

One output is 5V2A, which is always on; it can connect to three external devices simultaneously and also supports simultaneous charging and discharging, meaning one input and two outputs. Whether connecting two or three outputs simultaneously, they all share 5V2A.

One output is a high-power 5V4A output, featuring a pogo pin interface and two USB-A ports. Therefore, if using the probe version, this output port can simultaneously connect to 3 devices, sharing 5V4A.

This product can connect up to six devices simultaneously; if charging and discharging at the same time, it can connect up to five devices simultaneously. It supports the simultaneous operation of a Raspberry Pi, 4G module, servos, radar modules, and more using the same power module, solving power supply issues.

3002_21700_Power_Supply_36.jpg

III. Interactive serial port(Raspberry Pi OS)

The version of the Raspberry Pi OS is: 2024-10-22-raspios-bookworm-armhf.img.xz

You can download the Raspberry Pi OS in:

https://www.raspberrypi.com/software/operating-systems/#raspberry-pi-os-64-bit

3.1 Configure Raspberry Pi OS

The Raspberry Pi logo in the upper left corner — Preferences — Raspberry Pi Configuration — Interfaces

Enable "Serial Port", disable "Serial Console", as shown in the figure:

3002_21700_Power_Supply_19.jpg

This completes the serial port configuration.

3.2 View real-time power parameters

Use serial commands for interaction, serial communication software such as minicom or CuteCom can be used. The installation commands are as follows:

sudo apt install minicom

sudo apt install cutecom

Under the Raspberry Pi OS, the interactive serial port is ttyS0 (note that S is uppercase).

3.2.1 Use minicom

Open the Raspberry Pi terminal and run minicom:

sudo minicom -D /dev/ttyS0

You will then see the interactive information:

3002_21700_Power_Supply_15.jpg

DCINPUT: DC input voltage

OUTPUT1: Output voltage 1

OUTPUT2: Output voltage 2

BATTERY: Battery voltage

3.2.2 Use CuteCom

Run the CuteCom, open the ttyS0 serial port, and view the interaction information in the output window:

3002_21700_Power_Supply_16.jpg

3.3 Run the power system control commands

Run the CuteCom, open the ttyS0 serial port, enter commands in the Input window, and view the corresponding return information in the Output window.

For example, ATE indicates that query the total system uptime:

3002_21700_Power_Supply_17.jpg

AV3.1E indicates that the power output will be shut down when the battery voltage drops below 3.1V:

3002_21700_Power_Supply_18.jpg

List of common control commands:

3002_21700_Power_Supply_37.jpg

IV. Interactive serial port(Ubuntu system)

The version of the Ubuntu system is: ubuntu-24.10-preinstalled-desktop-arm64+raspi.img.xz

You can download the Ubuntu system in:

https://ubuntu.com/download/raspberry-pi

4.1 Set configuration

Modify the configuration of the Ubuntu system:

sudo nano /boot/firmware/cmdline.txt

3002_21700_Power_Supply_20.jpg

Delete the text in the red box, then save and exit:

console=tty1

3002_21700_Power_Supply_21.jpg

sudo nano /boot/firmware/config.txt

3002_21700_Power_Supply_22.jpg

Add the text in the red box, then save and exit:

enable_uart=1

3002_21700_Power_Supply_23.jpg

After making the changes, restart the system.

4.2 View real-time power parameters

Serial communication software such as minicom or CuteCom can be used. The installation commands are as follows:

sudo apt install minicom

sudo apt install cutecom

Under the Ubuntu system, the interactive serial port is ttyS0 (note that S is uppercase).

4.2.1 Use minicom

Open the Ubuntu terminal and run minicom:

sudo minicom -D /dev/ttyS0

You will then see the interactive information:

3002_21700_Power_Supply_27.jpg

4.2.2 Use CuteCom

Open the Ubuntu terminal and run CuteCom, open the ttyS0 serial port, and view the interaction information in the output window:

sudo cutecom

3002_21700_Power_Supply_25.jpg

V. Product images

3002_21700_Power_Supply_28.jpg

3002_21700_Power_Supply_29.jpg

3002_21700_Power_Supply_30.jpg

Contact Us

0001_x.jpg 0002_fb.jpg 0004_ytb.jpg 0003_bb.jpg 0005_qq.jpg QQ:8204136

Email: mcuzone@vip.qq.com

Tel: +86(0)13957118045

If there are any omissions, errors, or infringements on this page, please contact us through the above methods. Thank you!

Copyright 2004-2024 Wildchip