









The 9V battery has two terminals: a positive (+) terminal and a negative (-) terminal. These terminals are located on the top of the battery and are designed for snap connectors.
| Terminal | Symbol | Description |
|---|---|---|
| Positive | (+) | Supplies the positive voltage |
| Negative | (-) | Returns the current to the circuit |
To power an Arduino UNO with a 9V battery, follow these steps:
Here is a simple Arduino code example to blink an LED while powered by a 9V battery:
// Blink an LED connected to pin 13
// Ensure the Arduino is powered by a 9V battery via the VIN and GND pins
void setup() {
pinMode(13, OUTPUT); // Set pin 13 as an output
}
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:
Corrosion or Leakage:
Can I use a 9V battery to power a motor?
How do I know when to replace the battery?
Can I recharge an alkaline 9V battery?
What is the difference between alkaline and lithium 9V batteries?