Denmark
Offline
Sr. Member
Karma: 5
Posts: 251
New on the Arduino platform...
|
 |
« on: April 07, 2012, 05:33:20 pm » |
Hi.
I got an Arduino Mega from a friend, it's brand new. He owed me one, since i gave him mine, sitting in a RepRap that i sold him.
The new Arduino Mega 1280 i received works perfectly, i just have a single problem - I cannot program it when it's connected to power trough the DC barrel connector or trough the VIN pin - When trying to upload the program the RX LED blinks three times, and i get this message: "avrdude: stk500_recv(): programmer is not responding"
I have tried a Loopback test, connecting RST to Ground and bridging RX and TX pins (0 and 1) there is fine communication over the FTDI chip.
It's not an genuine Arduino board, but looking at the PCB layout it's 100% based on the older Mega design (FTDI based)
Uploading code without external power connected works just fine, and the Arduino works fine and runs my program with external power connected.
Any advice, i cannot seem to find out what is causing the problem.
// Per.
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Melbourne, Australia
Offline
Shannon Member
Karma: 226
Posts: 14106
Lua rocks!
|
 |
« Reply #1 on: April 07, 2012, 05:58:48 pm » |
My guess is it's something to do with reset. When externally powered it has already reset itself by the time you go to program it.
|
|
|
|
|
Logged
|
|
|
|
|
Denmark
Offline
Sr. Member
Karma: 5
Posts: 251
New on the Arduino platform...
|
 |
« Reply #2 on: April 07, 2012, 06:07:12 pm » |
Toggling the RST pin resets the Arduino just fine, under USB power or External power.
I guess i have to hook up the Oscilloscope to find out what is going on.
It's just interesting this reset-program is only there when on external power.
// Per.
|
|
|
|
|
Logged
|
|
|
|
|
Miramar Beach, Florida
Offline
Faraday Member
Karma: 60
Posts: 3547
|
 |
« Reply #3 on: April 09, 2012, 06:15:09 am » |
What voltage are you putting into Vin?
|
|
|
|
|
Logged
|
|
|
|
|
Denmark
Offline
Sr. Member
Karma: 5
Posts: 251
New on the Arduino platform...
|
 |
« Reply #4 on: April 09, 2012, 01:13:11 pm » |
What voltage are you putting into Vin?
I was using a 12V supply, because i had some exteral stuff connected that needed the 12V supply too. I have tried connecting an adjustable DC power supply now, and when the voltage on VIN gets over 6,75 volts, the communication stops. This is really weird! The 3,3 and 5V voltages on board is within specs. What is happening ?! // Per.
|
|
|
|
|
Logged
|
|
|
|
|
Miramar Beach, Florida
Offline
Faraday Member
Karma: 60
Posts: 3547
|
 |
« Reply #5 on: April 09, 2012, 01:31:24 pm » |
I am not sure. There is another thread that involves usb failures and powering the Mega through the +5v pin. Maybe it has the same problem through Vin also? http://arduino.cc/forum/index.php/topic,82046.0.htmlThe odd number is 6.75v. If you read that thread, that is about the voltage that disables T2. That is the transistor that provides power to the CPU from the usb port. Maybe the regulator on the Mega Vin is not working?
|
|
|
|
|
Logged
|
|
|
|
|
Denmark
Offline
Sr. Member
Karma: 5
Posts: 251
New on the Arduino platform...
|
 |
« Reply #6 on: April 09, 2012, 02:09:43 pm » |
Well i got fed up and whipped out the oscilloscope and tried some stuff out. Here is what happens: When feeding the board a low voltage on VIN the 5V rail looks like this:  And when i turn up the voltage, this happens:  So the voltage regulator and/or Opamp is not happy! I will try to replace some components and see what happens. I'll return with my findings. // Per.
|
|
|
|
|
Logged
|
|
|
|
|
Denmark
Offline
Sr. Member
Karma: 5
Posts: 251
New on the Arduino platform...
|
 |
« Reply #7 on: April 09, 2012, 02:25:45 pm » |
Good guess Nick  ?????
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 2
|
 |
« Reply #8 on: April 09, 2012, 02:46:16 pm » |
Good guess Nick  Try to reset it again.
|
|
|
|
|
Logged
|
|
|
|
|
Miramar Beach, Florida
Offline
Faraday Member
Karma: 60
Posts: 3547
|
 |
« Reply #9 on: April 09, 2012, 05:04:36 pm » |
Well i got fed up and whipped out the oscilloscope and tried some stuff out. (snip) So the voltage regulator and/or Opamp is not happy!
I will try to replace some components and see what happens.
I'll return with my findings.
// Per.
I would guess one or the other is not happy!  Let us know what you find. edit: What time scale are you using there? I can't tell how often that is happening. Never mind. I just saw the time scale in the lower right corner.
|
|
|
|
« Last Edit: April 09, 2012, 05:11:04 pm by SurferTim »
|
Logged
|
|
|
|
|
Global Moderator
Melbourne, Australia
Offline
Shannon Member
Karma: 226
Posts: 14106
Lua rocks!
|
 |
« Reply #10 on: April 09, 2012, 05:12:20 pm » |
It looks a bit like the voltage regulator is oscillating. I believe there is supposed to be a cap on its output to stop that. Maybe that has failed or they used a cheap or under spec one.
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Dallas
Online
Shannon Member
Karma: 129
Posts: 10395
|
 |
« Reply #11 on: April 09, 2012, 05:24:28 pm » |
Good guess Nick  ????? Spam. The miscreant has been removed.
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Melbourne, Australia
Offline
Shannon Member
Karma: 226
Posts: 14106
Lua rocks!
|
 |
« Reply #12 on: April 09, 2012, 05:41:49 pm » |
Oh, rats! So my guess wasn't good?
|
|
|
|
|
Logged
|
|
|
|
|
Nice, France
Offline
Full Member
Karma: 10
Posts: 232
|
 |
« Reply #13 on: October 03, 2012, 12:49:02 am » |
Well i got fed up and whipped out the oscilloscope and tried some stuff out.
When feeding the board a low voltage on VIN the 5V rail looks like this:
It would be interesting to see similar oscilloscope traces when feeding a range of voltages (5.5V - 12V) into the DC jack. Is the 5V stable or does it oscilate? I ask because I wonder what is the optimum wallwart voltage to get - 7V? 9V?
|
|
|
|
|
Logged
|
|
|
|
|
|