Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use TP4056 Type-C: Examples, Pinouts, and Specs

Image of TP4056 Type-C
Cirkit Designer LogoDesign with TP4056 Type-C in Cirkit Designer

Introduction

The TP4056 Type-C is a lithium battery charger IC designed for charging single-cell lithium-ion batteries. It provides a constant current/constant voltage (CC/CV) charging profile, ensuring safe and efficient charging. The inclusion of a Type-C interface allows for modern and convenient connectivity. With built-in thermal regulation, over-voltage protection, and automatic charge termination, the TP4056 Type-C is ideal for portable electronics, power banks, and DIY battery-powered projects.

Explore Projects Built with TP4056 Type-C

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
ESP32-Based Battery-Powered Multi-Sensor System
Image of Dive sense: A project utilizing TP4056 Type-C in a practical application
This circuit consists of a TP4056 module connected to a 3.7V LiPo battery, providing a charging interface for the battery. The TP4056 manages the charging process by connecting its B+ and B- pins to the battery's positive and ground terminals, respectively.
Cirkit Designer LogoOpen Project in Cirkit Designer
Raspberry Pi 3B Powered 15.6-inch Touchscreen Display with USB Type-C Power Delivery
Image of Pi Touch Screen Kiosk: A project utilizing TP4056 Type-C in a practical application
This circuit powers a 15.6-inch capacitive touch display and a Raspberry Pi 3B using a USB Type C power delivery breakout and two buck converters. The Raspberry Pi connects to the display via HDMI and USB for touch functionality, while the power delivery breakout provides regulated power to both the display and the Raspberry Pi through the buck converters.
Cirkit Designer LogoOpen Project in Cirkit Designer
USB Type-C Powered LED Circuit with Resistor
Image of Scheme1: A project utilizing TP4056 Type-C in a practical application
This circuit consists of a USB Type-C port providing power to a red LED through a 1000 Ohm resistor. The resistor limits the current flowing through the LED, which lights up when the circuit is powered.
Cirkit Designer LogoOpen Project in Cirkit Designer
Battery-Powered Raspberry Pi 3B+ with TP4056 and DC/DC Booster
Image of raspberry power supply: A project utilizing TP4056 Type-C in a practical application
This circuit is a portable power supply system that charges a 18650 Li-ion battery using a TP4056 charging module and boosts the voltage to power a Raspberry Pi 3b+ via a DC/DC booster. The TP4056 module manages the charging of the battery, while the DC/DC booster converts the battery voltage to a stable 5V output for the Raspberry Pi.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with TP4056 Type-C

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of Dive sense: A project utilizing TP4056 Type-C in a practical application
ESP32-Based Battery-Powered Multi-Sensor System
This circuit consists of a TP4056 module connected to a 3.7V LiPo battery, providing a charging interface for the battery. The TP4056 manages the charging process by connecting its B+ and B- pins to the battery's positive and ground terminals, respectively.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Pi Touch Screen Kiosk: A project utilizing TP4056 Type-C in a practical application
Raspberry Pi 3B Powered 15.6-inch Touchscreen Display with USB Type-C Power Delivery
This circuit powers a 15.6-inch capacitive touch display and a Raspberry Pi 3B using a USB Type C power delivery breakout and two buck converters. The Raspberry Pi connects to the display via HDMI and USB for touch functionality, while the power delivery breakout provides regulated power to both the display and the Raspberry Pi through the buck converters.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Scheme1: A project utilizing TP4056 Type-C in a practical application
USB Type-C Powered LED Circuit with Resistor
This circuit consists of a USB Type-C port providing power to a red LED through a 1000 Ohm resistor. The resistor limits the current flowing through the LED, which lights up when the circuit is powered.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of raspberry power supply: A project utilizing TP4056 Type-C in a practical application
Battery-Powered Raspberry Pi 3B+ with TP4056 and DC/DC Booster
This circuit is a portable power supply system that charges a 18650 Li-ion battery using a TP4056 charging module and boosts the voltage to power a Raspberry Pi 3b+ via a DC/DC booster. The TP4056 module manages the charging of the battery, while the DC/DC booster converts the battery voltage to a stable 5V output for the Raspberry Pi.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications

  • Charging single-cell lithium-ion or lithium-polymer batteries
  • Power banks and portable chargers
  • DIY electronics and IoT devices
  • Battery-powered gadgets and wearables

Technical Specifications

Key Technical Details

Parameter Value
Input Voltage Range 4.5V to 6V
Charging Voltage 4.2V ± 1%
Maximum Charging Current 1A (adjustable via external resistor)
Charging Method Constant Current/Constant Voltage (CC/CV)
Interface USB Type-C
Operating Temperature Range -40°C to +85°C
Protection Features Over-voltage, over-temperature, reverse polarity

