Arduino Forum

Using Arduino => Project Guidance => Topic started by: pighixxx on Feb 02, 2013, 04:06 pm

Title: Arduino MEGA Pinout Diagram
Post by: pighixxx on Feb 02, 2013, 04:06 pm
NEWS!
After a long time I came back.  smiley-grin
I'm redrawing all cards with a new graphics. For those who follow me on twitter is not news!
Here the pinout of ATMEGA2560 shortly the Mega pinout

http://t.co/Od41VYfeVa (http://t.co/Od41VYfeVa)

and the mega pinout:

http://pighixxx.com/megapdf.pdf (http://pighixxx.com/megapdf.pdf)


Quote

Hi All,
as promised, after the version of arduino uno (http://arduino.cc/forum/index.php/topic,146315.0.html), here is the diagram of Mega:

NEW Version 2.0
(http://www.pighixxx.com/pgdev/Temp/mega2.png)
Download Arduino MEGA v2 (http://www.pighixxx.com/downloads/arduino-mega-v2/)

(old versions)

Drawing is 1:1.

(http://www.pighixxx.com/pgdev/Temp/ArduinoMega.png)

for those who asked me, the version with the pin number (not 1:1)

(http://www.pighixxx.com/pgdev/Temp/ArduinoMega_b.png)

and the Pinout of ATMega2560

(http://www.pighixxx.com/pgdev/Temp/ATMEGA2560U.png)

Download as PDF (http://www.pighixxx.com/pgdev/Temp/ArduinoMega.pdf), PDF with pin number (http://www.pighixxx.com/pgdev/Temp/ArduinoMega_b.pdf)
and the ATMega 2560 Pinout (http://www.pighixxx.com/pgdev/Temp/ATMEGA2560U.pdf) PDF.

This is a "beta versions" then any suggestion or correction is accepted.  :)
Title: Re: Arduino MEGA Pinout Diagram
Post by: neslekkim on Feb 02, 2013, 04:14 pm
Fantastic!
So the printout can be used like your other version for lamination?, so cool!
Title: Re: Arduino MEGA Pinout Diagram
Post by: liuzengqiang on Feb 02, 2013, 04:16 pm
Thank you!
Title: Re: Arduino MEGA Pinout Diagram
Post by: pighixxx on Feb 02, 2013, 04:33 pm

Fantastic!
So the printout can be used like your other version for lamination?, so cool!


Yes  :D
Title: Re: Arduino MEGA Pinout Diagram
Post by: stcrooks on Feb 02, 2013, 05:48 pm
Thanks again.
Title: Re: Arduino MEGA Pinout Diagram
Post by: cyclegadget on Feb 02, 2013, 08:38 pm

Once again great work!
Title: Re: Arduino MEGA Pinout Diagram
Post by: pighixxx on Feb 02, 2013, 10:16 pm
I've updated the diagram. (First post)
I'm checking the serial because there is something wrong ...  :*
Title: Re: Arduino MEGA Pinout Diagram
Post by: pighixxx on Feb 02, 2013, 10:46 pm
New version online.
Serial corrected.
Title: Re: Arduino MEGA Pinout Diagram
Post by: liuzengqiang on Feb 03, 2013, 03:45 am
Thank you again! Can't +1 karma you within one hour. Have to wait.
Title: Re: Arduino MEGA Pinout Diagram
Post by: CrossRoads on Feb 03, 2013, 04:23 am
Power limit is incorrect - its 200mA per VCC or GND pin - there are 4 of each, so 800mA would be the MAX.

Other chips are the same too - 200mA per VCC/AVCC pin, the total load spread over the ports supports that.
See the  "Electrical characteristics" section of the datasheets.
Title: Re: Arduino MEGA Pinout Diagram
Post by: pighixxx on Feb 03, 2013, 11:11 am

Power limit is incorrect - its 200mA per VCC or GND pin - there are 4 of each, so 800mA would be the MAX.
...


I'm working on, thanks!
Title: Re: Arduino MEGA Pinout Diagram
Post by: selfonlypath on Feb 03, 2013, 04:00 pm
Many thanks, these way of presenting info is really great, helpful and easy to read
Title: Re: Arduino MEGA Pinout Diagram
Post by: retrolefty on Feb 03, 2013, 04:27 pm

Power limit is incorrect - its 200mA per VCC or GND pin - there are 4 of each, so 800mA would be the MAX.

Other chips are the same too - 200mA per VCC/AVCC pin, the total load spread over the ports supports that.
See the  "Electrical characteristics" section of the datasheets.


We have discussed this before without reaching agreement as it seems to be based on how one interprets the datasheet. I'm still of the opinion that no AVR 8 bit chip would allow a total device current draw of 800ma and have never seen that total number (800ma) used in any avr datasheet.

Take the 328P for example.
Datasheet in electrical absolute maximum ratings section:

Quote

DC Current VCC and GND Pins................................. 200.0mA


Note they say 'Pins' not Pin, so I feel the 200ma value is the maximum total chip current consumption limit.

Comments from any welcomed, I was wrong once before.  :D

Lefty
Title: Re: Arduino MEGA Pinout Diagram
Post by: JohnHoward on Feb 03, 2013, 08:11 pm
It's a beautiful thing!  I had recently Googled for the longest time and found some pics of pins, some pics of pin numbers, and still other with different bits of info.  This is what I had been searching for.  Everything in one place.

Thank you!!!
Title: Re: Arduino MEGA Pinout Diagram
Post by: beemeeup on Feb 04, 2013, 01:32 am
Hello!

I Love your work and the help you give us !!! Thank you

May I would suggest to add the PIN numbers as they are printed on the PCB (you did this on the UNO Reference), this would be easier to use if you don´t screw your Arduino to the printout ;)

Thanks in advance

Matthias
Title: Re: Arduino MEGA Pinout Diagram
Post by: xl97 on Feb 04, 2013, 02:24 am
Suggestion:

once you are done.. create a post/thread that has all your work collectively posted?


(maybe even a sticky once done?)  ;)

Title: Re: Arduino MEGA Pinout Diagram
Post by: CrossRoads on Feb 04, 2013, 02:37 am
Current totals follow the current allowed by the different ports.

3. Although each I/O port can sink more than the test conditions (20mA at VCC = 5V, 10mA at VCC = 3V) under steady state
conditions (non-transient), the following must be observed:

ATmega640/1280/2560:
1.)The sum of all IOL, for ports J0-J7, A0-A7, G2 should not exceed 200 mA.
2.)The sum of all IOL, for ports C0-C7, G0-G1, D0-D7, L0-L7 should not exceed 200 mA.
3.)The sum of all IOL, for ports G3-G4, B0-B7, H0-B7 should not exceed 200 mA.
4.)The sum of all IOL, for ports E0-E7, G5 should not exceed 100 mA.
5.)The sum of all IOL, for ports F0-F7, K0-K7 should not exceed 100 mA.
If IOL exceeds the test condition, VOL may exceed the related specification. Pins are not guaranteed to sink current greater
than the listed test condition.

