element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Design for a Cause - Design Challenge
  • Challenges & Projects
  • Design Challenges
  • Design for a Cause - Design Challenge
  • More
  • Cancel
Design for a Cause - Design Challenge
Blog Connection Issues
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: roborob1266
  • Date Created: 10 Aug 2018 2:37 AM Date Created
  • Views 4027 views
  • Likes 6 likes
  • Comments 20 comments
  • arduino mkr1000
  • issues
  • wiring
  • adafruit vs1053 mp3 player
  • 5" touch screen
  • design for a cause - design challenge
  • adafruit ra8875
Related
Recommended

Connection Issues

roborob1266
roborob1266
10 Aug 2018

image

Hello everyone. I was able to get the Adafruit RA8875 to work with the MKR1000.

I was recently able to get the VS1053 (Adafruit Music Maker MP3 Shield) to work with the MKR1000.

The issue is when I connect them together with the MKR1000, I cannot get the MP3 shield to work.
It is not detected with the wiring I am selecting.
I am using hardware SPI so SCK, MISO and MOSI are being used.This is the wiring I am using for the RA module, MP3 Module and the MKR.

I know that the MKR has pins 0 and 1 as the interrupt pins and switching between those doesn't work.

Since I am using the breakout portion of the MP3 player, that is why I connected it to the MKR and it worked.

 

VS1053MKR1000
5V5V
GNDGND
Breakout ResetReset
SCK139
MISO1210
MOSI118
MCS71
DCS65
CardSC44
DRQ30
RA8875MKR1000
5V5V
GNDGND
SCKSCK9
MISOMISO10
MOSIMOSI8
CSCS6
RST2
INTINT3

 

Once I am able to make these all play nicely then I will be able to use the image files and place them on the screen and then learn now to trigger a touch to play the appropriate wav file.

This challenge has really taught me the value of research, which forums do not help at all and trial and error will get you results in the end! It didn't stop Thomas Edison from inventing the light bulb after thousands of tries, it wont stop me either!

  • Sign in to reply

Top Comments

  • shabaz
    shabaz over 7 years ago +5
    Hi Rob, If you're developing approximately what I think you're developing, it is really good news. I too am on the side working on a project for autistic children. Quite surprising how little easy-to-make…
  • aspork42
    aspork42 over 7 years ago +4
    Does the VS1053 have a pin labeled just as "CS"? When I look on Adafruit, I see a different looking board than what you have, but it does show a "CS" pin. This is the "select" pin that the master (MKR1000…
  • prashanth.nagendrappa
    prashanth.nagendrappa over 7 years ago +3
    Nice Update Keep going roborob1266
Parents
  • aspork42
    aspork42 over 7 years ago

    Does the VS1053 have a pin labeled just as "CS"? When I look on Adafruit, I see a different looking board than what you have, but it does show a "CS" pin. This is the "select" pin that the master (MKR1000) uses to tell the slave to listen. Each slave must have its own "Chip Select" pin that cannot be shared. (Also call "slave select" or something similar.)

     

    image

     

    The next thing - How are you 'disconnecting' one or the other when you test? Just removing power or removing all wiring? And is all other wiring the same when the they work individually versus all wired in at ones?

    In theory you should be able to have both all wired in, and run a test sketch one time for each board, just modifying the header info for the correct pinout. I would think that just removing power from the slave should effectively disable it so you can test the other board.

    • Cancel
    • Vote Up +4 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • roborob1266
    roborob1266 over 7 years ago in reply to aspork42

    Hi James,

    Yes, the audio Shield does have that CS pin.

    Here is information about the pins:

    The underlined below is the Chip Select for the audio player.

    The issue could be the VS1053 data select pin. That is pin 6 and the RA8875 uses pin 6 for the CS of the display.

     

    The Music Maker shield has a bunch of pins required for use. We pre-wire all of them for you but there's still some flexibility in case you want to rewire.

     

    There 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

    Ther are also a few other pins that are not connected to any Arduino pin but are broken out:

    • RST - this is the VS1053 reset pin, we connected it to the Arduino reset pin so you don't need to use this unless you really want to.
    • SPK Off - this disables the amplifier - if you have the amplifier version and want to 'mute' instantly
    • TX - this is serial data transmit from the VS1053 - its not used for any of our demos
    • RS - this is serial data into the VS1053 - its used for MIDI synth playing
    • CD - this is the card detect pin, it is tied to ground when a card is inserted. Use a pullup on a digital pin to detect when a SD card is inserted. We dont use it.

     

    I connected the RA8875 to the MKR and ran a sketch and that was fine.

    I disconnected all the cables and connected the VS1053 to the MKR and ran a sketch and it worked fine.

    When I reconnected the RA8875 and VS1053 to the MKR and ran a sketch that included both the RA8875 code and the VS1053 code, neither worked.

     

    I will try connecting both and just running the separate codes to see if that works.

    If it does, that means the wiring is fine but something within the code or pins are causing the conflict.

    Pin 7 is the CS for the VS1053, Pin 4 is the CS for the SD card and Pin 6 will be the CS for the RA8875.

    I do not see how this would be conflicting but it could be.

     

    I did read online that the SPI on the MKR doesn't handle different devices well using the different CS pins and that a tri-state buffer is needed to properly handle this.

    Have you come across this before?

     

    I will wire up the two devices (RA8875 and the VS1053 which includes the SD card) and run separate codes to see if each device works with the MKR.

    If it does then I will combine codes with just basic code to detect items and see if that works.

     

    If they do not work even with switching pins, then I will have to try to run the UNO with the VS1053 and the RA8875 with the MKR and get them to communicate either with TX/RX or I2C connections.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • roborob1266
    roborob1266 over 7 years ago in reply to aspork42

    Hi James,

    Yes, the audio Shield does have that CS pin.

    Here is information about the pins:

    The underlined below is the Chip Select for the audio player.

    The issue could be the VS1053 data select pin. That is pin 6 and the RA8875 uses pin 6 for the CS of the display.

     

    The Music Maker shield has a bunch of pins required for use. We pre-wire all of them for you but there's still some flexibility in case you want to rewire.

     

    There 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

    Ther are also a few other pins that are not connected to any Arduino pin but are broken out:

    • RST - this is the VS1053 reset pin, we connected it to the Arduino reset pin so you don't need to use this unless you really want to.
    • SPK Off - this disables the amplifier - if you have the amplifier version and want to 'mute' instantly
    • TX - this is serial data transmit from the VS1053 - its not used for any of our demos
    • RS - this is serial data into the VS1053 - its used for MIDI synth playing
    • CD - this is the card detect pin, it is tied to ground when a card is inserted. Use a pullup on a digital pin to detect when a SD card is inserted. We dont use it.

     

    I connected the RA8875 to the MKR and ran a sketch and that was fine.

    I disconnected all the cables and connected the VS1053 to the MKR and ran a sketch and it worked fine.

    When I reconnected the RA8875 and VS1053 to the MKR and ran a sketch that included both the RA8875 code and the VS1053 code, neither worked.

     

    I will try connecting both and just running the separate codes to see if that works.

    If it does, that means the wiring is fine but something within the code or pins are causing the conflict.

    Pin 7 is the CS for the VS1053, Pin 4 is the CS for the SD card and Pin 6 will be the CS for the RA8875.

    I do not see how this would be conflicting but it could be.

     

    I did read online that the SPI on the MKR doesn't handle different devices well using the different CS pins and that a tri-state buffer is needed to properly handle this.

    Have you come across this before?

     

    I will wire up the two devices (RA8875 and the VS1053 which includes the SD card) and run separate codes to see if each device works with the MKR.

    If it does then I will combine codes with just basic code to detect items and see if that works.

     

    If they do not work even with switching pins, then I will have to try to run the UNO with the VS1053 and the RA8875 with the MKR and get them to communicate either with TX/RX or I2C connections.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube