The 2x 18650 battery module is a compact and convenient way to incorporate portable power into your electronics projects. This module typically holds two 18650 lithium-ion rechargeable batteries, which are cylindrical cells known for their high energy density and long life. Common applications include portable power banks, laptop batteries, flashlights, and as a power source for various DIY electronics projects, including those involving microcontrollers like the Arduino UNO.
Pin Number | Description | Notes |
---|---|---|
1 | Positive (+) | Connect to V+ of the load circuit |
2 | Negative (-) | Connect to GND of the load circuit |
Note: The actual pin configuration may vary depending on the specific battery holder or protection circuit included with the module.
Q: Can I charge the batteries while they are in the module? A: This depends on whether the module includes a built-in charging circuit. If not, you will need to remove the batteries and charge them in a dedicated charger.
Q: How do I know when the batteries are fully charged? A: Use a charger with an indicator light or display that shows the charging status. Charging is typically complete when the voltage per cell reaches 4.2V.
Q: Is it safe to leave the batteries in the charger overnight? A: Only if the charger is designed to prevent overcharging. Otherwise, it's best to remove the batteries once they are fully charged to prevent potential hazards.
Q: Can I use different types of batteries in the module? A: No, the module is designed specifically for 18650 lithium-ion batteries. Using other types of batteries can be dangerous and is not recommended.
The following is an example of how to connect the 2x 18650 battery module to an Arduino UNO to power it. Note that the Arduino UNO requires a voltage of 7-12V to operate safely when powered through the VIN pin.
// No specific code is required for battery power supply.
// Simply connect the positive terminal of the battery module to the VIN pin of the Arduino,
// and the negative terminal to one of the GND pins.
void setup() {
// Initialize digital pin LED_BUILTIN as an output.
pinMode(LED_BUILTIN, OUTPUT);
}
void loop() {
// Turn the LED on (HIGH is the voltage level)
digitalWrite(LED_BUILTIN, HIGH);
// Wait for a second
delay(1000);
// Turn the LED off by making the voltage LOW
digitalWrite(LED_BUILTIN, LOW);
// Wait for a second
delay(1000);
}
// This simple blink code will run as long as the Arduino is powered by the batteries.
Note: When using the 2x 18650 battery module to power an Arduino UNO, ensure that the combined voltage of the two batteries does not exceed the maximum input voltage of the Arduino (12V). It is recommended to use a voltage regulator or a step-down converter if necessary.