That totals 800mA. There is nothing that says if you draw 200mA in one group that you then can't draw it in another.
So this thinking of only 200mA total is nonsense.

Similar numbers apply to the 328 & 1284.
Title: Re: Arduino MEGA Pinout Diagram
Post by: retrolefty on Feb 04, 2013, 03:01 am
Quote
That totals 800mA. There is nothing that says if you draw 200mA in one group that you then can't draw it in another.
So this thinking of only 200mA total is nonsense.


LOL, we've had this same discussion before.

Quote
There is nothing that says if you draw 200mA in one group that you then can't draw it in another.


There is also nothing stating that you can take the sum, of all those individual port limits, as the maxiumum chip current draw limit. And no where in the datasheet does it state that 800 ma of total current draw is allowed. And of course as I've stated before the absolute maximum section lists the 200 ma figure. Why would they state 200ma there if it only applied to one port? Your assumption, and it is just an assumption, is in error, IMHO.

But that is why I would like others to comment on the subject, as you and I. while still respectful of each other's opinion, have not been able to come to consensus on the matter now or in the past.

Lefty
Title: Re: Arduino MEGA Pinout Diagram
Post by: CrossRoads on Feb 04, 2013, 04:53 am
They state the Vcc and Gnd PinS are 200mA. Do you suppose they use wimpier wire in a 2560 vs a 328 so that only 200mA is allowed? I think not.
Title: Re: Arduino MEGA Pinout Diagram
Post by: pighixxx on Feb 04, 2013, 01:38 pm
ATMega 2560 Pinout is on line on first post.
New version of Arduino MEGA.
Title: Re: Arduino MEGA Pinout Diagram
Post by: pighixxx on Feb 04, 2013, 01:45 pm

Suggestion:

once you are done.. create a post/thread that has all your work collectively posted?


(maybe even a sticky once done?)  ;)



Shortly I make a collection...
...and a big poster  :D
Title: Re: Arduino MEGA Pinout Diagram
Post by: pighixxx on Feb 04, 2013, 01:47 pm

Hello!

I Love your work and the help you give us !!! Thank you

