Pages: [1]   Go Down
Author Topic: Can't upload sketches to custom Arduino  (Read 1003 times)
0 Members and 1 Guest are viewing this topic.
Belgium
Offline Offline
Full Member
***
Karma: 2
Posts: 211
I love Arduino!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello everyone,

I recently made my custom Arduino with the help of this tutorial:
http://itp.nyu.edu/physcomp/Tutorials/ArduinoBreadboard

I wired everything up like in the tutorial, except the Sparkfun USB to Serial converter, I use the Arduino USB to Serial Converter Light.

Now the problem is that when I try to upload the example Blink sketch, the Arduino IDE 1.0 gives this error:

avrdude: stk500_getsync(): not in sync: resp=0x00

What could be the problem?

I already checked this forum and the internet for solutions, but none of them work.
I've installed this driver: http://arduino.cc/en/uploads/Main/Arduino_USBSerial.zip .

If I look in the device manager, the COM is fine and don't needs an update.
In the Arduino IDE, I've selected COM 7(it's the right COM) and selected Arduino Uno as my board.

I'm using the ATmega328 chip with the Uno Optiboot(it was already when I bought it).

Maybe the problem is that I don't have the Reset pin connected on the USB2Serial board? Only the TX, RX, 5V and GND are connected.

I've also seen that the led on my custom Arduino doesn't flash if I reset it.
And also, the TX and RX leds flash when uploading a sketch.

Things I've tried:

- Upload the sketch and press Reset with different timing
- Selecting different boards in the IDE
- Press reset before uploading the sketch
- Replacing the ATmega328 with another(also with optiboot)
-...

Regards,
Tibo
Logged

Belgium
Offline Offline
Full Member
***
Karma: 2
Posts: 211
I love Arduino!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

It seems like something is wrong on my custom Arduino.
I uploaded the sketch by inserting the chip into my original Arduino Uno, and then it worked.
But when I insert the chip in my custom Arduino, then the led doesn't blink...
Logged

Scotland
Offline Offline
Edison Member
*
Karma: 25
Posts: 1310
Have you had your Arduino fix today?
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Press and hold reset, press upload, when sketch size is shown release reset.

Try That.
Logged

Drew.
http://www.uk-pcb.co.uk - My UK Based PCB Fab & Assembly Company
Design work undertaken
SMD & Thru-Hole assembly

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 206
Posts: 12849
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


There should be two pins on the target processor connected to +5V.  Are they?  When you measure the voltage on each of these two pins is it close to +5V?  With the power disconnected, measure the resistance between the +5V pins and the point where +5V is connected to the breadboard.  Is the resistance close to zero ohms?

There should be two pins on the target connected to GND.  Are they?  With the power disconnected, measure the resistance between the GND pins and the point where GND is connected to the breadboard.  Is the resistance close to zero ohms?

Are you using a crystal or resonator?
Logged

Belgium
Offline Offline
Full Member
***
Karma: 2
Posts: 211
I love Arduino!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Press and hold reset, press upload, when sketch size is shown release reset.

Try That.

No luck with that.

Quote
There should be two pins on the target processor connected to +5V.  Are they?

The VCC, AREF and AVCC go to the 5v rail.

Quote
When you measure the voltage on each of these two pins is it close to +5V?

VCC is 5v, AREF is 0.35v, AVCC is 0.75v.

Quote
measure the resistance between the +5V pins and the point where +5V is connected to the breadboard.  Is the resistance close to zero ohms?
Yes

Quote
There should be two pins on the target connected to GND.  Are they? 

Yes

Quote
With the power disconnected, measure the resistance between the GND pins and the point where GND is connected to the breadboard.  Is the resistance close to zero ohms?

Yes

Quote
Are you using a crystal or resonator?

A crystal



Thanks for helping me!
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 533
Posts: 26951
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

"The VCC, AREF and AVCC go to the 5v rail."
yet
"VCC is 5v, AREF is 0.35v, AVCC is 0.75v."

Something not right there - all should be 5V.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 206
Posts: 12849
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
VCC is 5v, ... AVCC is 0.75v.

Quote
measure the resistance between the +5V pins and the point where +5V is connected to the breadboard.  Is the resistance close to zero ohms?  Yes

That is an impossibility.  If your circuit is wired as you claim then VCC and AVCC have to be at the same voltage.


Argh!  Ninja'd by CrossRoads!
Logged

Belgium
Offline Offline
Full Member
***
Karma: 2
Posts: 211
I love Arduino!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'll take a look at it tomorrow.
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 533
Posts: 26951
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Yeah, had a couple minutes free at just the right time it seems!
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Belgium
Offline Offline
Full Member
***
Karma: 2
Posts: 211
I love Arduino!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Ok I see that I've measured it wrong yesterday. Here are the new results:
Quote
When you measure the voltage on each of these two pins is it close to +5V?
Yes

Quote
With the power disconnected, measure the resistance between the +5V pins and the point where +5V is connected to the breadboard.  Is the resistance close to zero ohm?
It is 0 ohm, but on the point where it connects to the breadboard it is 835 ohm.
So maybe the socket where the chip is inserted is the problem?

Quote

With the power disconnected, measure the resistance between the GND pins and the point where GND is connected to the breadboard.  Is the resistance close to zero ohms?
Yes

I checked the wiring again, and everythig is exact the same as in the tutorial.
« Last Edit: April 12, 2012, 03:49:06 am by TiboJ » Logged

Belgium
Offline Offline
Full Member
***
Karma: 2
Posts: 211
I love Arduino!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

It's working!
I found out that it was the socket that was the problem.

Thanks for helping me!
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 533
Posts: 26951
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Cool.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Pages: [1]   Go Up
Jump to: