Introduction To Arduino Mega 2560

Introduction

 
The Arduino Mega 2560 is the microcontroller board and can be named as the ATMega2560. In the Arduino mega it can have high memory space compared to the Arduino Uno.
 
It can have the 54 digital pins for the input/output pin. In the 54 pins, the 15 pins can be used as the Pulse Width Modulation (PWM). On the analog side it can have the 16 input pins.
 
Components in Arduino Mega2560
  • 16MHZ crystal oscillator
  • USB cable port
  • Reset button
  • Power jack
  • ICSP header.
ARDUINOMEGA2560
 
 
Figure 1: Arduinomega2560.
  • In this way, the Arduino Mega2560 is named.
  • The power can be connected through the DC supply and the AC supply from the battery or the adapter.
Power Pins
 
 
Figure 2: Power Pins
 
The mega2560 can have a power supply of 3.3v and the 5v.
  • 3.3V: A voltage supply generated by the on-board regulator. The maximum current can pass the 50mA.
  • 5V: A 5v supply generates and regulates on the board. The board can be supplied on the DC supply through the power jack or the USB cable.
  • Both supplies are having the values of 07-12v.
  • Vin: An input power can be in the external power of the range. We can supply power through the power jack or USB cables.
  • Gnd: It can be connected to the gnd to gnd of the connection.
Memories
  • The Arduino Mega2560 can have a memory of 256 KB of the storing codes.
  • SRAM=8 KB.
  • EEPRMO=4KB.
Software
  • In the Arduino mega also use the Arduino software of the IDE.
  • In that, we can type the program and change the board in the Arduino mega 2560.
Step 1: Open the Arduino software and click the File, Examples, Basics, then click Blink.
 
 
Figure 3
 
Step 2: Sketch the program in the tab.
 
 
Figure 4
 
Step 3: Before verifying the program change the board in the toolbar through Tools, Board, then Arduino Mega 2560 or Mega ADK.
 
Now we can verify the program that we have given.
 
Then upload the program to the board.
 
 
Figure 5
 
Then finally we can see the output on the board.
 
Output
 
 
Figure 6: Output
 
Read more articles on Arduino:


Recommended Ebook

Printing in C# Made Easy

Download Now!
Similar Articles