May I would suggest to add the PIN numbers as they are printed on the PCB (you did this on the UNO Reference), this would be easier to use if you don´t screw your Arduino to the printout ;)

Thanks in advance

Matthias


Thanks!
As soon as I have some time.
Title: Re: Arduino MEGA Pinout Diagram
Post by: mmcp42 on Feb 04, 2013, 02:18 pm
excellent stuff
well done, sir!
Title: Re: Arduino MEGA Pinout Diagram
Post by: pighixxx on Feb 05, 2013, 05:22 pm
A new version is online.
Title: Re: Arduino MEGA Pinout Diagram
Post by: vrajesh on Feb 07, 2013, 07:17 pm
This is really beautiful work. Thanks for taking time to do this.
Title: Re: Arduino MEGA Pinout Diagram
Post by: pighixxx on Feb 07, 2013, 08:15 pm
Thanks again!  :smiley-mr-green:
Title: Re: Arduino MEGA Pinout Diagram
Post by: Sergegsx on Feb 12, 2013, 02:23 pm
Really nice and amazing work ! congrats !

Thank you very much for sharing this.
Title: Re: Arduino MEGA Pinout Diagram
Post by: sjoerdp on Feb 14, 2013, 10:49 pm
Nice work! And not only for a beginner  :)
Title: Re: Arduino MEGA Pinout Diagram
Post by: baselsw on Feb 14, 2013, 11:05 pm
Wow, love your work! Printing this out as we speak (as reference when using my home made mega)! Thank you mate!!
Title: Re: Arduino MEGA Pinout Diagram
Post by: kd7eir on Feb 22, 2013, 04:45 pm
Thank you very much!
Any plans to work on other variants of the Mega2560 such as the Seeeduino Mega that break out the extra pins?
Title: Re: Arduino MEGA Pinout Diagram
Post by: maxid on Mar 01, 2013, 02:14 am
thanks a lot - again !
Title: Re: Arduino MEGA Pinout Diagram
Post by: pighixxx on Mar 13, 2013, 06:21 pm
NEW VERSION 2.0 online (on 1st post)
Pighixxx  :D
Title: Re: Arduino MEGA Pinout Diagram
Post by: maxid on Mar 13, 2013, 08:04 pm
can you post the changelog
Title: Re: Arduino MEGA Pinout Diagram
Post by: pighixxx on Mar 13, 2013, 09:35 pm

can you post the changelog

Ok  :D

- New graphics
- More readable font
- Added IDE pin matches
- PWM pin fixed
- ATMega16u2 ICSP pinout added
- ICSP pinout fixed
- Minor bug fixes

Pighixxx
Title: Re: Arduino MEGA Pinout Diagram
Post by: maxid on Mar 14, 2013, 05:06 am
very good
Title: Re: Arduino MEGA Pinout Diagram
Post by: KirAsh4 on Mar 21, 2013, 06:45 am
For some reason, clicking on the download link takes me to a 404 page on your website (non existent) ...  I'm assuming you've been moving things around on your site?  The same thing is happening with the Uno thread.  Specifically I'm looking at larger format (or formats that will scale well), in English.
Title: Re: Arduino MEGA Pinout Diagram
Post by: pighixxx on Mar 21, 2013, 07:09 am

For some reason, clicking on the download link takes me to a 404 page on your website (non existent) ...  I'm assuming you've been moving things around on your site?  The same thing is happening with the Uno thread.  Specifically I'm looking at larger format (or formats that will scale well), in English.


Ok, test now!
Because of high traffic, my site has some problems ...
Bye,

PighiXXX
Title: Re: Arduino MEGA Pinout Diagram
Post by: liuzengqiang on Mar 21, 2013, 04:20 pm
Thanks again!
Title: Re: Arduino MEGA Pinout Diagram
Post by: JB_AU on Jun 18, 2013, 12:20 pm
Many Thanx for you diligent work  8)
Title: Re: Arduino MEGA Pinout Diagram
Post by: funlw65 on Jul 14, 2013, 10:54 am
Fantastic work, thank you!
Title: Re: Arduino MEGA Pinout Diagram
Post by: pighixxx on Jul 22, 2013, 11:24 pm
Hello Guys.
I am pleased to announce that in the next few days I will publish the new pinouts  :smiley-mr-green:
Title: Re: Arduino MEGA Pinout Diagram
Post by: askywalker on Aug 19, 2013, 11:41 pm
Something that I think really needs to be changed....

You have the interrupts labeled as the Atmega datasheet calls them. BUT BUT BUT Arduino changes the names of the External Interrupts.

Example:

