Wearables Basic

Image via Lauren Dehrone on YouTube
Image via Lauren Dehrone on YouTube

Skill Level: Basic Level

Badges Earned: Wearables Basic

Description: For this badge, you’re going to get the LilyPad Arduino up and running. We recommend that you get your Arduino Basic badge FIRST. Go here and get that now. It will really help you grasp what you’re doing with the LilyPad. Basically, you’re going to do do two things here. Upload and run the Blink Sketch on the LilyPad, then you’re going to power the LilyPad independently with a Coin Cell battery. Now let’s get started!

Part 1: Watch this overview, which will take you through this process:

Part 2:  Get yourself over to a PC or Mac to use your Arduino IDE. Things you’ll need: 

  • You’ll also need a standard mini USB cable and an FTDI board.

The FTDI Board looks like this:

LilyPadFTDI

You can use Codebender.cc or the Arduino Software, but you must use a PC or Mac, because the LilyPad requires a special driver for the FTD1 Driver. Once you open either the Arduino software or the Codebender environment, make sure it’s set for LilyPad Arduino w/ ATMega328 and whatever port you’re using on your computer.

On Codebender.cc:

Screen Shot 2016-03-29 at 9.02.54 AM

For PCs, you’ll most likely see COM3 or COM5 as a port. Macs are a bit different.

On Arduino software:

skitch-1

Part 3:  Attach an LED to LilyPad Arduino like this. 

LilyPad-LED-connection

Upload your code to the LilyPad. Copy the code below, and paste it into your code environment. Upload. If the LilyPad LED blinks, it works! 

/*
* LilyPad sample code, blink an LED attached to pin 5
*/
int LED1 = 5; // LED is connected to digital pin 5
void setup()
{
pinMode(LED1, HIGH);
}

void loop() // run over and over again
{
digitalWrite(LED1, HIGH); // set the LED on
delay(1000); // delay for 1 second
digitalWrite(LED1, LOW); // set the LED off
delay(1000); // delay for 1 second
}

Part 4: Adding a Power Supply! 

You can add a power supply with a AA battery box. Watch this video below to see how to unplug from the computer and run your Arduino to make it independent:

 

Final Step! Create your video, and now you have 2 pieces of evidence for your Arduino Basic badge!

Estimated Time: One to two class periods.

Some tips along the way: Take video of your final project, and get an instructor to visually check out your project, if you can. Always create a “demo video” of all of your projects. Why? They can be used as evidence of completion. One demo video can be enough evidence to receive numerous badges. Only needs to be about 30 seconds to 1 minute.

Earn Your Badges:  When you’re done, earn your badge!

7c865707c5d1a0f62c98afeff04c9c79_13

 

Leave a Reply