BREAKING NEWS

16 October 2015

Arduino mega Datasheet / Tutorial



The Arduino Mega is a microcontroller board in light of the ATmega1280 (datasheet). It has 54 computerized data/yield pins (of which 14 can be utilized as PWM yields), 16 simple inputs, 4 UARTs (equipment serial ports), a 16 MHz precious stone oscillator, a USB association, a force jack, an ICSP header, and a reset catch. It contains everything expected to bolster the microcontroller; essentially join it to a PC with a USB link or power it with an AC-to-DC connector or battery to begin. The Mega is perfect with most shields intended for the Arduino Duemilanove or Diecimila.

The Arduino Mega can be fueled by means of the USB association or with an outside force supply. The force source is chosen naturally.

Outside (non-USB) force can come either from an AC-to-DC connector (divider wart) or battery. The connector can be joined by stopping a 2.1mm focus positive attachment into the board's energy jack. Leads from a battery can be embedded in the Gnd and Vin pin headers of the POWER connector.

The board can work on an outside supply of 6 to 20 volts. In the event that supplied with under 7V, on the other hand, the 5V pin may supply under five volts and the board may be insecure. In the event that utilizing more than 12V, the voltage controller may overheat and harm the board. The prescribed extent is 7 to 12 volts.

The Arduino Mega has various offices for corresponding with a PC, another Arduino, or different microcontrollers. The ATmega1280 gives four equipment UARTs to TTL (5V) serial correspondence. A FTDI FT232RL on the board channels one of these over USB and the FTDI drivers (included with the Arduino programming) give a virtual com port to programming on the PC. The Arduino programming incorporates a serial screen which permits straightforward printed information to be sent to and from the Arduino board. The RX and TX LEDs on the board will streak when information is being transmitted by means of the FTDI chip and USB association with the PC (however not for serial correspondence on pins 0 and 1).

Maybe then requiring a physical press of the reset catch before a transfer, the Arduino Mega is outlined in a manner that permits it to be reset by programming running on an associated PC. One of the equipment stream control lines (DTR) of the FT232RL is joined with the reset line of the ATmega1280 by means of a 100 nanofarad capacitor. At the point when this line is attested (taken low), the reset line drops sufficiently long to reset the chip. The Arduino programming uses this ability to permit you to transfer code by basically squeezing the transfer catch in the Arduino environment. This implies that the bootloader can have a shorter timeout, as the bringing down of DTR can be all around composed with the begin of the transfer.

This setup has different ramifications. At the point when the Mega is joined with either a PC running Mac OS X or Linux, it resets every time an association is made to it from programming (through USB). For the accompanying half-second or somewhere in the vicinity, the bootloader is running on the Mega. While it is modified to disregard twisted information (i.e. anything other than a transfer of new code), it will capture the initial couple of bytes of information sent to the board after an association is opened. In the event that a representation running on the load up gets one-time design or other information when it first begins, ensure that the product with which it conveys holds up a second subsequent to opening the association and before sending this information.

The Mega contains a follow that can be slice to incapacitate the auto-reset. The cushions on either side of the follow can be welded together to re-empower it. It's named "RESET-EN". You might likewise have the capacity to incapacitate the auto-reset by associating a 110 ohm resistor from 5V to the reset line; see this discussion string for points of interest.

Share this:

Post a Comment

 
Back To Top
Distributed By Blogger Templates | Designed By OddThemes