Arduino Mega 2560  Pin: 2
Arduino Mega 2560 Interrupt: INT0
Atmega2560  Pin: 6
Atmega2560  Interrupt: INT4

http://arduino.cc/en/Reference/attachInterrupt


So you list the interrupt names how it is named by the datasheet, but that is not very helpful when trying to set up the interrupt in Arduino! It took me a while to figure out that Arduino changed the names. I think both should be shown on your diagrams.


Thanks!!!! :)
Title: Re: Arduino MEGA Pinout Diagram
Post by: pighixxx on Aug 20, 2013, 10:37 am
Thanks for the note.
At this time I'm very busy but I see to find the time to update the pinout.

Ciao,
Alberto
Title: Re: Arduino MEGA Pinout Diagram
Post by: j6671 on Aug 29, 2013, 10:20 pm
Pin 6 is not PCINT8.     Pin 0 is... I just found out the hard way :(
Title: Re: Arduino MEGA Pinout Diagram
Post by: Trixi on Oct 04, 2013, 11:53 am
Mhm, did not answer....did he found it out the hard way ?  ]:D
Title: Re: Arduino MEGA Pinout Diagram
Post by: Atmega328 on Apr 15, 2014, 12:40 pm
Fortunately I downloaded the files linked in here just a day or two before  the server pighixx.com, that hosts the pictures linked in here, went down.
Title: Re: Arduino MEGA Pinout Diagram
Post by: fionoob on Apr 16, 2014, 02:59 pm
Link off...

Someone could post on a different server pls ?
Title: Re: Arduino MEGA Pinout Diagram
Post by: jacksmtv on Apr 25, 2014, 03:25 am
Here you are: http://greentechhobby.com/images/Arduino/

http://greentechhobby.com/images/Arduino/ArduinoMega.pdf
http://greentechhobby.com/images/Arduino/MEGA2560.pdf
http://greentechhobby.com/images/Arduino/atmega2560u.pdf
Title: Re: Arduino MEGA Pinout Diagram
Post by: pighixxx on Jul 29, 2014, 01:35 pm
After a long time I came back.  smiley-grin
I'm redrawing all cards with a new graphics. For those who follow me on twitter is not news!
Here the pinout of ATMEGA2560 shortly the Mega pinout

http://t.co/Od41VYfeVa (http://t.co/Od41VYfeVa)
Title: Re: Arduino MEGA Pinout Diagram
Post by: Paul__B on Jul 29, 2014, 02:30 pm

After a long time I came back.  smiley-grin


And not before time either!  We really missed you.

What happened, anyway?

{The (real) world does not run on Twitter.}
Title: Re: Arduino MEGA Pinout Diagram
Post by: pighixxx on Jul 29, 2014, 04:25 pm
A lot of things happened!
Quietly tell you everything, certainly there will be good news.


{The (real) world does not run on Twitter.}

:D
Title: Re: Arduino MEGA Pinout Diagram
Post by: pighixxx on Aug 01, 2014, 04:52 pm
Finally, the Mega pinout

Download here: http://pighixxx.com/megapdf.pdf (http://pighixxx.com/megapdf.pdf)
Title: Re: Arduino MEGA Pinout Diagram
Post by: pighixxx on Aug 02, 2014, 11:28 am
Monday I release a new version of the mega pinout that corrects some errors.
Title: Re: Arduino MEGA Pinout Diagram
Post by: pighixxx on Aug 04, 2014, 10:33 am
New Mega pinout available.
v3.1 - IDE pinout, bug fixes.
The download link is the same: http://pighixxx.com/megapdf.pdf (http://pighixxx.com/megapdf.pdf)
Title: Re: Arduino MEGA Pinout Diagram
Post by: sanches2 on Aug 10, 2014, 12:13 pm
I cannot express how grateful i am for the nice pinout sheet. you saved me like 2 hours of nerves :) Have a nice summer :)
Title: Re: Arduino MEGA Pinout Diagram
Post by: liuzengqiang on Aug 18, 2014, 09:16 pm
So glad you are back! I was just looking at a mega diagram you drew in Jan. 2013. The Arduino pins were not marked on the diagram so I started searching :)

Here is something I did: I tried to shrink my printout and got an exact 1:1 match to an actual mega on your diagram, if I use Letter size paper (USA) and choose in Acrobat reader print menu "Fit" and then go into the printer properties menu and change the scale to be 79%.

