There are two Arduino Mega 2560. How can I upload a sketch to one of the Arduino using a USB cable, a PC and the other Arduino?

Sketches from a PC are not downloaded to one of the Arduino, but you can interact with it from another Arduino (give a signal, flash a light bulb). But specifically you need to load the program on the second Arduino. How can I do that?

    1 answer 1

    Connect the second one via ICSP, first upload the Arduino as ISP sketch to the first Arduino and flash the bootloader for Mega to the second. After that, the second can be connected via USB-cable in the same way as a regular Arduino.