LilyPad-Night-Light Pennant

Byamber

LilyPad-Night-Light Pennant



Sewable Electronics Projects:

Buy from US Buy from UK Buy from DE Buy from IT Buy from FR Buy from ES Buy from JP
amzus amzuk AMAZON-jp

Introduction

In this project we’ll control LEDs using the LilyMini ProtoSnap. With the code stored on the LilyMini, our projects can now have more advanced behaviors, and interactions are even reprogrammable. We’ll sew the LilyPad components on a pennant shape and customize the theme and decoration.

Materials and Tools

• 1x LilyPad USB
• 1x LilyPad Light Sensor
• 1x LilyPad Button
• 4x Lilypad LEDs
• Conductive Thread and Needle
• Pennant Template (1 piece) – see Planning Your Project for printable downloads
• Felt (one 9″x12″ sheet of craft felt will make one pennant; use scraps of felt to add decorations)
• Embroidery or Sewing Thread

Planning Your Project

Follow along with the circuit diagram on the template, or design your own layout and shape on a piece of paper. Trace onto the felt, and cut. We’ll add the LilyPad USB board to a customized pennant to hang on a wall or sew into a project.

NightLightPennantTemplate

Understanding Your Circuit

The LilyPad USB is a small computer that can store information and commands to control different sensors and boards connected to it. Programmable boards like the LilyPad USB Board are called microcontrollers. The LilyMini need to been programmed in advance with a set of behaviors called code.

PennantLayout-1

You will need seven LilyPad pieces: the LilyPad USB board, LilyPad Coin Cell Battery holder, three LEDs, a tri-color led and a LilyPad Light Sensor. Arrange the pieces on the felt according to the diagram (or your own custom design). Carefully securing each piece with a dab of glue. Double check the orientation of the LilyPad pieces against the diagram or template before gluing.

Stitching It Together

STEP 1:

We’ll begin by stitching a connection between the LilyPad USB Board and the LilyPad light sensor. The light sensor board has three connections: sensor (S), positive (+), and negative (–). Use conductive thread to connect A3 tab on the LilyPad to the (S) tab on the light sensor with three loops at each tab. Connecting the A5 tab on the LilyPad to + tab on the light sensor ;

PennantLayout-step1

STEP 2:

Next, we’ll connect the LilyPad USB Board to the LilyPad Coin Cell Battery holder. Sewing three to four loops around Tab (-) of the LilyPad USB Board, and then continue stitching to connect Tab (-) of the holder. Tie and cut. With a new piece of thread, Sewing three to four loops around Tab (+) of the LilyPad USB Board, and then continue stitching to connect Tab (+) of the holder. Tie and cut.

PennantLayout-step2

 

STEP 3:

This will require a much longer piece of thread than in other steps.Begin at the negative (-) sew tab on the light sensor, and continue stitching along the outside edge of the project, connecting the negative tab of each piece (LilyPad coin battery holder,three LEDs).

PennantLayout-step3

 

STEP 4:

We’ll repeat this process with a new piece of thread to connect Tab 2 on the LilyPad USB Board to the positive tabs of three LEDs.

PennantLayout-step4

STEP 5:

Finally, we’ll stitch the tab 9, tab 10 and tab 11 on the tri-color LED to the tab 9, tab 10 and tab 11 of LilyPad USB Board, respectively. With a new piece of thread, stitch the tab 3 of the LilyPad USB Board to the positive tab (+) of the light sensor using three to four loops on each tab and a running stitch between. Tie, and cut.

After all the stitching is complete, turn the project over, and trim any loose thread tails before testing.

PennantLayout-step5

Installing Your Battery and Testing

Before your test,you need to use the computer to upload the arduino code on the LilyPad USB Board(Learn more about uploading code in the tutorial: Uploading an Arduino Sketch),Insert the coin cell battery into the LilyPad USB Board’s battery holder with the positive (+) side facing up. Press the power button on the LilyPad USB Board; Tri-color LED should light up. Cover the light sensor, all leds should light up and tri-color LEDs should change the color. If so, remove the battery and continue to the Finishing Touches section.

Click here to download:LilyPad_Night_Light_Pennant.ino

Finishing Touches

Learn more about uploading code in the tutorial: Uploading an Arduino Sketch.

After checking the function of the circuit, it’s time to customize your pennant. Adding light-colored felt over the LEDs can hide the boards and diffuse the light. If covering the light sensor with a felt decoration, make sure to cut a hole above the sensor so it is not blocked/covered.

Example_Main

 

Here are a few examples of finished pennants with creative themes:

Example_Graveyard  Example_Cheshire

About the Author

amber administrator

You must be logged in to post a comment