Brisbane, Queensland
Offline
Newbie
Karma: 0
Posts: 26
Hello
|
 |
« on: October 13, 2011, 10:45:33 pm » |
Hello,
I bought a lilypad and it did not come with an FTDI board (it appeared on the website that it did).
I was kind of hoping to use it over the weekend, so it's impossible for me to order one at the moment.
Can I use my duemilanove to ICSP the lilypad?
It appears like I can, but I'm not too sure on the specifics, especially can arduino sketches still be uploaded via the ICSP?
What wiring and software is needed?
I've read a few of the tutorials but I think I might be in over my head, unless someone can lay it out in easy to understand steps.
Also, please be kind, I'm very new to arduino and electronics in general.
Thanks
Ashley
|
|
|
|
|
Logged
|
|
|
|
|
Southern California
Offline
Sr. Member
Karma: 5
Posts: 466
I like blinky lights
|
 |
« Reply #1 on: October 14, 2011, 01:06:16 am » |
Hi Ashley, This should do what you want: http://arduino.cc/en/Tutorial/ArduinoISPUse the first example, "Circuit (targeting Arduino Duemilanove or Diecimila)", with your Lilypad on top. Alternatively, if you just want to upload sketches to the Lilypad and don't want to go through all the ICSP stuff you could just remove the ATMega328 chip from your Duemilanove then jumper across wires connecting +5v, ground, reset, TX and RX and program it directly. Good luck!
|
|
|
|
« Last Edit: October 14, 2011, 01:22:59 am by Chris Magagna »
|
Logged
|
|
|
|
|
Brisbane, Queensland
Offline
Newbie
Karma: 0
Posts: 26
Hello
|
 |
« Reply #2 on: October 14, 2011, 01:10:22 am » |
That's great, thank you, I had already read that link but wasn't sure it is what I wanted. I understand the connections they have made, but I read that it is used to burn the bootloader, not to program the arduino with sketches. How do I use this method to copy sketches to my lilypad? Cheers  Ash
|
|
|
|
|
Logged
|
|
|
|
|
Southern California
Offline
Sr. Member
Karma: 5
Posts: 466
I like blinky lights
|
 |
« Reply #3 on: October 14, 2011, 01:15:33 am » |
Sorry, I hit 'post' on the first reply too soon. I've edited it with more info.
Chris
|
|
|
|
|
Logged
|
|
|
|
|
Brisbane, Queensland
Offline
Newbie
Karma: 0
Posts: 26
Hello
|
 |
« Reply #4 on: October 14, 2011, 01:18:41 am » |
Oh of course! that makes perfect sense! obviously I will change the board in the IDE to reflect the lilypad, and not the Duemilanove, correct? Thank you so much for your help 
|
|
|
|
|
Logged
|
|
|
|
|
Southern California
Offline
Sr. Member
Karma: 5
Posts: 466
I like blinky lights
|
 |
« Reply #5 on: October 14, 2011, 01:22:06 am » |
That should work!
Chris
|
|
|
|
|
Logged
|
|
|
|
|
Brisbane, Queensland
Offline
Newbie
Karma: 0
Posts: 26
Hello
|
 |
« Reply #6 on: October 14, 2011, 01:23:45 am » |
Thanks heaps, I will try it in a bit and post back.
|
|
|
|
|
Logged
|
|
|
|
|
Brisbane, Queensland
Offline
Newbie
Karma: 0
Posts: 26
Hello
|
 |
« Reply #7 on: October 14, 2011, 03:46:46 am » |
I hadn't installed arduino on this new computer yet, so I went through the process and I can't get the program to communicate with the boards. The RX flashes 3 times then nothing. after a timeout I get the classic avrdude: stk500_getsync(): not in sync: resp=0x00 I tried installing the FTDI drivers that came with the arduino software, and the com port shows up in control panel (com 6). I also tried installing the drivers directly from the FTDI website. Restarting the computer after every step of course to try and eliminate as many variables as possible. I've also been googling this problem all afternoon and tried all suggestions such as hitting the reset button etc etc etc. I'm just about to give up! I can't even tell if I can program the lilypad with connections I've made (they are connected correctly!) 
|
|
|
|
|
Logged
|
|
|
|
|
Southern California
Offline
Sr. Member
Karma: 5
Posts: 466
I like blinky lights
|
 |
« Reply #8 on: October 14, 2011, 09:31:41 am » |
If you disconnect the Lilypad and plug the ATMega328 back in the Duemilanove can you program it r do you have the same problem?
|
|
|
|
|
Logged
|
|
|
|
|
Brisbane, Queensland
Offline
Newbie
Karma: 0
Posts: 26
Hello
|
 |
« Reply #9 on: October 14, 2011, 06:45:16 pm » |
First thing I tried; I'm lead to beleive it is a computer problem or maybe the FTDI chip is somehow damaged.
I will try it on another PC and report back.
|
|
|
|
|
Logged
|
|
|
|
|
Brisbane, Queensland
Offline
Newbie
Karma: 0
Posts: 26
Hello
|
 |
« Reply #10 on: October 14, 2011, 07:35:09 pm » |
Okay so I made a mistake. I *can* program the duemilanove with this pc.
To clarify the connections are as follows
The VCC, GND, RESET, TX and RX pins are all connected from the Duemilanove board to the Lilypad's header.
It seems so simple.
What am I missing?
|
|
|
|
|
Logged
|
|
|
|
|
Southern California
Offline
Sr. Member
Karma: 5
Posts: 466
I like blinky lights
|
 |
« Reply #11 on: October 14, 2011, 08:01:03 pm » |
Does the Lilypad work if you connect vcc and ground (hopefully it has the default program of blinking the LED on pin 9). If that works, can you connect the reset line and see if the Duemilanove's reset button can reset the Lilypad?
|
|
|
|
|
Logged
|
|
|
|
|
Brisbane, Queensland
Offline
Newbie
Karma: 0
Posts: 26
Hello
|
 |
« Reply #12 on: October 15, 2011, 12:03:48 am » |
The reset button on the duemilanove does not reset the lilypad. the lilypad's light just continues to blink. when I press the reset button on the lilypad itself the light goes off while I hold it in.
Question, should I be jumpering the connections on the duemilanove board from the ic socket directly or from the header pins? because I'm currently taking them from the header pins.
|
|
|
|
|
Logged
|
|
|
|
|
Southern California
Offline
Sr. Member
Karma: 5
Posts: 466
I like blinky lights
|
 |
« Reply #13 on: October 15, 2011, 01:42:15 am » |
Definitely the header pins; no need to go to the IC socket and risk damage.
Where are you connecting reset? I just looked at the Lilypad schematic and it looks like it should go to the DTR header pin? If so, is there any way you can try to bypass the capacitor and resistor since the Duemilanove will already have it?
|
|
|
|
|
Logged
|
|
|
|
|
Brisbane, Queensland
Offline
Newbie
Karma: 0
Posts: 26
Hello
|
 |
« Reply #14 on: October 15, 2011, 01:58:45 am » |
That was my thinking, I thought maybe the 2x resistor cap combo might be the cause. Will try to figure it out and report back
Thanks again for your help!
|
|
|
|
|
Logged
|
|
|
|
|
|