Arduino Mega 2560
/robotigs/documentatie/plaatjes/megapins.png /robotigs/documentatie/plaatjes/MEGA2560-1.png /robotigs/documentatie/plaatjes/MEGA2560-2.png 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).

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.