Arduino Forum

Using Arduino => Microcontrollers => Topic started by: Nantonos on Oct 06, 2012, 04:22 pm

Title: Arduino Mega2560 R3 pinouts photo
Post by: Nantonos on Oct 06, 2012, 04:22 pm
Inspired by Nick's UNO pinout (http://arduino.cc/forum/index.php/topic,84190.0.html) I did a similar one for the Arduino Mega2560 R3.

(http://arduino.cc/forum/index.php?action=dlattach;topic=125908.0;attach=26850;image)

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
Title: Re: Arduino Mega2560 R3 pinouts photo
Post by: kd7eir on Oct 07, 2012, 02:58 am
Very nice!  Thank you!
Title: Re: Arduino Mega2560 R3 pinouts photo
Post by: spcomputing on Oct 08, 2012, 02:15 am
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.
Title: Re: Arduino Mega2560 R3 pinouts photo
Post by: Nantonos on Oct 08, 2012, 03:22 am

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.
Title: Re: Arduino Mega2560 R3 pinouts photo
Post by: spcomputing on Oct 08, 2012, 06:22 am
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.
Title: Re: Arduino Mega2560 R3 pinouts photo
Post by: bratan on Nov 22, 2012, 01:12 pm
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 :)  It safe me hours! :)  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?
Title: Re: Arduino Mega2560 R3 pinouts photo
Post by: Shuttleu on Jan 09, 2013, 10:59 pm
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
Title: Re: Arduino Mega2560 R3 pinouts photo
Post by: retrolefty on Jan 09, 2013, 11:14 pm
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
Title: Re: Arduino Mega2560 R3 pinouts photo
Post by: RuiSantos on Feb 01, 2013, 11:25 pm
Thanks for sharing your work!
Title: Re: Arduino Mega2560 R3 pinouts photo
Post by: kallen on Feb 06, 2013, 10:24 pm
Newbie alert:  So which are d0-d7 lines as you would use for say LiquidCrystal()? 

Thanks,  K..
Title: Re: Arduino Mega2560 R3 pinouts photo
Post by: spcomputing on Feb 07, 2013, 07:30 am

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);)
Title: Re: Arduino Mega2560 R3 pinouts photo
Post by: jeffmorris on Mar 31, 2013, 01:59 am
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.
Title: Re: Arduino Mega2560 R3 pinouts photo
Post by: Nantonos on Apr 11, 2013, 03:27 pm
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.
Title: Re: Arduino Mega2560 R3 pinouts photo
Post by: o_lampe on Jun 23, 2013, 06:12 pm
Nice Job, thank's for sharing!

My (reference to company selling counterfeit product removed by moderator) Mega2560 board doesn't have the connectors for I2C like your picture shows.
Any idea, where to connect them?
THX

<edit> Guess I found them: digital Pins 20 and 21 are SDA and SCL...
Title: Re: Arduino Mega2560 R3 pinouts photo
Post by: Frisky on Jul 21, 2013, 03:30 pm
I have the (reference to company selling counterfeit product removed by moderator) board too I found it's best to print the schematic to see which pins and ports that where extened to the stackable connector. Im using 6 external interrrupts on mine
Don
Title: Re: Arduino Mega2560 R3 pinouts photo
Post by: BennX on Oct 30, 2013, 02:11 pm
Do i see it right, that there are 15 PWM outputs (2-13 + 44 45 46)? several sites of the shop do say, that there are just 14.  The 15 would be important for my project.
Title: Re: Arduino Mega2560 R3 pinouts photo
Post by: terryking228 on Nov 21, 2013, 04:33 pm
Nantonos, Nice Work on this!

May I use this on the http://ArduinoInfo.Info WIKI? I'd link back to your original as well.

Thanks!
Title: Re: Arduino Mega2560 R3 pinouts photo
Post by: lemming on Dec 29, 2013, 12:53 am
A table of pins 1-100 on the Atmega2560 with the corresponding Arduino Mega pin number mappings would be ideal.
Title: Re: Arduino Mega2560 R3 pinouts photo
Post by: lve0200 on Feb 26, 2014, 03:10 pm
Hi there,

I noticed that the pdf drawing on the Arduino Product web page shows 2 crystals 16Mcs, however there's only one on the board??
Furthermore, the downloadable eagle files do not open in my Eagle: Invalid data error

I am experiencing communication probs, possibly coming from one clock source for the 2560 & 16U2, derived from 1 crystal, only.

Could you please clarify?

Thank's

hk
Title: Re: Arduino Mega2560 R3 pinouts photo
Post by: SkobyMobil on Aug 12, 2014, 05:06 pm
Hi there,
http://pighixxx.com/megapdf.pdf
http://pighixxx.com/atmega2560v3_0.pdf


Greeting and fun
Andreas
Title: Re: Arduino Mega2560 R3 pinouts photo
Post by: TLuck on Mar 16, 2015, 02:45 pm
Just out of curiosity does an Ethernet shield connect the same way and is just as efficient on the mega? Or must I get a new style of shield.  One other question would be does the mega have a sufficient amount of memory more than the Uno for SRAM that it would make a difference for a solid grouping of text for multiple strings in a program?
Title: Re: Arduino Mega2560 R3 pinouts photo
Post by: sritter09 on Aug 18, 2015, 03:19 pm
Thanks for posting this. That is a great reference to keep on hand.
Title: Re: Arduino Mega2560 R3 pinouts photo
Post by: stuartyh on Aug 27, 2015, 11:24 pm
This is a site which gives you pin-out of the various Arduino boards.

http://www.pighixxx.com/test

The "tripple x" in the site address does not mean it is a porn site except to show you the nakedness of the pins.
Hope it was of help.
Regards
Title: Re: Arduino Mega2560 R3 pinouts photo
Post by: aljorni on Feb 17, 2016, 05:29 pm
thank you
Title: Re: Arduino Mega2560 R3 pinouts photo
Post by: bruceyuan95 on Apr 05, 2016, 08:07 pm
Hi,

I am wondering which pin is for DAC.

Thanks
Title: Re: Arduino Mega2560 R3 pinouts photo
Post by: CrossRoads on Apr 05, 2016, 08:47 pm
I2C DAC? SPI DAC? Parallel interface DAC?
Atmega2560 itself does not have a DAC.
Title: Re: Arduino Mega2560 R3 pinouts photo
Post by: bruceyuan95 on Apr 05, 2016, 09:37 pm
I2C DAC? SPI DAC? Parallel interface DAC?
Atmega2560 itself does not have a DAC.
Hi,

Could you tell me how to convert PWM to Analog if it is possible?

Thanks
Title: Re: Arduino Mega2560 R3 pinouts photo
Post by: CrossRoads on Apr 05, 2016, 09:42 pm
Run it thru an RC lowpass filter.
Here's PWM, from 0-25-50-75-100-125-150-175-200-225-250 with 10K resistor and 4.7uF cap.
Or may 4.7K resistor and 10uF cap, I forget which.
http://sim.okawa-denshi.jp/en/CRlowkeisan.htm (http://sim.okawa-denshi.jp/en/CRlowkeisan.htm)

You may want different values depending on what frequency response you want to achieve.

