Getting Started with LilyPad
2017-11-15 | By SparkFun Electronics
License: See Original Project Switches Wearables Arduino LilyPad
Courtesy of SparkFun Electronics
Introduction
The LilyPad system is a set of sewable electronic pieces designed to help you build soft, sewable, interactive e-textile (electronic textile) projects. Using LilyPad pieces is a great way to experiment with electronics through the lens of crafting or fiber arts. Each LilyPad piece has large conductive sew tabs for easy sewing and a rounded shape so as not to snag fabric or cut thread. In this guide, we will walk you through features of the LilyPad system and some general concepts.
The LilyPad system was designed by Leah Buechley while pursuing her Ph.D. in computer science at the University of Colorado Boulder. The commercial version of the kit, which launched in 2007, was collaboratively designed by Leah and SparkFun Electronics.
LilyPad Creator Leah Buechley
LilyPad Basics: Parts of a Circuit
Every LilyPad circuit, no matter how complex, has three basic parts: (1) a power source, (2) conductive paths (conductive thread stitching) between electronic components, and (3) the LilyPad pieces that are connected together to light up, make sound or perform other behaviors (the "function" of your project).
1. Choosing a Power Source
All LilyPad projects need a power source — most use either a 3V CR2032 coin cell battery or a 3.7V lithium polymer rechargeable battery. Which power solution you need will depend on a few factors: the size of your project, the type of LilyPad Arduino you choose, and whether you would rather replace or recharge a battery. The LilyPad line includes a stand-alone sewable coin cell holder or built-in battery connections for 3V coin cell batteries or 3.7V lithium polymer batteries (available on select LilyPad boards).
2. Conductive Thread Connections
LilyPad boards are made to be sewn together using conductive thread, a special thread made with stainless steel fibers. Used instead of copper wiring to connect LilyPad pieces together, conductive thread provides a soft and flexible connection between components that is incorporated directly into fabric. Each LilyPad piece has a large sew tab to accommodate a variety of needle sizes for attaching conductive thread.
- Conductive Thread - 60g (Stainless Steel)
- Conductive Thread Bobbin - 30ft (Stainless Steel)
- Conductive Thread Bobbin - 12m (Smooth, Stainless Steel)
Learn more about sewing with conductive thread in the Lilypad Basics: E-Sewing tutorial.
- LilyPad Basics: E-Sewing Learn how to use conductive thread with LilyPad components.
3. LilyPad Pieces
The LilyPad line includes a variety of sewable components for creative projects. Choose from LEDs in a variety of colors, buttons, switches, sensors, buzzers, and controller (Arduino) boards. Check out all of the individual LilyPad pieces. Which pieces you choose to build into your project will depend on your individual vision and goals. Read on for more about the different types of LilyPad projects you can make.
Full line of LilyPad boards.
Types of LilyPad Projects
LilyPad projects can be divided into three main categories: (1) e-sewing, (2) pre-programmed, and (3) programmed with Arduino. Read the next few sections for more details on each project type.
E-Sewing
A great way to try out sewing with conductive thread without programming is to create e-sewing projects.
LilyPad LEDs and a LilyPad Coin Cell Battery Holder will light up a project, and the possibilities can be expanded to include simple interactive elements like buttons or switches, which you can purchase or make yourself. We recommend e-sewing projects if you are new to sewing or want to create a quick and easy light-up craft.
Here are some e-sewing projects to try:
- Light-Up Plush Craft a light-up plush with LilyPad LEDs controlled by pressing a button and sliding a switch in the creature's hands.
- Glowing Pin Create a quick and easy piece of e-textile art using a LilyPad LED, battery holder, conductive thread, and coin cell battery.
- Illuminated Mask Use LilyPad LEDs, a switched battery holder, and coin cell battery to make a fun light up mask for your next costume party.
Suggested Materials:
- Needle
- Scissors
- Felt or Fabric
- Hot Glue and Glue Gun
- Conductive Thread
- Coin Cell Battery
- LilyPad Coin Cell Battery Holder
- LilyPad LEDs
- Optional: LilyPad Button Board, LilyPad Slide Switch, metal snaps, conductive thread
Pre-Programmed Circuits
If you are ready to try some flashier effects with LEDs or explore how programmed projects work without writing the code yourself, pre-programmed LilyPad boards are a great option.
The LilyPad line includes four products that are project-ready: the LilyTiny, LilyTwinkle, LilyTwinkle ProtoSnap and LilyMini ProtoSnap — just sew and glow!
The LilyTiny and LilyTwinkle are small LilyPad boards with pre-loaded programs on them. Just hook them up to a LilyPad Coin Cell Battery Holder and some LilyPad LEDs to see different light patterns display on the LEDs. Both the LilyTiny and LilyTwinkle use the same circuit board and controller, but differ in the code they ship with.
LilyTiny
The LilyTiny has a different light pattern programmed for each numbered sew tab. Tab 0 controls a "breathing" fade, tab 1 flashes a heartbeat pattern, tab 2 creates an on/off blink, and tab 3 produces a random fading effect (twinkle). The LilyTiny is a great way to try out different light patterns in a project.
Try checking out a demo of the LilyTiny below.
See the LilyTiny in Action
Here are some LilyTiny projects to try:
- LDK Experiment 6: Microcontroller Circuits Learn how to build a simple microcontroller circuit using the pre-programmed LilyTiny Board
- LilyTiny Plush Monster Craft a stuffed monster while exploring the LilyTiny preprogrammed microcontroller. This is a project based on the Plush Monster Activity created at MIT's High-Low Tech Lab by Emily Lovell, Jie Qi, and Natalie Freed.
- Twinkle Zodiac Constellation Create a quick and easy piece of e-textile art based on a Zodiac sign using a LilyTiny, LilyPad LEDs, battery holder, conductive thread, and coin cell battery.
Suggested Materials:
- Needle
- Scissors
- Felt or Fabric
- Hot Glue and Glue Gun
- Conductive Thread
- LilyTiny
- LilyPad Coin Cell Battery Holder
- Coin Cell Battery
- LilyPad LEDs
LilyTwinkle
If you are looking for an overall sparkling effect on a project, the LilyTwinkle has all four numbered tabs programmed with a random fading effect, mimicking twinkling stars or fireflies. The LilyTwinkle also comes in a LilyTwinkle ProtoSnap, a pre-wired board containing everything you need to test and sew a LilyTwinkle project.
Try checking out a demo of the LilyTwinkle below.
See the LilyTwinkle in Action
Here are some LilyTwinkle projects to try:
- Soft Circuits: LED Feelings Pizza Here we will learn how to say how you feel with pizza. Electric pizza.
- Firefly Jar Assembly Guide Make a soft circuit firefly jar with conductive thread, LEDs, and the LilyTwinkle!
- Twinkling Trick or Treat Bag Make a light up goodie bag with conductive thread, LEDs, and the LilyTwinkle!
Suggested Materials:
- Needle
- Scissors
- Felt or Fabric
- Hot Glue and Glue Gun
- Conductive Thread
- LilyTwinkle or LilyTwinkle ProtoSnap
- LilyPad Coin Cell Battery Holder (included if using ProtoSnap)
- Coin Cell Battery (included if using ProtoSnap)
- LilyPad LEDs (included if using ProtoSnap)
LilyMini ProtoSnap
For something more interactive, try the LilyMini ProtoSnap — a pre-wired, pre-programmed LilyPad board with a LilyPad Light Sensor and LilyPad Button attached to it. The LilyMini includes a built-in coin cell battery holder to eliminate additional sewing. Test out the circuit with the pre-wired connections, then snap apart and sew into a project. The LilyMini ProtoSnap has three pre-programmed modes (indicated by a built-in RGB LED): white (all LEDs on), magenta (LEDs fade in and out in a "breathing" pattern with speed affected by covering the light sensor), and cyan (when the light sensor is covered, LEDs twinkle).
See the LilyMini ProtoSnap in Action
Here are some LilyMini projects to try:
- LilyMini ProtoSnap Hookup Guide Explore the LilyPad LilyMini ProtoSnap and learn how to use it.
- Night-Light Pennant with LilyMini ProtoSnap Use the pre-programmed LilyMini ProtoSnap to make an interactive pennant that reacts to ambient light levels.
Suggested Materials:
- Needle
- Scissors
- Felt or fabric
- Hot Glue and Glue Gun
- Conductive Thread
- LilyMini ProtoSnap (includes Coin Cell Battery)
Programmed with Arduino
Have an idea for a custom project and ready to program? The LilyPad line has a variety of LilyPad Arduino microcontrollers to choose from, all compatible with free Arduino software.
The LilyPad ProtoSnap Plus is a great place to start prototyping a project — it includes seven LilyPad boards pre-wired to a LilyPad microcontroller for experimenting with code before you sew.
The LilyPad ecosystem also includes four stand-alone LilyPad controllers, the LilyPad Arduino USB, LilyPad Arduino 328 Main Board, LilyPad Arduino Simple Board, and LilyPad Arduino SimpleSnap. These controller boards can be connected to most of the LilyPad boards for light-up, sound-making, or sensing projects.
- LilyPad Arduino USB - ATmega32U4 Board
- LilyPad Arduino 328 Main Board
- LilyPad Arduino SimpleSnap
- LilyPad Arduino Simple Board
Check out Choosing a LilyPad Arduino for Your Project for a side-by-side comparison of each board’s features.
Choosing a LilyPad Arduino for Your Project
October 27, 2015
Not sure which LilyPad Arduino is right for you? We'll discuss the features of each and help you decide.
Resources and Going Further
Start with a Kit
The LilyPad Sewable Electronics Kit — Includes everything you need to make 4 e-sewing projects: glowing pin, illuminated mask, light-up plush, and night-light pennant (with LilyMini). Craft supplies also included.
LilyPad Sewable Electronics Kit
Plan Your Project
Check out Planning a Wearable Electronics Project for tips on brainstorming and prototyping, as well as technical considerations.
Planning a Wearable Electronics Project
August 13, 2015
Tips and tricks for brainstorming and creating a wearables project.
Get Inspired
Take a look at our LilyPad Project Gallery to browse projects made with LilyPad or read some of SparkFun’s blog posts on LilyPad and wearables.
Have questions or comments? Continue the conversation on TechForum, DigiKey's online community and technical resource.
Visit TechForum