Introduction: How to Upload Codes to Lilypad Arduino Without FTDI With Using Arduino Uno [Revised 05.10.2016]

Picture of How to Upload Codes to Lilypad Arduino Without FTDI With Using Arduino Uno [Revised 05.10.2016]

Today, I am going to show you how to upload codes from Arduino IDE from your computer to Arduino Lilypad ATmega328. I used to had a problem with my FTDI module while I am trying to upload any - on Arduino IDE designed - codes from my computer to Lilypad Arduino Atmega328 board.

Actually, you must use your FTDI modules as usual as coding perfectly, easily and directly, but, we buy cheap modules even these are not original, and these may face a major problem for us sometimes and for further... That is not because of original modules produced by FTDI, all about other fake module producers sell as programmer for your MCU that you can see opened topics with full of this problem on some forums such as: this, this, and that.

Today, I am here to show you the only one easy solution that I am using now to program my Lilypad Arduino boards.

The Need List:

  1. Arduino Uno
  2. USB type A-B cable (long enough)
  3. Your Computer Runs Arduino IDE
  4. Lilypad Arduino (Atmega328 embedded)
  5. Male-Female cables
  6. Tiny breadboard for tiny cable connections

Step 1: Remove Atmega 328P From Arduino UNO

Picture of Remove Atmega 328P From Arduino UNO

First of all, plug out your Atmega 328P from your Arduino Uno board with its pins. But, do this in safe! Careful with Atmega 328P's pins. You may use flat nosed screwdriver to use kindly to remove. Don't bend the pins of your chip!

Step 2: Wiring to Lilypad Arduino

Picture of Wiring to Lilypad Arduino

Arduino UNO's Pin 0 (RX) ==> Fourth pin of (see picture) Lilypad Arduino

Arduino UNO's Pin 1 (TX) ==> Fifth pin of (see picture) Lilypad Arduino

Arduino UNO's GND ==> First and Second pins of (see picture) Lilypad Arduino

Arduino UNO's 5V ==> Third pin of (see picture) Lilypad Arduino

Arduino UNO's RESET ==> Sixth pin of (see picture) Lilypad Arduino

Step 3: Arduino IDE Details & Example Code & Result

Picture of Arduino IDE Details & Example Code & Result

On Arduino IDE Settings:

  • Tools --> Lilypad Arduino
  • Processor --> ATmega 328
  • Port --> **your COM port number**

Here is an example code:

<p>void setup() {<br>  // initialize digital pin 13 as an output which Arduino Lilypad have onboarded LED we will use.
  pinMode(13, OUTPUT);
}</p><p>// the loop function runs over and over again forever
void loop() {
  digitalWrite(13, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(2000);              // wait for a second
  digitalWrite(13, LOW);    // turn the LED off by making the voltage LOW
  delay(100);              // wait for a second

Press upload button on Arduino IDE and wait your Lilypad to run a basic blinking LED.


That's all !

Step 4: BONUS: Reading This Instructable

NOTE: This instructable's step is aimed for visually impaired people to hear the sentences to learn what's going on here. Watch the video, it explains all steps.


EduardoS17 (author)2016-10-02

yes there is a mistake, the pins 3.3V on the UNO are in short circuit with the GND pins on Lilypad

Bay Yolal (author)EduardoS172016-10-02

Yes you are right. I just figured out. I am sorry about this. But, I am confused with the working code uploading procedure. This may be half-okey if we add 1kohm or near resistor to break the short-circuit. Because codes are coming through RX TX. But anyway, we may burn our chip unexpectedly. Really sorry about that.

EduardoS17 (author)Bay Yolal2016-10-03

all you need to do is change the wire in pin 5 to the pin 4 on the Lilypad and that's it. it work for me, at the first i got some SYNC issues but then i connect the PIN 1 on lilypad to GND and again PIN 1 (Lilypad) to reset (UNO)

still I am getting this error.

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00.

mnightmaresantillan made it! (author)pavankumarkavvuri2017-12-13

Hey! same problem here but, by accident, discovered that the problem was the Lilypad wasn't restarting when the compiler was trying to upload the code. Here's the trick, when the loading bar hits 100% press the 'reset' button on either Arduino UNO or Lilypad, both should restart the LilyPad.
Some avrdude errors may appear on the log but should successfully upload the program, takes a little time to hit in the right time, but just try it until you get this "error"(image) it means it had problems while uploading the program, but it works!

Ps. After some time doing this 'trick' now the Lilypad restarts by itself (I don't know why) and uploads the program still showing this error

Bay Yolal (author)EduardoS172016-10-04

Thank you so much. I made restoration.

LukeJ39 (author)EduardoS172016-10-03

Wait so you connected the PIN 1 on the lilypad to BOTH the GND AND reset on the UNO? I tried that and it is still out of sync :(

DanielC742 (author)2017-03-28

Excellent job man, it works great!

Thank you.

Bay Yolal (author)DanielC7422017-03-29

Thank you :) I hope it would be helpful for you. (author)2016-08-27

Hey. Warning, there is a mistake! You mixed up 4 and 5 pins on the Lilypod board. I just burned my Arduino Uno board:// There is a picture of its pins the right way

Bay Yolal (author)hackspb.ru2016-11-28

Dear hackspb ru, did you check this new revised connections? Please, tell me. I need your response.

Bay Yolal (author)hackspb.ru2016-10-04

Could you please check this instructable again please? I am really sorry and I apologise of your loose. Forgive me.

Bay Yolal (author)2016-10-04

Hi, be aware of numeric order of Lilypad has been changed reversed up. So the below pin is #1 and top pin is #6. And there is no connection to RESET pin from GND and VDD pins!

Bay Yolal (author)2016-10-04

This instructable is revised on 05.10.2016 (d/m/y) by the author Bay Yolal.

About This Instructable




Bio: Living in Istanbul, answering your questions :)
More by Bay Yolal:How to use Raspberry Pi 3 Model B+ V1.2 For The First Time!How to knit baby booties in only one hour! Ta-Da!How to Extract Walnut
Add instructable to: