The LilyPad Coin Cell Battery Holder is a compact, sewable power source designed for wearable electronics. It holds a single 20mm coin cell battery (CR2032) and features an integrated on/off switch, making it convenient for powering projects without needing to disconnect the battery. This holder is commonly used in conjunction with the LilyPad Arduino and other microcontrollers in e-textiles and wearable projects.
Pin Number | Description | Notes |
---|---|---|
1 | Positive (+) | Connects to VCC on the circuit |
2 | Negative (-) | Connects to GND on the circuit |
Inserting the Battery:
Connecting to a Circuit:
VCC
or power input of your circuit.GND
or ground of your circuit.Powering Your Project:
Q: Can I wash my project with the LilyPad Coin Cell Battery Holder attached? A: It is not recommended to wash electronic components. Remove the battery and holder before washing your project.
Q: How long will my battery last? A: Battery life depends on the current draw of your project. A CR2032 battery typically has a capacity of around 220mAh. Divide this by your circuit's current draw to estimate battery life.
Q: Is the battery holder reusable? A: Yes, the battery holder can be reused multiple times with replacement batteries.
// Example code to blink an LED using the LilyPad Coin Cell Battery Holder
const int ledPin = 13; // LED connected to digital pin 13
void setup() {
pinMode(ledPin, OUTPUT); // Set the LED pin as an output
}
void loop() {
digitalWrite(ledPin, HIGH); // Turn the LED on
delay(1000); // Wait for 1 second
digitalWrite(ledPin, LOW); // Turn the LED off
delay(1000); // Wait for 1 second
}
Note: This example assumes you have an LED connected to pin 13 and the LilyPad Coin Cell Battery Holder powering the Arduino UNO. Always ensure the battery holder's switch is in the ON position before expecting the code to run.