Arduino UNO vs Mega

I have some software running fine on an Arduino UNO R3, but when I switch to an Arduino Mega 2560, the same software doesn't work.

The libraries I am using are

  • MD_MAX72xx
  • MD_Parola
  • SPI.h
    I am experimenting with some 1088AS 8x8 Matrix displays. I use Pins 10, 11 and 13

Are these boards compatible ? Am I missing something ?

Given the dearth of detail, about the only thing I can ask is do either of those libraries expect hardware SPI to be on the pins you mentioned? If so, you might want to recheck your assumptions vis-a-vis the Mega.

Every library should have a library.properties file in the library folder. Look for the architecture= line if is says * then it is architecture agnostic.

I am very new to Arduino Programming, maybe 1 month. I upgraded to the Mega as I needed more memory. How would I know which pins are SPI-enabled?

The software is using SPI.h

You sound way more expert than me. I must sound like a real newbie and I don't really know what I am doing lol

Both of those libraries include the line

  • architectures=*

As with any question about a board, begin with Arduino's documentation for it. Specifically in this case, the pinout.

And if that leaves you scratching your head, consider Googling arduino mega r3 pinout and choosing one of the more user friendly 3rd party pinout diagrams, like the one found at the link below, for instance.

The bottom line: Google is not only your friend for finding stuff out, it's your indispensable friend. The cool kids may not use Grandpa Google anymore, but being trendy doesn't make you right.

Thanks loads you guys for your pointers. I did some digging around and found where the pins are. I would never have thought to look for that. Here is what I found.

UNO Mega
SCK 13 52
MISO 12 50
MOSI 11 51
SS(CS) 10 53

After adjusting my software and putting the pins in the right place, all is now working. I was all set to return the Mega as I thought it was broken

You guys are the top!. Thats what you get for being a newb :slight_smile:

?
I don't see the need for that.
The SPI library knows that the SPI pins are different on a Mega.
Just connect to the right pins, no further change needed.
Leo..