This document explains how to connect your LilyPad Arduino board to a computer and upload your first sketch.
On this page... (hide)
In this tutorial, we assume you're using a LilyPad Arduino Main Board, Simple Board, or SimpleSnap. This tutorial will also work for the LilyPad Arduino Protosnap boards: the ProtoSnap LilyPad Development Board and the Protosnap LilyPad Simple Board. If you have a LilyPad Arduino USB, read the corresponding page in the getting started guide for setup instructions.
You'll also need a standard mini USB cable and an FTDI board.
Get the latest version from the download page.
When the download is finished, extract all of the contents of the .zip file to a location you will remember. The Desktop or the Program Files folder are good locations.
Once the .zip file is extracted to a folder titled something like "arduino - 1.0.x", double-click the folder to open it. Make sure that there are a few files and sub-folders inside it including an arduino.exe file.
Attach the FTDI board to your LilyPad Arduino board. Attach one end of the USB cable to your FTDI board and the other end to a USB port on your computer.
You will need to install the drivers for the FTDI board that enables you to program the LilyPad Arduino. You need to download the latest version of the drivers from the FTDI website.
Scroll down to the middle of this page, where there is a table listing drivers for different computers. Click on the most recent driver that is compatible with your computer.
If your computer is using Windows 7, Windows Vista, Windows XP, or an earlier operating system, see this website to determine whether you should use the x86 (32 bit) or x64 (64 bit) drivers. If your computer is using Windows 8 or a later operating system, you should download the x64(64 bit drivers).
When the download is finished, extract all of the contents of the .zip file to a location you will remember.
Follow the guide on the FTDI website that corresponds to your operating system to complete the installation process.
You'll need to restart your computer after installing the drivers.
Browse to your folder where you saved the Arduino software and double-click the arduino.exe file to open the software. (Note: if the Arduino software loads in the wrong language, you can change it in the preferences dialog. See the environment page for details.)
Open the LED blink example sketch: File > Examples > 1.Basics > Blink.
You'll need to select the entry in the Tools > Board menu that corresponds to your LilyPad Arduino. If your board was purchased in 2012 or later, you should select "LilyPad Arduino w/ ATmega328 from this menu".
Select the correct serial port from the Tools > Serial Port menu. This tells the Arduino software which USB port your LilyPad Arduino is attached to. On a PC this will be the highest numbered "COM" port. It is likely to be COM3 or higher.
To find out definitively which port your LilyPad Arduino is connected to, you can disconnect your LilyPad board and re-open the menu; the entry that disappears should be the LilyPad board. Reconnect the board and select that serial port.
Now, click the "Upload" button in the Arduino environment. Wait a few seconds - you should see the RX and TX leds on the FTDI board flashing. If the upload is successful, the message "Done uploading." will appear in the status bar.
A few seconds after the upload finishes, you should see the LED on the board start to blink (in green). If it does, congratulations! You've gotten your LilyPad Arduino up-and-running.
If you have problems, see the troubleshooting suggestions.
The text of the Arduino getting started guide is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the guide are released into the public domain. The text of the Arduino getting started guide is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the guide are released into the public domain.