Pages: [1] 2   Go Down
Author Topic: NEED Help with ISP, Mega 2560 to mini pro  (Read 1798 times)
0 Members and 1 Guest are viewing this topic.
USA
Offline Offline
Newbie
*
Karma: 0
Posts: 49
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

so I am having some issues... I think...
reading online I got the pin outs... Not sure if it is right

I do not get any error when it's done uploading but it doesn't seem to output what I want.

the wiring is below
[2560]---[mini pro]
[5v]-----[VCC]
[GND]---[GND]
[30]-----[reset]
[50]-----[12] MISO
[51]-----[11] MOSI
[52]-----[13] SCK

as far as the IDE
Version 1.0
have the Tools -> Board -> "Arduino Mega 2560 or Mega ADK" checked
have the Tools -> Programmer -> "Arduino as ISP" checked

Tried the code on the mega 2560 and worked fine

Also want to double check the PWM pins for the mini pro are 5,6,9,10, and 11

The code is based off http://www.arduino.cc/en/Tutorial/Fading
 
Logged

USA, FL
Offline Offline
God Member
*****
Karma: 14
Posts: 688
A life? Where can I download one of those?
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Are you programming the MEGA or Mini?

At first glance, Tools>Board>Arduino Pro or Pro Mini.........
Logged

//LiNK

USA
Offline Offline
Newbie
*
Karma: 0
Posts: 49
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I am programming the Pro Mini, I've tried changing to Tools>Board>Arduino Pro or Pro Mini
now I get the error "avrdude stk500_getsync() not in sync resp=0x00"
Logged

USA, FL
Offline Offline
God Member
*****
Karma: 14
Posts: 688
A life? Where can I download one of those?
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Are you sure you have the right Pro Mini in the IDE?

If that doesn't work, Google your error message.  Lot's of different things can cause that error, and there are lot's of solutions...
Logged

//LiNK

USA
Offline Offline
Newbie
*
Karma: 0
Posts: 49
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I think it might be a firewall issue. I will keep you guys posted
Logged

USA
Offline Offline
Newbie
*
Karma: 0
Posts: 49
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Do I need a sketch uploaded on the Mega 2560 to use it as a ISP?
Logged

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


Yes.  ArduinoISP.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Try a 1uf capacitor between reset and ground on the Mega. This was the only way I could get the Mega to not auto-reset on a serial connection and successfully program another board.

EDIT: Make sure you program the Mega with the ArduinoISP sketch before adding the capacitor.
Logged

USA
Offline Offline
Newbie
*
Karma: 0
Posts: 49
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

So I downloaded the sketch from http://code.google.com/p/mega-isp/

Changed the heartbeat delay from 40 to 20, still got the same response, tried to add the cap on the mega 2560 between Ground and reset... tried 0.1 uf and 10uf per another forums suggestion. I am still having the same issue.

I've tried changing the baud rate in the ArduinoISP sketch to 19200 per instructable blog

I get a message about expected signature.

I have tried this on two different Mega's 2560 and 3 different Pro Mini's
I have change/verified the wiring to match that of the ArduinoISP sketch.

I really do appreciate the help. I am tempted to give this a break for a while.
Logged

USA
Offline Offline
Newbie
*
Karma: 0
Posts: 49
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Thinking of getting a FTDI USB controller instead. is this any easier to use to program the Mini Pro.
I found one on eBay for 10.99 http://www.ebay.com/itm/FTDI-USB-Controller-5V-3-3V-Firmware-Loader-and-Programmer-Arduino-FREE-SHIPPING-/320969539027?

Please let me know if this is an easier route.


Logged

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


If you post more details (like the actual error message instead of "message about expected signature") we can probably help you get the ATmega2560 working as a programmer.
Logged

USA
Offline Offline
Newbie
*
Karma: 0
Posts: 49
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Got it to work finally.
on the mega I have a cap 4.7 uf between reset and ground... it seems every time I want to flash the pro mini I have to burn the boot loader.

as far as the code on the 2560 I left the delay at 20 and the baud at 19200 as mention in a earlier response.

Thanks for all the help...
Logged

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

it seems every time I want to flash the pro mini I have to burn the boot loader

That usually indicates that the fuses (lock-bits) are not correct.
Logged

USA
Offline Offline
Newbie
*
Karma: 0
Posts: 49
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Is that something I can change on a software level or is this a hardware issue?

I am still a new to embed programming
Logged

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


The easiest way to ensure everything is set correctly is to use the Arduino IDE to burn the bootloader.
Logged

Pages: [1] 2   Go Up
Jump to: