Arduino Mega 2560/robotigs/icons/login_key.png    alt  

This Arduino Mega 2560 board contains an Atmel ATmega2560 chip (datasheet & pinmapping). This µcontroller has four 8-bit PWM Channels and Six/Twelve PWM Channels with Programmable Resolution from 2 to 16 Bits. Each of the 54 digital pins on the Arduino 2560 Mega can be used as an input or output. In addition, some pins have specialized functions. Gebruik de Arduino IDE om dit kaartje te programmeren. (Language Reference).

  • Externe interrupts
  • Interrupts zijn pennen die een onmiddelijke actie in de processor veroorzaken. De pennen kunnen worden geprogrammeerd om te reageren op: steigende flank, vallende flank of op beiden. De Arduino IDE kent voor de externe interrupts standaard het attachInterrupt commando. Op een Arduino Uno kan dat uitsluiten pin 2 of pin 3 zijn. pins
    2interrupt 0
    3interrupt 3
    18interrupt 5
    19interrupt 4
    20interrupt 3
    21interrupt 2

  • Voeding
  • 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. Drawable power for projects: USB=100mA, Mega=400mA µcontroller

    The Arduino Mega has a resettable polyfuse that protects your computer`s USB ports from shorts and overcurrent. Although most computers provide their own internal protection, the fuse provides an extra layer of protection. If more than 500 mA is applied to the USB port, the fuse will automatically break the connection until the short or overload is removed. The recommended power range is 7 to 12 volts, by plugging a 2.1mm center-positive plug into the board`s power jack.Vin is not exactly the same as the external positive power input. The jack also has a diode, to protect against reverse polarity. Vin does not have this diode. But other than that, they are the same.

    Each pin operates at 5 volts and can provide or receive a maximum of 40 mA and has an internal pull-up resistor (disconnected by default) of 20-50 kOhms.

  • Bordje
  • This circuit-board contains 4 on-board LEDs:
    Name Color Pin Rem
    On Green - Power on
    L Yellow D13 User LED, high=on, low=off
    TX Yellow D00 Transmit serial interface TX0
    RX Yellow D01 Receive serial interface RX0

Serial 0: 00 (RX0) and 01 (TX0);
Serial 1: 19 (RX1) and 18 (TX1);
Serial 2: 17 (RX2) and 16 (TX2);
Serial 3: 15 (RX3) and 14 (TX3).
Serials are used to receive (RX) and transmit (TX) TTL serial data. Pins 0 and 1 are also connected to the corresponding pins of the ATmega16U2 USB-to-TTL Serial chip and thereby also to 2 on-board LED`s.

PWM: 2 to 13 and 44 to 46. Provide 8-bit PWM output with the analogWrite() function.

The Mega2560 has 16 analog inputs, each of which provide 10 bits of resolution (i.e. 1024 different values). By default they measure from ground to 5 volts, though is it possible to change the upper end of their range using the AREF pin and analogReference() function.

AREF. Reference voltage for the analog inputs. Used with analogReference(). Reset. Bring this line LOW to reset the microcontroller. Typically used to add a reset button to shields which block the one on the board.

SPI connections are: 50=MISO, 51=MOSI, 52=SCK and 53=CS.

You can find additional information on the pin allocations in the under mentioned programs using this controller.


Algemene informatie over dit onderdeel
Prijs indicatie  €  9,66
Pinout tekst  Connections
Menu groep  µControllers
Laatste verandering  2020-03-02

Software voor dit onderdeel
BolderbotMiniParty.ino  Arduino Mega 2560
CMU2mega-01  Arduino Mega 2560
ESP14-1.ino  Arduino Mega 2560
FloraGarden2560-01.ino  Arduino Mega 2560
FloraGreenhouse2560-01.ino  Arduino Mega 2560
FloraPropagator2560-02.ino  Arduino Mega 2560
HelloWorld.ino  Arduino Uno Rev3

Robots waar dit onderdeel in zit
Flora couveuse1
Flora couveuse3
    Harbitron robot
    LoRa Ping
    mrBoldermin brains
    Just wait till your 57....
    Afb 1: Mega2560 pins

    Just wait till your 57....
    Afb 2: MEGA 2560

    Just wait till your 57....
    Afb 3: Mega 2560 back