2in1 Charge Discharge Board Module DIY 18650 Lithium Battery Power Mobile Bank
2in1 Charge Discharge Board Module DIY 18650 Lithium Battery Power Mobile Bank
The 2in1 Charge Discharge Board Module is a versatile DIY power management module designed for 18650 lithium batteries. This module serves as a comprehensive solution for charging, discharging, and monitoring 18650 lithium-ion batteries, making it an ideal component for various IoT projects, robotics, and mobile power bank designs.
The 2in1 Charge Discharge Board Module offers the following functionalities |
Overcharge protection
Over-discharge protection
Short-circuit protection
Over-voltage protection
Under-voltage protection
Over-temperature protection
The 2in1 Charge Discharge Board Module is a comprehensive power management solution for 18650 lithium-ion batteries. With its adjustable output voltage, high-efficiency conversion, and built-in protection features, this module is an ideal component for various IoT, robotics, and mobile power bank applications.
2in1 Charge Discharge Board Module DIY 18650 Lithium Battery Power Mobile Bank
Overview
The 2in1 charge discharge board module is a versatile and compact DIY solution for managing 18650 lithium batteries in various IoT projects. This module allows for simultaneous charging and discharging of the battery, making it an ideal component for building mobile power banks, robots, and other battery-powered devices.
Features
Supports 18650 lithium battery
2in1 charging and discharging function
Overcharge and over-discharge protection
Short-circuit protection
Reverse polarity protection
Compact size: 35x20mm
Pinout
The module has the following pins:
VCC: Input voltage (5V)
GND: Ground
BAT: Battery connection (18650 lithium battery)
CHG: Charging indicator (LED)
DIS: Discharging indicator (LED)
OUT: Output voltage (5V)
Example 1: Simple Power Bank
In this example, we'll demonstrate how to use the 2in1 charge discharge board module to build a simple power bank.
Components
1 x 2in1 charge discharge board module
1 x 18650 lithium battery
1 x Micro-USB connector (for charging)
1 x USB-A connector (for discharging)
Code
No code is required for this example, as the module operates independently. Simply connect the Micro-USB connector to a power source (e.g., a wall adapter) to charge the battery. The CHG LED will indicate when the battery is charging. Once the battery is fully charged, the DIS LED will turn on, and the power bank is ready to use.
Example 2: Arduino-Based Battery Monitor
In this example, we'll use the 2in1 charge discharge board module with an Arduino board to monitor the battery's state of charge (SoC) and voltage.
Components
1 x 2in1 charge discharge board module
1 x Arduino board (e.g., Arduino Uno)
1 x 18650 lithium battery
1 x BME280 temperature and humidity sensor (optional)
Code
```c++
const int batVoltagePin = A0; // Analog input for battery voltage
const int batSoCPin = A1; // Analog input for battery SoC
const int ledPin = 13; // Digital output for LED indicator
void setup() {
pinMode(ledPin, OUTPUT);
pinMode(batVoltagePin, INPUT);
pinMode(batSoCPin, INPUT);
}
void loop() {
int batVoltage = analogRead(batVoltagePin);
int batSoC = analogRead(batSoCPin);
// Calculate battery voltage and SoC
float voltage = batVoltage 5.0 / 1023.0;
float soc = map(batSoC, 0, 1023, 0, 100);
// Print battery voltage and SoC to serial monitor
Serial.print("Battery Voltage: ");
Serial.print(voltage);
Serial.println("V");
Serial.print("Battery SoC: ");
Serial.print(soc);
Serial.println("%");
// Turn on LED if battery is fully charged
if (soc >= 90) {
digitalWrite(ledPin, HIGH);
} else {
digitalWrite(ledPin, LOW);
}
delay(1000);
}
```
In this example, we use the Arduino board to read the battery voltage and SoC from the analog inputs of the 2in1 charge discharge board module. We then calculate the battery voltage and SoC and print them to the serial monitor. Finally, we use an LED to indicate when the battery is fully charged.
Note: This code is for illustration purposes only and may require modifications to work with your specific setup.