Conflicting Boards/Pins

Hi folks.. I'M new here and to using the Uno.
I just got a Uno Rev3, The MP3 Music Maker Shield ADA1788. and a motor shield rev3.
I just started reading and there was this sentence about conflicting pins making some shields incompatible with each other.
I am wondering.. Both the motor and player shields use pins 4 and 6.
Does this mean I can use the motor or the player but I can't stack them on the UNO?
Sorry for being so noobish..

Welcome to the forum

You are right to suspect that there may be a clash in the use of the pins by the boards. What are the pins used for by each board ?

Thank you !
I'm looking.

Stepper myStepper(stepsPerRevolution, 8, 9, 10, 11);
This is the setup using 4 pins.
These pins are the same ones as the UNO, correct?
Can they be re-assigned to different pins?
I used write code for Z-80s before1/2 of the people on earth was born.

So.. If my Stepper board and mp3 player are both hard wired to interrupt pin 3, that's bad and I'll need to cut the trace and move one to pin 2 so they don't collide?

Please post the code for both the stepper and the MP3 player, using code tags when you do

You need to consult the schematics for each of those boards to see which pins they use, and if the board designer added any jumpers to allow alternate pins to be used.

Greetings from the world of 8051, 8085 & Z80!

@coffee, welcome.

Your topic has been moved to a more suitable location on the forum. Installation and Troubleshooting is not for problems with (nor for advice on) your project :wink: See About the Installation & Troubleshooting category.

Pins the music maker uses:
This is from Pinouts | Adafruit Music Maker Shield | Adafruit Learning System

here are three 'totally fixed' pins, the hardware SPI pins:

  • SPI SCK - connected to Digital #13 (but can be connected to the ISP header with a jumper) - used by both the SD card and VS1053
  • SPI MISO - connected to Digital #12 (but can be connected to the ISP header with a jumper) - used by both the SD card and VS1053
  • SPI MOSI - connected to Digital #11 (but can be connected to the ISP header with a jumper) - used by both the SD card and VS1053

There are a couple other pins that are required for talking to the VS1053 to play MP3s and such

  • MCS - this is the VS1053 chip select pin, connected to Digital #7
  • DCS - this is the VS1053 data select pin, connected to Digital #6
  • CCS - this is the SD Card chip select pin, connected to Digital #4
  • DREQ - this is the VS1053 data request interrupt pin - connected to digital #3
    Pin setup for using IRQ which I'll need to get feed back on time code.

// These are the pins used for the music maker shield
#define SHIELD_RESET  -1      // VS1053 reset pin (unused!)
#define SHIELD_CS     7      // VS1053 chip select pin (output)
#define SHIELD_DCS    6      // VS1053 Data/command select pin (output)

// These are common pins between breakout and shield
#define CARDCS 4     // Card chip select pin
// DREQ should be an Int pin, see http://arduino.cc/en/Reference/attachInterrupt
#define DREQ 3       // VS1053 Data request, ideally an Interrupt pin

This is the Stepper :
From : Stepper with Arduino Motor Shield Rev3 Tutorial (4 Examples)

Input and Output

Function Pins Channel A Pins Channel B
Direction D12 D13
PWM D3 D11
Brake D9 D8
Current sensing A0 A1
Pin assignment:
// Give the motor control pins names:
#define pwmA 3
#define pwmB 11
#define brakeA 9
#define brakeB 8
#define dirA 12
#define dirB 13

I don't need sensing so I can free AD pins A0 and A1.
Will i need to cut a trace to release these or or can I just ignore setting them up for the stepper?

On the music maker, Do I need SPI?
It states I can cut the bridge wires and release 11, 12 and 13.
I am confused about what pins I actually need for the stepper.
Thanks.. I help when I can and am very grateful for the help!

Nice to hear! Here's a guy doing the same. One build had 160 kB online...
Did You find out about the hidden instructions and did You use them? I found them......

@coffee It looks like you may have to do some surgery on the motor board to get that combination of shields to work.

D13, D12 & D11 are connected to the hardware SPI interface in the 328P. It looks like the Adafruit music shield needs these to control the MP3 chip.

The motor board also uses D13, D12 & D11. However, there's nothing special about the 2 direction pins (D12 & D13), so you could modify the board to use other digital outputs instead.

D11 is slightly more tricky. You can modify the board to use another digital output. However, you need to choose a digital output pin that supports PWM. On the UNO you could use D5 or D6.

Yes but it was so very long ago I don't remember much.
I build a few things.

1 Like

Thanks for the info. That's what I was afraid of.
Holy cow. I am not going to have any pins left to use for lighting the project and it's a lot of rework.
How about using a 2nd uno and talking to it with the first one.
I'm going to check in to that. If its doable, it would make it easier.

Upgrade to a mega perhaps?

Using 2 controllers instead of 1 creates substantial difficulties. Communication is no easy thing.
Regarding the use of SPI for several items. Isn't it thinkable to use select signals to the different SPI devices? One select might even switch 2 devices.

Ordered a duo.. Has more IO than I need and should work.

I2C looked easy enough. We only talking one slave.
I ordered a duo.

Regarding the wiring, yes. No matter what electrical interface You use.. think about this:
The sending device is sending data too quickly.
The receiver gets a corrupted message.
The receiver doesn't respond to a data request.
Either sender or receiver hangs up.
.
.
.
Those things needs to be handled. Using ready made protocols will save a lot of head scratching.

Maybe that single controller will make it work?

Did you mean Due? If so, remember that it is a 3.3v device with 3.3v i/o.