Description
Arduino LilyPad ATmega328 Wearable Microcontroller Board
The Arduino LilyPad ATmega328 is a microcontroller board designed for wearable electronics and smart clothing. Its flat, round form is intended to reduce snagging and profile, and its wide tabs can be sewn and connected with conductive thread.
Specifications (as listed)
- Microcontroller: ATmega328
- Operating voltage: 2–5 V
- Digital pins: 14, including 6 PWM pins
- Analog pins: 6
- Flash memory: 32 KB (ATmega328), of which 4 KB is used by the bootloader
- SRAM: 2 KB
- EEPROM: 1 KB
- Clock speed: 8 MHz
- Dimensions: 50 mm diameter, 0.8 mm thick
- Price: MAD 60
- Stock: 195 units
How it works
Program the LilyPad using an FTDI adapter or USB-to-serial converter. Sketches are uploaded and run by the ATmega328, which interacts with connected components and sensors through conductive thread.
Applications
- E-textiles and smart clothing: integrate electronics into clothing and accessories
- Interactive fashion: make clothing and accessories respond to movement, light and other inputs
- Education: teach electronics and programming through smart-textile projects
- DIY projects needing lightweight, flexible electronic components
Getting started
- Set up the Arduino IDE
- Download and install the Arduino IDE.
- Connect the board
- Connect the LilyPad to an FTDI adapter or USB-to-serial converter.
- Connect the adapter to a computer over USB.
- Program it
- Select “Arduino LilyPad” in the Arduino IDE.
- Upload the sketch through the FTDI adapter.
- Sew the circuit
- Use conductive thread to sew electronic components to the board tabs and fabric.
Connections and components
- FTDI adapter: for programming the board over USB
- Power: a 3.7 V battery is recommended by the source
- Basic components: LEDs, sensors, switches, resistors and similar parts
Arduino code example
This example blinks an LED connected to D13. The source code is reproduced exactly:
void setup() {
pinMode(13, OUTPUT);
}
void loop() {
digitalWrite(13, HIGH);
delay(1000);
digitalWrite(13, LOW);
delay(1000);
}
Code explanation
setup(): configures pin D13 as an output.loop(): turns the LED on and off every second for continuous blinking.
Pin connections
- D13: connect to an LED (with a series resistor if needed).
- GND: connect to the LED negative terminal using conductive thread.











