Arduino Mega2560 as ISP to program another Arduino Mega2560

Couple more things:

  1. What exactly do you mean by "It didn't work"? Be specific about what exactly you saw on the bottom terminal of the Arduino IDE window and on the LEDs of the ISP-side board.

  2. Look at the page linked by cyclegadget but also this tutorial:
    http://www.instructables.com/id/How-to-use-Arduino-Mega-2560-as-Arduino-isp/

  3. You can use either the Mega board or the Uno board as your ISP board. Both should work equally effectively, as long as you make sure to first do a standard sketch upload of the "ArduinoISP" sketch to your chosen ISP board.

  4. A note: Remember, SS from the ISP board -> Reset pin of the TARGET board always. If you look at the tutorials, you'll understand why the target's reset pin is used.

  5. For your target, are you trying to program the chip on an Arduino Mega board or just onto your self-made/barebones Atmega2560 circuit?

  6. If you are using an Arduino Mega board as the target, be sure to connect to the pin labeled "RESET" on the board.