

A battery is a device that stores electrical energy in chemical form and converts it to electrical energy when needed, providing power to electronic circuits. Batteries are essential components in a wide range of applications, from powering small electronic devices like remote controls and sensors to larger systems such as electric vehicles and backup power supplies. They are available in various types, including primary (non-rechargeable) and secondary (rechargeable) batteries, each suited for specific use cases.
Common applications of batteries include:








The specifications of a battery depend on its type, size, and chemistry. Below are general technical details for a typical AA alkaline battery as an example:
| Parameter | Value |
|---|---|
| Nominal Voltage | 1.5 V |
| Capacity | ~2000–3000 mAh |
| Chemistry | Alkaline |
| Rechargeable | No |
| Operating Temperature | -20°C to 54°C |
| Shelf Life | ~5–10 years |
For a rechargeable lithium-ion battery, the specifications might look like this:
| Parameter | Value |
|---|---|
| Nominal Voltage | 3.7 V |
| Capacity | ~1000–5000 mAh |
| Chemistry | Lithium-ion |
| Rechargeable | Yes |
| Charging Voltage | 4.2 V (max) |
| Operating Temperature | 0°C to 45°C (charging) |
| Cycle Life | ~300–500 cycles |
Batteries typically have two terminals:
| Pin Name | Description |
|---|---|
| Positive (+) | The positive terminal (anode) where current flows out of the battery. |
| Negative (-) | The negative terminal (cathode) where current flows into the battery. |
To power an Arduino UNO with a 9V battery:
Here is a simple Arduino sketch to blink an LED while powered by a battery:
// This code blinks an LED connected to pin 13 of the Arduino UNO.
// Ensure the battery provides sufficient voltage (e.g., 9V) to power the Arduino.
void setup() {
pinMode(13, OUTPUT); // Set pin 13 as an output pin
}
void loop() {
digitalWrite(13, HIGH); // Turn the LED on
delay(1000); // Wait for 1 second
digitalWrite(13, LOW); // Turn the LED off
delay(1000); // Wait for 1 second
}
Battery Drains Quickly
Device Does Not Power On
Battery Overheats
Rechargeable Battery Does Not Charge
Q: Can I use a higher voltage battery than specified for my circuit?
A: No, using a higher voltage battery can damage your components. Always match the battery voltage to the circuit's requirements.
Q: How do I store batteries safely?
A: Store batteries in a cool, dry place away from direct sunlight and heat sources. Keep them in their original packaging or a battery case to prevent short circuits.
Q: How can I extend the life of a rechargeable battery?
A: Avoid overcharging, deep discharging, and exposing the battery to extreme temperatures. Charge the battery regularly and use it within its specified operating conditions.