Arduino Mega Pin Assignment

The Dot Matrix Display (DMD) is a 32x16 array of high-brightness LEDs for visually striking effects. [Product Page]
Post Reply
LordN1kon
Posts:7
Joined:Sat Dec 07, 2013 1:53 am
Arduino Mega Pin Assignment

Post by LordN1kon » Thu Mar 13, 2014 5:09 pm

Hi,

My first project is build with the Arduino Uno but now i need more ram so i tried the Leonardo but as you told me in a different thread it didn't work now. So i buyer now a Mega and it didn't work is there another Pin assignment as on the Uno?

angusgr
Freetronics Staff
Freetronics Staff
Posts:853
Joined:Tue Apr 09, 2013 11:19 pm
Location:Melbourne, Australia
Contact:

Re: Arduino Mega Pin Assignment

Post by angusgr » Thu Mar 13, 2014 11:52 pm

Hi LordN1kon,

There are some different pin assignments for some things, for example SPI and i2c. Can you please explain exactly what you're connecting where, and perhaps post your sketch?

- Angus

LordN1kon
Posts:7
Joined:Sat Dec 07, 2013 1:53 am

Re: Arduino Mega Pin Assignment

Post by LordN1kon » Mon Mar 17, 2014 9:05 am

I connected it this way:

GND -> GND
noe -> Pin 9
A -> Pin 6
B -> Pin 7
CLK -> Pin 13
SCLK -> Pin 8
R -> Pin 11

that works pretty well on the Uno and Nano but not on the mega so whats my fault?

angusgr
Freetronics Staff
Freetronics Staff
Posts:853
Joined:Tue Apr 09, 2013 11:19 pm
Location:Melbourne, Australia
Contact:

Re: Arduino Mega Pin Assignment

Post by angusgr » Thu Mar 20, 2014 2:53 am

Hi LordN1kon,

The SPI pins move on the Mega, unfortunately.

There's a table under "Connections" here
http://arduino.cc/en/Reference/SPI

What you can do is:

Move pin 11 to pin 51.
Move pin 13 to pin 52.

Leave other pins the same.

Shouldn't need to change any settings in your sketch, I don't think.

- Angus

Post Reply