Arduino Forum

Development => Other Hardware Development => Topic started by: simonepsp on Jun 01, 2014, 12:15 pm

Title: Can't upload sketches to my homemade arduino
Post by: simonepsp on Jun 01, 2014, 12:15 pm
Hi,

(http://oi57.tinypic.com/a9kzv5.jpg)
I made this arduino for a school project but I can't get it to work. In fact I can't upload sketches into.
That's what I have:
- Arduino serial2USB light adapter ( http://arduino.cc/en/Main/USBSerial)
- My custom arduino PCB
- Arduino 1.0.5

What I'm trying to do:
I'm trying to upload a sketch on it using Arduino IDE and Arduino's Serial2USB Light Adapter.

Error I get on Arduino IDE
avrdude: stk500_getsync(): not in sync: resp=0x00

Notes
- Drivers are installed correctly and COM is successfully set.
- ATMEGA 328P-PN is already programmed with Optiboot
- When I press Reset button nothing happens.

SERIAL- PCB CONNECTIONS
5V- 5V
GND-GND
TX-RX
RX-TX
RESET/EXT-  DTR

(http://arduino.cc/en/uploads/Main/USBSerial.jpg)

PCB SCHEMATICS
(http://oi58.tinypic.com/os6d5c.jpg)

If you need further informations please ask :)
Thank you for your help
Title: Re: Can't upload sketches to my homemade arduino
Post by: spycatcher2k on Jun 01, 2014, 12:38 pm
You don't have your reset pin connected to anything that will reset the chip!
Title: Re: Can't upload sketches to my homemade arduino
Post by: simonepsp on Jun 01, 2014, 01:03 pm
thanks. What should I do to fix this error?
Title: Re: Can't upload sketches to my homemade arduino
Post by: spycatcher2k on Jun 01, 2014, 01:07 pm
refer to the reference schematic at http://arduino.cc/en/uploads/Main/Arduino_Uno_Rev3-schematic.pdf
Title: Re: Can't upload sketches to my homemade arduino
Post by: simonepsp on Jun 01, 2014, 01:10 pm
so there's a problem with reset button? :| I don't understand
Title: Re: Can't upload sketches to my homemade arduino
Post by: spycatcher2k on Jun 01, 2014, 01:19 pm
Pin 1 of the 328 does not have any way to pull it LOW for a RESET.
Title: Re: Can't upload sketches to my homemade arduino
Post by: simonepsp on Jun 01, 2014, 01:45 pm
sorry, I'm not an electronic and I don't understand what should I do :)

Could you explain me ?
Thank you :)
Title: Re: Can't upload sketches to my homemade arduino
Post by: simonepsp on Jun 01, 2014, 05:52 pm
I'm using a jumper to connect DTR  to RESET pin and ATMEGA 1st PIN (RESET).
I've also used a capacitor and a 10kOhm res.

What is wrong?
(see first image on first post :) )
Title: Re: Can't upload sketches to my homemade arduino
Post by: simonepsp on Jun 04, 2014, 12:23 am
Found a fix! There was a connection problem with OSC.
Here's the solution (many thanks to Christian Aschoff of Fritzing forum):

http://fritzing.org/forum/thread/3394/?page=last