Using Keypad with Music Maker Shield

Adafruit Ethernet, Motor, Proto, Wave, Datalogger, GPS Shields - etc!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Using Keypad with Music Maker Shield

Post by adafruit_support_rick »

Well, the problem is Pin 10. It took me a while to remember this, but Pin 10 has to be an output when you're using hardware SPI. What's happening is that, as soon as you press the 1 key, you are pulling Pin 10 low, which hangs up SPI.

Change your wiring to use another analog pin instead of Pin 10, and you should be good to go.

User avatar
noopara
 
Posts: 45
Joined: Tue Oct 14, 2014 2:44 pm

Re: Using Keypad with Music Maker Shield

Post by noopara »

Yes, indeed that was the problem.

I have spent days trying to get this to work.

Can you PLEASE change the documentation so it reflects the use of pin 10. As it is the documentation does list pins 11,12 and 13 as 'totally fixed' pins. It should also list #10.

Also, can you tell me where I can find the documentation on statements such as musicPlayer.pausePlaying(true); and musicPlayer.stopPlaying(); These are not in the Music Maker Library Reference. Are these and other methods ok to use with the Music Maker shield. Are other undocumented features and methods that would be helpful to know?

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Using Keypad with Music Maker Shield

Post by adafruit_support_rick »

I think those are the only two functions that didn't make it into the library reference.

I'll work on the tutorial a bit. Thanks for the feedback!

User avatar
noopara
 
Posts: 45
Joined: Tue Oct 14, 2014 2:44 pm

Re: Using Keypad with Music Maker Shield

Post by noopara »

How about all of this:
https://github.com/adafruit/Adafruit_VS ... t_VS1053.h

Does all of this apply to the Music Maker?

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Using Keypad with Music Maker Shield

Post by adafruit_support_rick »

Yes, that applies. But most of those in class Adafruit_VS1053 are only for use internally. They really shouldn't be declared as public.

User avatar
ppressle
 
Posts: 7
Joined: Wed Apr 27, 2016 11:57 am

Re: Using Keypad with Music Maker Shield

Post by ppressle »

Related question. Can the GPIO inputs on the Music Maker shield be used with the Keypad library or easily be made to work with it? It looks like the keypad library hides the hardware and the GPIO inputs have a different access method than the Arduino inputs.

Thanks

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Using Keypad with Music Maker Shield

Post by adafruit_support_rick »

I have no idea. I suppose anything is possible.

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino Shields from Adafruit”