|
|
SF Bay Area (USA)
Offline
Faraday Member
Karma: 78
Posts: 5453
Strongly opinionated, but not official!
|
 |
« Reply #1 on: March 07, 2013, 09:04:35 pm » |
It doesn't look like that board has the "auto reset" capability, so a successful upload is dependent on careful (or lucky) timing of manually pressing the reset switch. Are you doing that?
|
|
|
|
|
Logged
|
|
|
|
|
USA
Offline
Jr. Member
Karma: 0
Posts: 66
|
 |
« Reply #2 on: March 07, 2013, 09:16:46 pm » |
The one on the instructables doesn't have a female header on pin 1, but mine does. I think that's what you mean. Mine has a female header on pin 1 and is also pulled high by a 10K resister. Also, I have added a 10K resister to pins 2 and 3 (tx and rx). Basically, the board is a duplicate of the breadboard with oscillator @ http://www.modsbyus.com/use-the-ftdi-basic-breakout-board-to-program-an-atmega328p-pu-with-optiboot/minus the female headers.
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Melbourne, Australia
Offline
Shannon Member
Karma: 218
Posts: 13896
Lua rocks!
|
 |
« Reply #3 on: March 07, 2013, 09:33:31 pm » |
Those photos are incredibly blurred. And the lighting? Nice idea, how did you drill the holes? I tried to make a circuit board, that part went OK but drilling holes in a straight line was pretty-much impossible. I can't comment on why you can't upload as it is more-or-less impossible to see what you have done exactly, sorry. This page might help, perhaps: http://www.gammon.com.au/forum/?id=11637
|
|
|
|
|
Logged
|
|
|
|
|
USA
Offline
Jr. Member
Karma: 0
Posts: 66
|
 |
« Reply #4 on: March 07, 2013, 09:45:30 pm » |
Sorry about the image quality. Here are some new pictures. Better lighting and not blurry. I drilled the holes by hand with a dremmel.
|
|
|
|
|
Logged
|
|
|
|
|
USA
Offline
Jr. Member
Karma: 0
Posts: 66
|
 |
« Reply #5 on: March 07, 2013, 10:00:50 pm » |
I just looked over everything on the link you gave me. As far as I can tell I have everything in order based on what you have there. I have been to your site many times and used the resources there. Great site. I don't have a problem uploading a sketch on a breadboard, just on this board. From what I can tell, this seems to be a reset issue. If I remove the 328 and breadboard it, then program it with a sketch that has serial output, I can see the output in a serial monitor. So, I know that part is working. In the picture you will notice that I don't have a reset button. That is because I removed it to be sure the wasn't an issue with the button. However, before I removed the button I did try, for quite some time, to do a manual reset. That was also unsuccessful.
|
|
|
|
|
Logged
|
|
|
|
|
Upstate NY
Offline
Full Member
Karma: 2
Posts: 164
|
 |
« Reply #6 on: March 07, 2013, 10:02:31 pm » |
The link you have shown using the oscillator is WRONG. The capacitors on the crystal should be 22pf not 22 microfarads.
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Melbourne, Australia
Offline
Shannon Member
Karma: 218
Posts: 13896
Lua rocks!
|
 |
« Reply #7 on: March 07, 2013, 10:03:02 pm » |
Are you using the reset capacitor? If not, I think you indeed have a problem with resetting it.
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Melbourne, Australia
Offline
Shannon Member
Karma: 218
Posts: 13896
Lua rocks!
|
 |
« Reply #8 on: March 07, 2013, 10:03:51 pm » |
The link you have shown using the oscillator is WRONG. The capacitors on the crystal should be 22pf not 22 microfarads.
Hopefully they are 22 pF. They look a bit small for 22 uF.
|
|
|
|
|
Logged
|
|
|
|
|
USA
Offline
Jr. Member
Karma: 0
Posts: 66
|
 |
« Reply #9 on: March 07, 2013, 10:09:01 pm » |
JodO: The caps are 22pf. Nick: I am using the reset cap. It is in series with dtr on my breadboard.
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Melbourne, Australia
Offline
Shannon Member
Karma: 218
Posts: 13896
Lua rocks!
|
 |
« Reply #10 on: March 07, 2013, 10:16:41 pm » |
Hard to say what is wrong then. Try measuring voltages. I don't suppose you have a scope or logic analyzer? I would be checking reset is being brought low temporarily, and that you see data on the Tx/Rx lines.
Also you could set the "CLKOUT" fuse and check that the clock is running.
|
|
|
|
|
Logged
|
|
|
|
|
USA
Offline
Jr. Member
Karma: 0
Posts: 66
|
 |
« Reply #11 on: March 07, 2013, 10:22:23 pm » |
I wish I had an oscilloscope! However, I don't. I will check that reset is being pulled low, but that wont be till tomorrow unfortunately. I just don't understand why it would pull low while on the breadboard but not on the board I made. We will see what further testing shows tomorrow. Till then, Thanks for your help.
|
|
|
|
|
Logged
|
|
|
|
|
USA
Offline
Jr. Member
Karma: 0
Posts: 66
|
 |
« Reply #12 on: March 08, 2013, 04:14:24 pm » |
Ok, so.. The reset pin is being pulled low. I have tried using various valued caps in series with the DTR and also tried using a 10K resister to ground with the series cap, and have gotten no where. If I remove the DTR wire from the reset pin then I get avrdude: stk500_getsync(): not in sync: resp=0x00. Any other suggestions?
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 245
Posts: 16515
Available for Design & Build services
|
 |
« Reply #13 on: March 08, 2013, 04:43:09 pm » |
Any chance you have Rx & Tx swapped?
|
|
|
|
|
Logged
|
|
|
|
|
USA
Offline
Jr. Member
Karma: 0
Posts: 66
|
 |
« Reply #14 on: March 08, 2013, 04:46:47 pm » |
I wish it were that simple. I have rx to pin 3 and tx to pin 2.
|
|
|
|
|
Logged
|
|
|
|
|
|