The LilyPad Coin Cell Battery Holder - Switched - 20mm is a compact, sewable power supply module designed for use with LilyPad Arduino boards and other wearable electronics. This holder is specifically tailored to hold a 20mm coin cell battery, providing a convenient and discreet power source for your projects. The integrated on/off switch allows for easy power management without the need to disconnect the battery, making it ideal for wearable applications where space and convenience are paramount.
Pin Label | Description |
---|---|
+ |
Positive connection to the coin cell |
- |
Negative connection to the coin cell |
S |
Connected to the switch (output to load) |
Inserting the Battery:
Connecting to a LilyPad Arduino:
+
) pad of the battery holder to the +
power input on the LilyPad Arduino.-
) pad to the -
ground on the LilyPad Arduino.Powering On/Off:
Device Not Powering On:
Intermittent Power:
Q: Can I use a battery other than CR2032?
Q: How long will the battery last?
Q: Is the battery holder washable?
// Example code to blink an LED using a LilyPad Arduino powered by the Coin Cell Battery Holder
const int LED_PIN = 13; // The pin number for the LED
void setup() {
pinMode(LED_PIN, OUTPUT); // Set the LED pin as an output
}
void loop() {
digitalWrite(LED_PIN, HIGH); // Turn on the LED
delay(1000); // Wait for 1 second
digitalWrite(LED_PIN, LOW); // Turn off the LED
delay(1000); // Wait for 1 second
}
Note: This example assumes you have an LED connected to pin 13 and ground on the LilyPad Arduino, powered by the LilyPad Coin Cell Battery Holder. Adjust the pin number as necessary for your specific setup.