having issues uploading code to lilypad
I'm using USB ttlpl2303hx to upload code to my lilypad . have all the packages installed everything
Sketch uses 15906 bytes (51%) of program storage space. Maximum is 30720 bytes.
Global variables use 671 bytes (32%) of dynamic memory, leaving 1377 bytes for local variables. Maximum is 2048 bytes.
An error occurred while uploading the sketch
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xbb
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0xbb
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0xbb
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0xbb
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0xbb
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0xbb
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0xbb
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0xbb
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0xbb
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0xbb
Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.
i get this error idk what to do next help me please !!!!!!!!
lilypad led is blinking just cant upload to it . tried selecting uno , tried holding reset button .
Please describe the connections between the ttlpl2303hx and the Lilypad.
Death9935:
tried holding reset button .
The solution may very well lie with the reset button, but not by holding it.
In order to upload, the bootloader needs to be activated. This is done by resetting the microcontroller. However, the bootloader only runs for a short time before timing out and switching to running your sketch so the reset has to be timed just right during the upload. Normally, we have an auto-reset circuit set up that resets the microcontroller at just the right time during the upload. The auto reset circuit consists of the DTR or RTS on the USB to TTL serial adapter chip connected to the reset pin via a 0.1 uF capacitor. You can use either DTR or RTS, it doesn't matter which. This converts the signal on the DTR or RTS pin into a reset pulse at the right moment of the upload.
If you don't have an auto-reset circuit, you'll need to manually reset your Arduino during the upload. When you don't have that auto-reset, and are resetting manually, you need to get the timing right. If you press the reset button too early, the bootloader will have already timed out by the time the upload starts. The tricky thing is that when you press the "Upload" button in the Arduino IDE, it first compiles your sketch before starting the actual upload. So you need to wait until after the compilation finishes before pressing the reset button. The way to get the timing right is to watch the black console window at the bottom of the Arduino IDE window. As soon as you see something like this:
Sketch uses 444 bytes (1%) of program storage space. Maximum is 30720 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.
press and release the reset button. The upload should now finish successfully.
I have connected TTL (GND )to lilypad(GND wit a marking on lilypad saying b) ( 1st pin)
TTL (5.0v) to lilypad ( VCC ) (3rd pin)
TTL (Rx) to lilypad (RX) (4th pin)
TTL (TX) to lilypad (Tx) (5th pin)
I left the 2nd and 6th pin without any connection ... don't get mad if its wrong connection new to this. I just googled pin diagram of lilypad and made the connections
and I did try the trick of pressing the reset button it didn't work .....
You need to make the connections RX-TX, TX-RX. The reason is that RX stands for "receive" and TX stands for "transmit". So you want to connect the receive pin of the ttlpl2303hx to the transmit pin of the LilyPad and the transmit pin of the ttlpl2303hx to the receive pin of the LilyPad.
I'm assuming your ttlpl2303hx doesn't have the DTR or RTS pin needed for auto reset. For this reason, you'll still need to follow the manual reset instructions from my last reply even after correcting the wiring.
Death9935:
don't get mad if its wrong connection new to this.
No worries about that. I'm just happy if I can be of assistance. I was a beginner going through the same things not so long ago. This stuff is confusing at first but once you get it working it sure is a lot of fun!
I changed the wiring as per ur instructions and pressed the reset button on time . And tried still doesn't upload. Same error ... I was planning to buy REFS52 FT232RL USB TO TTL . Is it this also gonna give me same error . Do i need to have to manually do this reset button or will this work .. should i try buying that or not .. I really am glad for all the help from you . And yes i dont have DTR OR RTS ON MY TTL .. Thank you .