Arduino Mega as ISP

Continuing the discussion from ProjectABE (ArduBoy Emulator) released!:

did you put an capacitor between +5v and RESET pin on the Mega?

Some say it’s required to disable the auto reset on serial connection.

Based on Nick Gammon’s page http://www.gammon.com.au/bootloader

Mega <——>Target

D10<——>Reset
D51<——>MOSI
D50<——>MISO
D52<——>SCK
Gnd<——>Gnd
+5V<——>VCC

1 Like

I didn’t use the capacitor as I thought I didn’t need it (and I didn’t have one!). Might find my Arduino and use it instead.

You don’t need one for Arduboy, Leonardo, Micro or Pro Micro. I’m assuming that one of those the target is.

I’m also assuming that the idea is to use the ArduinoISP example sketch to burn the bootloader. I’m not sure the given table is the standard wiring of the example sketch but I think It may be easier to stick to the standard wiring (or old style wiring)

The target is an Arduboy.

What is the ‘old style’ wiring? Ian using the standard Arduino code but on a Mega.

Apparently you can use D53 as Reset …

Source
http://microfluidics.utoronto.ca/trac/dropbot/wiki/BurningTheBootloader

Mega <——>Target

D53<——>Reset
D51<——>MOSI
D50<——>MISO
D52<——>SCK
Gnd<——>Gnd
+5V<——>VCC

OK … I might give that a go. I have also found my old Uno. Its been neglected since I got the Arduboy.

Success when using my Arduino Uno.

Thanks guys.

2 Likes

Now you can checkout @Mr.Blinky’s bootloader :wink:

1 Like

Might need to hit you up for some of those pogo pins … I nearly ran out of hands fixing this!

2 Likes

using pins 11, 12 and 13 for MOSI, MISO and SCK

Congrats! now try out my custom bootloader :wink: You don’t wanna go back once you tried it :smile:

2 Likes

Does that mean we can splat a ‘[Solved]’ on this?

Ask the nearest cat if you can borrow its paws.

1 Like

Not really as I did it with an Arduino - not the Mega.

1 Like

Hrm, fair point.


I have an Uno lying around as well, it would be good to know how to turn an Uno into an Arduboy bootloader overwrite thingy. Maybe that ought to be your next magazine article?

There is a good article here > Bring your Arduboy back from the dead (burn bootloader)

1 Like

So you just use the Uno loaded with ‘Arduino as ISP’ instead of a USBasp and then somehow figure out the wiring?


Nevermind, I found this:
https://www.arduino.cc/en/Tutorial/ArduinoISP

It explains the wiring for an Uno.
(Incidentally it also discusses the ‘old style wiring’ mentioned by @Mr.Blinky.)

Right … my mistake, part of the conversation happened in the ProjectABE thread and it listed a similar / same link.

1 Like

Yes it does - its what I used.

These puppies have your name on them… I just need to figure some clips.

2 Likes