The SparkFun LilyPad USB Plus is a versatile, sewable microcontroller board designed for wearables and e-textiles projects. It is built around the ATmega32U4 microcontroller and features built-in USB connectivity, allowing it to be programmed directly through the Arduino Integrated Development Environment (IDE) without the need for an external programmer. The LilyPad USB Plus is part of the larger LilyPad ecosystem, which includes a variety of sensors, LEDs, and other components that can be sewn together with conductive thread to create interactive textiles.
Pin Number | Function | Description |
---|---|---|
1-9 | Digital I/O | Digital pins which can be used for input/output. |
A2-A5 | Analog Input | Analog pins which can be used for analog input. |
+ | Vcc | Positive supply voltage (3.3V). |
- | Ground | Ground connection. |
A | Analog | Additional analog reference pin. |
R | Reset | Reset pin, active low. |
Connecting to a Computer:
Programming:
Sewing into Fabric:
Q: Can I wash my LilyPad USB Plus project? A: Yes, but you should remove the battery and ensure the project is completely dry before powering it up again.
Q: How do I connect additional components to the LilyPad USB Plus? A: Additional components can be sewn to the board using conductive thread, connecting to the appropriate pins.
Q: What is the maximum number of LEDs I can connect? A: This depends on the current draw of the LEDs and the total current limit of the board. Each I/O pin can supply up to 40 mA.
// Blink the onboard LED
void setup() {
pinMode(13, OUTPUT); // Initialize the LED_BUILTIN pin as an output
}
void loop() {
digitalWrite(13, HIGH); // Turn the LED on
delay(1000); // Wait for a second
digitalWrite(13, LOW); // Turn the LED off
delay(1000); // Wait for a second
}
Note: The above code is for demonstration purposes and is written for the Arduino UNO, which shares the same LED_BUILTIN pin as the LilyPad USB Plus. When using the LilyPad USB Plus, ensure you select the correct board in the Arduino IDE.