Pin Configuration and Descriptions

Pin Name Pin Number Description
VCC 1 Input power supply (4.5V to 6V). Connect to Type-C input.
BAT 2 Battery connection pin. Connect to the positive terminal of the battery.
GND 3 Ground pin. Connect to the negative terminal of the battery and power supply.
PROG 4 Charging current programming pin. Connect a resistor to set the charging current.
STAT1 5 Charging status indicator (active low). Connect to an LED for visual indication.
STAT2 6 Charging complete indicator (active low). Connect to an LED for visual indication.
TEMP 7 Temperature monitoring pin. Connect to an NTC thermistor for thermal regulation.
CE 8 Chip enable pin. Pull high to enable charging, low to disable.

Usage Instructions

How to Use the TP4056 Type-C in a Circuit

  1. Power Supply: Connect the VCC pin to a 5V power source, such as a USB Type-C cable.
  2. Battery Connection: Connect the BAT pin to the positive terminal of the lithium-ion battery. The negative terminal of the battery should be connected to GND.
  3. Set Charging Current: Use a resistor between the PROG pin and GND to set the desired charging current. The formula to calculate the resistor value is: [ I_{CHG} = \frac{1200}{R_{PROG}} ] where ( I_{CHG} ) is the charging current in mA and ( R_{PROG} ) is the resistor value in kΩ.
  4. Status LEDs: Connect LEDs to the STAT1 and STAT2 pins with appropriate current-limiting resistors to indicate charging status.
    • STAT1: Charging in progress (LED ON when active).
    • STAT2: Charging complete (LED ON when active).
  5. Thermal Regulation: Optionally, connect an NTC thermistor to the TEMP pin for temperature monitoring and protection.
  6. Enable/Disable Charging: Use the CE pin to enable or disable charging. Pull the pin high to enable charging or low to disable it.

Important Considerations

  • Ensure the input voltage does not exceed 6V to avoid damaging the IC.
  • Use a properly rated lithium-ion battery to prevent overcharging or overheating.
  • Place decoupling capacitors (e.g., 1µF and 10µF) near the VCC pin to stabilize the input voltage.
  • Avoid shorting the BAT pin to GND, as this may damage the IC.

Example Code for Arduino UNO

If you want to monitor the charging status using an Arduino UNO, you can connect the STAT1 and STAT2 pins to digital input pins on the Arduino. Below is an example code snippet:

// Define the pins connected to STAT1 and STAT2
const int stat1Pin = 2; // STAT1 connected to digital pin 2
const int stat2Pin = 3; // STAT2 connected to digital pin 3

void setup() {
  pinMode(stat1Pin, INPUT); // Set STAT1 as input
  pinMode(stat2Pin, INPUT); // Set STAT2 as input
  Serial.begin(9600);       // Initialize serial communication
}

void loop() {
  int stat1 = digitalRead(stat1Pin); // Read STAT1 pin
  int stat2 = digitalRead(stat2Pin); // Read STAT2 pin

  if (stat1 == LOW) {
    Serial.println("Charging in progress...");
  } else if (stat2 == LOW) {
    Serial.println("Charging complete!");
  } else {
    Serial.println("No battery connected or idle state.");
  }

  delay(1000); // Wait for 1 second before checking again
}

Troubleshooting and FAQs

Common Issues and Solutions

  1. The battery is not charging.

    • Ensure the input voltage is within the 4.5V to 6V range.
    • Check the connections to the BAT and GND pins.
    • Verify that the CE pin is pulled high to enable charging.
  2. The IC is overheating.

    • Reduce the charging current by increasing the resistor value on the PROG pin.
    • Ensure proper ventilation or add a heatsink if necessary.
  3. The status LEDs are not lighting up.

    • Check the connections and polarity of the LEDs.
    • Verify that the STAT1 and STAT2 pins are functioning correctly.
  4. The charging current is too high or too low.

    • Recalculate the resistor value for the PROG pin using the formula provided.
    • Ensure the resistor is properly connected and has the correct value.

FAQs

Q: Can I use the TP4056 Type-C to charge multiple batteries in series?
A: No, the TP4056 Type-C is designed for single-cell lithium-ion batteries only. Charging multiple batteries in series requires a specialized charging circuit.

Q: What happens if the input voltage exceeds 6V?
A: Exceeding 6V can damage the IC. Always ensure the input voltage is within the specified range.

Q: Can I use the TP4056 Type-C without the TEMP pin?
A: Yes, the TEMP pin can be left unconnected if temperature monitoring is not required. However, this disables thermal regulation.

Q: How do I adjust the charging voltage?
A: The charging voltage is fixed at 4.2V and cannot be adjusted. For other voltages, consider using a different charger IC.


This concludes the documentation for the TP4056 Type-C.