The Mega 2560 is a micro-controller board base on the CH340. It has 54 digital input/output pins (of which 15 can be used as PWM outputs), 16 analog inputs, 4 UARTs (hardware serial ports), a 16 MHz crystal oscillator, a USB connection, a power jack, an ICSP header, and a reset button. It contains everything need to support the micro-controller; simply connect it to a computer with a USB cable or power it with a AC-to-DC adapter or battery to get start. The Mega is compatible with most shields design for the Duemilanove or Diecimila.
The Mega 2560 is an update to the Mega, which it replaces. The Mega2560 differs from all preceding boards in that it does not use the FTDI USB-to-serial driver chip. Instead, it features the CH340 programmed as a USB-to-serial converter.
Revision 2 of the Mega2560 board has a resistor pulling the 8U2 HWB line to ground, making it easier to put into DFU mode.
Revision 3 of the board has the following new features :
1.0 pinout: added SDA and SCL pins that are near to the AREF pin and two other new pins place near to the RESET pin, the IOREF that allow the shields to adapt to the voltage provide from the board. In future, shields will be compatible both with the board that use the AVR, which operate with 5V and with the Due that operate with 3.3V. The second one is a not connect to pin, that is reserved for future purposes.
Stronger RESET circuit.
Atmega 16U2 replace the 8U
Package Includes :
1 x?MEGA 2560 R3 Improved Version CH340G Board
Specifications and Features :
- Microcontroller CH340
- Operating Voltage 5V
- Input Voltage (recommended) 7-12V
- Input Voltage (limits) 6-20V
- Digital I/O Pins 54 (of which 15 provide PWM output)
- Analog Input Pins 16
- DC Current per I/O Pin 40 mA
- DC Current for 3.3V Pin 50 mA
- Flash Memory 256 KB of which 8 KB used by bootloader
- SRAM 8 KB
- EEPROM 4 KB
- Clock Speed 16?MHz
- Dimensions : 111 x 54 x 12 (LxWxH) mm.
About Mega 2560 :
The power pins are as follows:
VIN – The input voltage to the board when it’s using an external power source (as opposed to 5 volts from the USB connection or other regulated power source). You can supply voltage through this pin, or, if supplying voltage via the power jack, access it through this pin.
5V – This pin outputs a regulated 5V from the regulator on the board. The board can be supplied with power either from the DC power jack (7 – 12V), the USB connector (5V), or the VIN pin of the board (7-12V). Supplying voltage via the 5V or 3.3V pins bypasses the regulator, and can damage your board. We don’t advise it.
3V3 – A 3.3 volt supply generated by the on-board regulator. Maximum current draw is 50 mA.
GND – Ground pins.
IOREF – This pin on the board provides the voltage reference with which the microcontroller operates. A properly configured shield can read the IOREF pin voltage and select the appropriate power source or enable voltage translators on the outputs for working with the 5V or 3.3V.
The CH340 has 256 KB of flash memory for storing code (of which 8 KB is used for the bootloader); 8 KB of SRAM and 4 KB of EEPROM (which can be read and written with the EEPORM libary).
Each of the 54 digital pins on the Mega can be use as an input or output, using pinMode(),digitalWrite() and digitalRead() functions. They operate at 5 volts. Each pin can provide or receive a maximum of 40 mA and has an internal pull-up resistor (disconnected by default) of 20-50 kOhms.
some pins have specialized functions :
Serial?: serial0: (RX) and 1 (TX), Serial1: 19 (RX) and 18 (TX), Serial2: 17 (RX) and 16 (TX); Serial3: 15 (RX) and 14 (TX). Used to receive (RX) and transmit (TX) TTL serial data. Pins 0 and 1 are also connect to the corresponding pins of the ATmega16U2 USB-to-TTL Serial chip.
External Interrupts : 2 (interrupt 0), 3 (interrupt 1), 18 (interrupt 5), 19 (interrupt 4), 20 (interrupt 3), and 21 (interrupt 2). These pins can be configure to trigger an interrupt on a low value, a rising or falling edge, or a change in value. See the attachInterrupt() function for details.
PWM?: 2 to 13 and 44 t