Introduction: LilyPad Embroidery
Design for the fashion system 2020/21 | Fashion 4.0 | Group 2
E-textile project including a Lilypad Arduino that controls the LEDs using light sensor and button.
Step 1: Materials
- LilyPad ProtoSnap Plus Kit
- LilyPad board (microcontroller)
- Light sensor
- Button sensor
- White LEDs
- Conductive thread
- LiPo battery
- Embroidery thread
- Embroidery needle
- Embroidery hoops (wood 15cm)
- Lightweight black fabric
- Printed pattern
- White pencil
- Nail polish
Step 2: Plan the Design
In order to start the project, first of all print the embroidery pattern and cut it along the hoop line. Then, cut a piece of lightweight black fabric large enough to cover the hoop leaving some centimeters extra. Once you have it attached, bring the pattern and the hoop to a source of light to mark the pattern with a white pencil and use a ruler for the straight lines.
Step 3: Embroider the Design
In order to make the stroke lighter, separate the embroidery thread in half (careful with the knots) and thread the needle. Afterwards, sew following the design with a backstitch technique. We will embroider the stars after the lights are on place (step 7).
Step 4: Write the Sketch
Write and check the sketch on Arduino. We will program the light sensor and the button as inputs and the 3 LED's as outputs. The lights will shine brighter the less light there is (light sensor). The difficulties we have encountered is that it is needed to stabilize the Lilypad button writing input_pullup in the void setup.
Here you can find our sketch:
Step 5: Arrange the Lights Pattern
Remove the fabric and attach a second piece with the same size. Bring it together with the printed drawing to a light source to mark where the LilyPad LEDs go (in the stars). These LEDs should be facing up while the microcontroller, light sensor and button should be positioned on the opposite side of the fabric.
Step 6: Embroider the Circuit
Once the position of the components is determined, sew with the conductive thread the circuit. It is recommended to be done in this order:
- All Ground (-)
- The LEDs to the pins (~6, ~A7, ~A8)
- The positive pin from the light sensor to the positive ( + ) of microcontroller
- The signal pin (S) from the light sensor to one analog pin (A2)
- The button pin to digital pin (A4)
Check the circuit on the LilyPad connecting the LiPo battery. If the circuit works well, remove the battery (for now) and use hot glue or clear nail polish to seal the knots and frayed thread to avoid shorts.
Step 7: Finish the Design
The next step is to attach the embroidered fabric with the design directly on top of the piece of fabric with the LEDs. Stretch them together in the hoop and cut the excess fabric. Draw the missing lines over the LEDs and then embroider the rest of the design.
Step 8: Place the Battery
Finally, fix the back of the hoop to make it clean and place the battery on the LilyPad.
Step 9: Final Result
Here you can see the result of our e-textile project using LilyPad. As we have programmed in the sketch, the lights will shine brighter the less light there is and we can switch them off with the button.
Turn the power on and enjoy!
2 years ago
am I missing something, you have that microprocessor to control X3 leds
all that work for X3 leds
Reply 2 years ago
Hi! Yes, I know, it was a basic class project to start with Arduino.
It can be programmed with more interesting features if wanted like fading, alternate, etc :)