LilyPad-Night-Light-ladybird

Byamber

LilyPad-Night-Light-ladybird



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 Lilypad USB board. With upload the code into the Lilypad board, this projects can now have more advanced behaviors, and interactions are even reprogrammable. We’ll sew the LilyPad components on the colorful felts and customize the theme and decoration.

Materials and Tools

• 1x LilyPad USB board
• 1x LilyPad Coin Cell Battery Holder
• 1x LilyPad Light Sensor
• 4x Lilypad LEDs(green)
• 2x Lilypad LEDs(orange)
• Conductive Thread and Needle
• 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

1-all_materials

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 felt to hang on a wall or sew into a project.

NightLightladybirdTemplate

3-Project_circuit_layout

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 Lilypad need to been programmed in advance with a set of behaviors called code.

You will need seven LilyPad pieces: the LilyPad USB board, LilyPad Coin Cell Battery holder, six LEDs 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:

Cut a long piece of conductive thread, thread the needle, and tie a knot at the end. Sew your first connection: starting from the positive sew tab of one green led, connect each of the 6 LEDs with a running stitch and three loops of conductive thread around each positive (+) sew tab. Tie and cut your thread.Noted that the third and fourth LEDs are orange as ladybird eyes.

With a new piece of thread, repeat the process for the negative side of the circuit – connecting the 6 LEDs’ negative sew tabs to one another and, finally, the negative sew tab on green led. Tie a finishing knot, and trim any excess thread.

3-ladybird-circuit

STEP 2:

Next, we need other blue felt and stitch a connection between the LilyPad USB Board and the LilyPad light sensor on this fabic felt. 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 ;

Then 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 continue stitching from Tab (-) of the holder to Tab(-) of the light sensor . 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.

4-blue_felt

STEP 3:

Last,with a new piece of thread, begin at the tab 2 of the lilypad USB board and stitch three to four loops around the sew tab. Continue stitching to the positive side of the last LED, ending with three to four loops.

This will require a  longer piece of thread than in other steps.Begin at the negative (-) sew tab on the battery holder, and continue stitching along the outside edge of the project, connecting the negative tab of the last LED on the other side.

5

STEP 4:

Click here to download the code :Night-Light-Ladybird.ino

Before uploading the code into lilypad board ,you need to install the arduino IDE on your computer.You can grab the most recent version of the software from Arduino’s downloads page (https://www.arduino.cc/en/Main/Software). Check out our Arduino installation guide (Windows, Mac, or Linux) for help installing the IDE.

When you connect LilyPad Arduino USB board to you computer via the usb data cable (assuming the battery is connected) and slide the switch to “CHG” mode, you should see an red LED light up, to indicate the battery is charging. When the switch in the ON position, the microcontroller receives power and the board runs.

Before you can upload code, there are a few settings to make. Notice that “Board” is correctly set as “LilyPad ArduinoUSB”. To change that, go to the Tools menu, navigate to the Boards dropdown, and select LilyPad Arduino USB.

fingerprint Setting Uploading an Arduino Sketch-2

Open it, and then uploading the code, by clicking the right-pointing-arrow-icon button. Give Arduino few seconds to compile the code, and then a few more to upload.

Installing Your Battery and Testing

Insert the coin cell battery into the LilyPad USB Board’s battery holder with the positive (+) side facing up. Cover the light sensor, all leds should light up.If so, remove the battery and continue to the Finishing Touches section.

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 design. 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.

7

Finishing Touches

成品展示

About the Author

amber administrator

You must be logged in to post a comment