Loading...
Pages: [1]   Go Down
Author Topic: Arduino Mega2560 R3 pinouts photo  (Read 5900 times)
0 Members and 1 Guest are viewing this topic.
Nice, France
Offline Offline
Full Member
***
Karma: 10
Posts: 232
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Inspired by Nick's UNO pinout I did a similar one for the Arduino Mega2560 R3.



Annotations are color coded. Green have the same function and position as the Arduino UNO R3. Red are differences, where the functionality has moved on Mega2560 compared to UNO. In general, this means that the UNO put several functions on one pin and these have moved to separate pins on the Mega. Blue is for differences due to added functionality (extra pins).

I find it convenient to use the GND pins near to the analog input pins as analog grounds, and to use the GND on the end block for digital grounds, when linking to external circuitry.

Update: correct SCL to SCK, correct colors, call out second ICSP header
« Last Edit: October 07, 2012, 08:20:06 pm by Nantonos » Logged

Tucson, AZ
Offline Offline
Sr. Member
****
Karma: 4
Posts: 269
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Very nice!  Thank you!
Logged

California
Offline Offline
God Member
*****
Karma: 13
Posts: 632
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Good job.  Only thing I can see is a nomenclature on the '2560 ICSP header the SCL should be SCK like the other SPI pins.
Logged


Nice, France
Offline Offline
Full Member
***
Karma: 10
Posts: 232
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Good job.  Only thing I can see is a nomenclature on the '2560 ICSP header the SCL should be SCK like the other SPI pins.

Thanks! And yes, it should. I corrected it. Also, since the header has the same position and pinout as the UNO, it should be green.

While I was at it, I clarified that the DC input is center positive, and called out the second ICSP socket as well.
Logged

California
Offline Offline
God Member
*****
Karma: 13
Posts: 632
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

My friend, we have a nice tool here.  Thanks for breaking out the 16u2 ICSP!

Not that it is needed, but one more thing jumped out.  The I2C "extensional" pins and pins 20 and 21 could be tied "visually", but it could be a little too busy.

Good job again, I like the polarity declaration as well.
Logged


New York
Offline Offline
Full Member
***
Karma: 2
Posts: 235
xronosclock.com
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Wow that's great job! Thanks for sharing!  I wish I found this picture yesterday when I was trying to figure out why my clock and wave shield didn't work when I moved it from Unto to 2560 smiley  It safe me hours! smiley  I'm going to print it out and keep at my desk.
That's interesting that there are 2 more I2C connections (unlabeled on the board) above AREF, I thought they weren't connected anywhere. I wonder if one above IOREF does something too?
Logged

Xronos Clock - A talking arduino based alarm clock is now available. Check out xronosclock.com for pictures, source code, schematics, and purchasing info smiley

Offline Offline
Newbie
*
Karma: 0
Posts: 10
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I wonder if one above IOREF does something too?

i know this is a bit late
but looking at the schematics (bottom left, power)http://arduino.cc/en/uploads/Main/arduino-mega2560_R3-schematic.pdf
it isnt connected to anything at all
Logged

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 279
Posts: 15316
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I wonder if one above IOREF does something too?

It's a no connection at this time. The arduino folks just added and reserved the pin position for their future use.

Lefty
Logged

Porto
Offline Offline
Newbie
*
Karma: 0
Posts: 23
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks for sharing your work!
Logged

visit my website: www.randomnerdtutorials.com

Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Newbie alert:  So which are d0-d7 lines as you would use for say LiquidCrystal()? 

Thanks,  K..
Logged

California
Offline Offline
God Member
*****
Karma: 13
Posts: 632
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Newbie alert:  So which are d0-d7 lines as you would use for say LiquidCrystal()? 

Thanks,  K..

They are the same as a UNO unless you have a real SPI interface on the LCD.  The current Arduino IDE is default to 4-bit, but if you want to use 8-bit, you will have to specify it in the initialization parameters (LiquidCrystal lcd(rs, rw, enable, d0, d1, d2, d3, d4, d5, d6, d7)).

Check the out the LiquidCrystal tutorial for more detail:
http://arduino.cc/en/Reference/LiquidCrystalConstructor

Also, for a lot of LCD Shields, the 4-bit initialization is different than the tutorial/examples (i.e. LiquidCrystal lcd(8, 9, 4, 5, 6, 7)smiley-wink
Logged


Offline Offline
Full Member
***
Karma: 2
Posts: 198
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I got confused by the photo of the Arduino Mega 2560 board with labeled pins. I think that the two pins at the top of the double header over pins 22 and 23 on the right side of the board are 5V pins. Are pins 23, 25, 27, and 29 digital pins? The labels on the photo confused me into thinking that pins 23, 25, 27, and 29 are 5V pins.
Logged

Nice, France
Offline Offline
Full Member
***
Karma: 10
Posts: 232
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Ah, I hadn't thought of it like that but I can see how it could be read that way. I will move the "5V pins" label and make it clearer.
Logged

Pages: [1]   Go Up
Print
 
Jump to: