a0aLSBK

TP5400 Lithium Battery Charging/Discharging + MCU One-Button Power On/Off Module

 
Overview
Function Introduction:


The TP5400 lithium battery charging and discharging module can charge 18650 batteries to a full charge at 4.2V.


Battery power is cut off when USB is plugged in; switching to USB power allows charging to continue.


Battery over-discharge protection cuts off power when the battery voltage is too low, triggering the TP5400 low-voltage protection.


MCU one-button power on/off function. Jumper mode switching: Normally open mode: Pressing the power button starts the circuit; flashing the MCU will not restart it, only the Reset button can shut it down. Power on/off mode: After startup, a high-level output from the MCU control pin can shut down the circuit.


Physical Reset button can force the circuit to shut down, preventing MCU crashes.












MCU sample code (ESP32 S3):

#define OFFP_IN 47
#define BUILDINLED_PIN 48
#define ACTION_PIN 13

void setup() {
pinMode(ACTION_PIN, INPUT);
pinMode(OFFP_IN, OUTPUT);
pinMode(BUILDINLED_PIN, OUTPUT);
digitalWrite(OFFP_IN, HIGH);
digitalWrite(BUILDINLED_PIN, HIGH);
}

void loop() {

static unsigned long timer = millis();

if (digitalRead(ACTION_PIN) == LOW) {
if (millis() - timer >= 4000)
{
digitalWrite(OFFP_IN, LOW);
digitalWrite(BUILDINLED_PIN, HIGH);
} else {
digitalWrite(BUILDINLED_PIN, LOW);
}
} else {
timer = millis();
digitalWrite(BUILDINLED_PIN, HIGH);
}
}
参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2026-03-26 03:06:18

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
community

Robot
development
community

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号