(https://forum.arduino.cc/index.php?action=dlattach;topic=125908.0;attach=161944)
Title: Re: Arduino Mega2560 R3 pinouts photo
Post by: bruceyuan95 on Apr 05, 2016, 09:52 pm
Run it thru an RC lowpass filter.
Here's PWM, from 0-25-50-75-100-125-150-175-200-225-250 with 10K resistor and 4.7uF cap.
Or may 4.7K resistor and 10uF cap, I forget which.
http://sim.okawa-denshi.jp/en/CRlowkeisan.htm (http://sim.okawa-denshi.jp/en/CRlowkeisan.htm)

You may want different values depending on what frequency response you want to achieve.

(https://forum.arduino.cc/index.php?action=dlattach;topic=125908.0;attach=161944)
Thanks a lot.
Title: Re: Arduino Mega2560 R3 pinouts photo
Post by: beddy on Jan 08, 2017, 08:13 pm
Nantonos: just add table with your image ;)

(http://somanybits.com/images/forum/Pin%20Arduino%20Mega%202660.jpg)
Title: Re: Arduino Mega2560 R3 pinouts photo
Post by: beddy on Jan 08, 2017, 09:22 pm
An other table :


(http://somanybits.com/images/forum/pin%20port%20arduino%20Mega%202560.jpg)
Title: Re: Arduino Mega2560 R3 pinouts photo
Post by: GolamMostafa on Feb 23, 2017, 08:51 pm
Please find the attached file for the schematic of ArduinoMEGA which shows some mismatch with the pictorial digarm of ArduinoMEGA of #1.
Title: Re: Arduino Mega2560 R3 pinouts photo
Post by: GolamMostafa on Feb 23, 2017, 09:00 pm
Another version of schematic for ArduinoMEGA.
Title: Re: Arduino Mega2560 R3 pinouts photo
Post by: CrossRoads on Feb 23, 2017, 09:00 pm
There is no attachment GolamMostafa.
Title: Re: Arduino Mega2560 R3 pinouts photo
Post by: GolamMostafa on Feb 24, 2017, 06:37 pm
Inspired by Nick's UNO pinout (http://arduino.cc/forum/index.php/topic,84190.0.html) I did a similar one for the Arduino Mega2560 R3.

(http://arduino.cc/forum/index.php?action=dlattach;topic=125908.0;attach=26850;image)

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
As per diagra of Arduino Mega 2560 Reference Design diagram:

INT0 : Digital Pin-21
INT1 : Pin-22
INT2 : Pin-23
Inspired by Nick's UNO pinout (http://arduino.cc/forum/index.php/topic,84190.0.html) I did a similar one for the Arduino Mega2560 R3.

(http://arduino.cc/forum/index.php?action=dlattach;topic=125908.0;attach=26850;image)

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
[/quote]
Inspired by Nick's UNO pinout (http://arduino.cc/forum/index.php/topic,84190.0.html) I did a similar one for the Arduino Mega2560 R3.

(http://arduino.cc/forum/index.php?action=dlattach;topic=125908.0;attach=26850;image)

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
As per Arduino Mega 2560 Reference Design:

INT0: Digital Pin-21
INT1 : Pin-20
INT2 : Pin-19
INT3 : Pin-18

INT4 : Pin-2
INT5 : Pin-3
Title: Re: Arduino Mega2560 R3 pinouts photo
Post by: GolamMostafa on Mar 01, 2017, 06:31 am
Inspired by Nick's UNO pinout (http://arduino.cc/forum/index.php/topic,84190.0.html) I did a similar one for the Arduino Mega2560 R3.

(http://arduino.cc/forum/index.php?action=dlattach;topic=125908.0;attach=26850;image)

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
By continuity measurement, I have found that all connector pins labelled as 'GND' are shorted together; this means that the AGND and DGND pins of ATmega2560 are shorted together at the connectors. Therefore, mark like 'use for analog ground' in not needed. Any GND (0V point) can be used as Ground Reference!
Title: Re: Arduino Mega2560 R3 pinouts photo
Post by: GolamMostafa on Mar 01, 2017, 06:46 am
Nantonos: just add table with your image ;)

(http://somanybits.com/images/forum/Pin%20Arduino%20Mega%202660.jpg)
Nantonos's picture of MEGA shows: Digital Pin-2 receives IRQ-signal for INT-0 (interrupt 0) pin of ATmega2560

beddy's Table of MEGA shows: Digital Pin-2 receives IRQ-signal for INT-4 (interrupt 4) pin of ATmega2560

Which one is correct?
Title: Re: Arduino Mega2560 R3 pinouts photo
Post by: CrossRoads on Mar 01, 2017, 08:20 am
What does the Mega schematic show?
https://www.arduino.cc/en/uploads/Main/arduino-mega2560_R3-sch.pdf (https://www.arduino.cc/en/uploads/Main/arduino-mega2560_R3-sch.pdf)
Title: Re: Arduino Mega2560 R3 pinouts photo
Post by: GolamMostafa on Mar 01, 2017, 09:28 am
What does the Mega schematic show?
https://www.arduino.cc/en/uploads/Main/arduino-mega2560_R3-sch.pdf (https://www.arduino.cc/en/uploads/Main/arduino-mega2560_R3-sch.pdf)
Thanks for referring to MEGA schematic which shows: Digital Pin-2 receives IRQ-signal for INT-4 of ATmega2650.
Title: Re: Arduino Mega2560 R3 pinouts photo
Post by: hibaS128 on Mar 14, 2017, 07:46 pm
bonsoir
comment on rajoute atmegaS128 sur boards.txt de l'arduino ?merci :smiley-confuse:
Title: Re: Arduino Mega2560 R3 pinouts photo
Post by: javichu2804 on Apr 09, 2017, 12:16 am
Thanks
Title: Re: Arduino Mega2560 R3 pinouts photo
Post by: Ingeniero1987 on Apr 13, 2017, 07:21 pm

I need to control a light tracker by means of a digital PID with arduino. The circuit is simple and consists of a micro servo motor and a photoresistor but, I have no knowledge of the Arduino PID library.
Title: Re: Arduino Mega2560 R3 pinouts photo
Post by: nickgammon on Apr 14, 2017, 10:21 am
What has that got to do with Arduino Mega2560 R3 pinouts photo?
Title: Re: Arduino Mega2560 R3 pinouts photo
Post by: MarekBujko on May 29, 2018, 10:28 am
Where are 4 Input Captures marked? They are cutted. Why? :(