The MEGA 2560 is designed for more complex projects. With 54 digital I/O pins, 16 analog inputs and a larger space for your sketch it is the recommended board for 3D printers and robotics projects.
The Mega 2560 is a microcontroller board dependent on the ATmega2560. It has 54 advanced info/yield pins (of which 15 can be utilized as PWM yields), 16 simple information sources, 4 UARTs (equipment sequential ports), a 16 MHz gem oscillator, a USB association, a force jack, an ICSP header, and a reset button. It contains all that expected to help the microcontroller; just interface it to a PC with a USB link or force it with an AC-to-DC connector or battery to begin. The Mega 2560 board is viable with most shields intended for the Uno and the previous sheets Duemilanove or Diecimila.
The Mega 2560 is an update to the Arduino Mega, which it replaces.
Utilize your Arduino Mega 2560 on the Arduino Desktop IDE
In the event that you need to program your Arduino Mega 2560 while disconnected you need to introduce the Arduino Desktop IDE
Interface your board
Associate your Mega2560 load up with A B USB link; now and again this link is known as a USB printer link
The USB association with the PC is important to program the board and not simply to control it up. The Mega2560 naturally draw power from either the USB or an outer force supply. Interface the board to your PC utilizing the USB link. The green force LED (named PWR) should go on.
Open your first sketch
Open the LED flicker model sketch: File > Examples >01.Basics > Blink.
Select your board type and port
You’ll have to choose the passage in the Tools > Board menu that relates to your Arduino board. You have a Mega2560, subsequently it has an ATmega2560 microcontroller, chose as a matter of course as processor.
Select the sequential gadget of the board from the Tools | Serial Port menu. This is probably going to be COM3 or higher (COM1 and COM2 are normally held for equipment sequential ports). To discover, you can detach your board and re-open the menu; the section that vanishes should be the Arduino board. Reconnect the board and select that sequential port.
Transfer the program
Presently, essentially click the “Transfer” button in the climate. Stand by a couple of moments – you should see the RX and TX leds on the board blazing. In the event that the transfer is effective, the message “Done transferring.” will show up in the status bar.
A couple of moments after the transfer completes, you should see the pin 13 (L) LED on the board begin to squint (in orange). In the event that it does, congrats! Your barricade is and-running. On the off chance that you have issues, it would be ideal if you see the investigating proposals.