(http://liudr.files.wordpress.com/2014/08/20140818_140820-e1408389330381.jpg?w=768)

I didn't print in color and I am using a third-part compatible board  :smiley-red:
Title: Re: Arduino MEGA Pinout Diagram
Post by: ConMan on Aug 24, 2014, 07:04 am
Hi

I cannot download the picture, the link to the site just get stuck at 99% complete message

Any other links to the page?

Thanks
Title: Re: Arduino MEGA Pinout Diagram
Post by: pighixxx on Aug 24, 2014, 07:58 am
Hi,
the right link is on the first page.
btw,

atmega2560: http://pighixxx.com/atmega2560v3_0.pdf (http://pighixxx.com/atmega2560v3_0.pdf)
mega: http://pighixxx.com/megapdf.pdf (http://pighixxx.com/megapdf.pdf)

Pighixxx
Title: Re: Arduino MEGA Pinout Diagram
Post by: casemod on Aug 28, 2014, 04:07 pm
There is a mistake on your drawings.

On Jp5, you define pin PB4 as T1

After trying to figure out why I could not clock T1, I checked the datasheet.

T1 is PD6, and its not connected to any header on the arduino.
On my case I defined PD7 as an input and soldered PD6 and PD7 toguether.

Good work with your drawings other than the above they are fantastic!
Title: Re: Arduino MEGA Pinout Diagram
Post by: pighixxx on Aug 31, 2014, 10:17 am
Hi casemod,

that connector (JP5)  is not connected to ATMEGA2560 but to ATMEGA16U2 which deals with the usb serial communication to the main processor (2560). PB4 on 16U2 is PB4/PCINT4/T1 and is connected to pin 18.


(cut)
Here is something I did: I tried to shrink my printout and got an exact 1:1 match to an actual mega on your diagram, if I use Letter size paper (USA) and choose in Acrobat reader print menu "Fit" and then go into the printer properties menu and change the scale to be 79%.
(cut)


Hi liudr,
next week I publish all cards in 1: 1 format  :D

Thanks to all,
Alberto
Title: Re: Arduino MEGA Pinout Diagram
Post by: casemod on Aug 31, 2014, 03:47 pm

Hi casemod,

that connector (JP5)  is not connected to ATMEGA2560 but to ATMEGA16U2 which deals with the usb serial communication to the main processor (2560). PB4 on 16U2 is PB4/PCINT4/T1 and is connected to pin 18.



Oh! Sorry about that, I assumed only the ICSP belonged to the Mega16U2!
Title: Re: Arduino MEGA Pinout Diagram
Post by: iamrjh on Dec 22, 2014, 09:40 pm
Nice layout of the Mega! Thanks!

But as the last writer casemod indicated already, for the Mega 2560 R3, the interrupts are not labelled correctly to the actual pins:
Code: [Select]

Board          int.0 int.1 int.2 int.3 int.4 int.5
Uno, Ethernet 2 3
Mega2560 2 3 21 20 19 18

source: http://arduino.cc/en/Reference/attachInterrupt

maybe you could apply this to your next release?
I'm using your v3rev1.

Thanks! (Y)

Title: Re: Arduino MEGA Pinout Diagram
Post by: Isaac96 on Jun 20, 2015, 02:36 am
Yes this thread is DEAD, but the 16u2 JP5 needs to be turned 90 degrees clockwise. 
Title: Re: Arduino MEGA Pinout Diagram
Post by: pighixxx on Jun 20, 2015, 09:30 am
No, this post isn't dead. :D
Within two weeks I post the revision of all cards.
Thanks to all.
Title: Re: Arduino MEGA Pinout Diagram
Post by: hadise on Aug 10, 2015, 07:56 am
hi dear friends
I want to connect a 2.4" touch lcd module to MEGA .
can you help me ? :)
Title: Re: Arduino MEGA Pinout Diagram
Post by: _pepe_ on Jun 23, 2016, 12:53 pm
Hi

I think I've found an error in the latest Mega 2560's pinout diagram.

(http://forum.arduino.cc/index.php?action=dlattach;topic=146511.0;attach=171621)

(http://forum.arduino.cc/index.php?action=dlattach;topic=146511.0;attach=171619)

NB : the drawing of JP5 on the official schematics doesn't correspond exactly to the hardware layout.
Title: Re: Arduino MEGA Pinout Diagram
Post by: compsystems on Jul 17, 2016, 03:43 am
Hello, sorry for my bad English

some requests, please see anexed image

1: Improve the constrast, because when the image is copied for example to microsoft-word many colors is lost.

2: Change the connector colors to better differentiate the parties.

3: Add a dotted line to show the separation of parts.

(http://jaimeza.org/ElectronicEngineering/computerSystems/arduino/request/pinout_ArduinoMEGA2560_request.png)