Issue with Wave Shield and Arduino Uno
Moderators: adafruit_support_bill, adafruit

Issue with Wave Shield and Arduino Uno

by rmarinheira on Sat Jun 08, 2013 5:44 am

Hi!
I am implementing a project that demands using all the pins available on the waveshield.
All is working fine except one thing: I am using a switch on pin 12 that works well untill I include on the Arduino code the required parts to open the partition on the sd card. After that, it just ignores all the inputs on the switch connected to pin12, and it should be initiated on "ON" state and it passes qutomatically to "off".
Any idea of what could be goin gon?
rmarinheira
 
Posts: 5
Joined: Sat Jun 08, 2013 5:41 am

Re: Issue with Wave Shield and Arduino Uno

by adafruit_support_bill on Sat Jun 08, 2013 5:54 am

Pin 12 not available since it is used by the shield. Pins 10, 11, 12 and 13 are the hardware SPI pins. These are required to communicate with the SD card.
http://www.ladyada.net/make/waveshield/faq.html

If you need additional pins, you can use a port expander such as one of the MCP230xx chips:
http://www.adafruit.com/products/593
http://www.adafruit.com/products/732
User avatar
adafruit_support_bill
 
Posts: 29092
Joined: Sat Feb 07, 2009 9:11 am

Re: Issue with Wave Shield and Arduino Uno

by rmarinheira on Sat Jun 08, 2013 5:57 am

Hi!
Thanks for your answer!
Strangely, though, I managed to use pin 11! Is that possible?
I thought that the only pins unavailable were those occupied by connections required to put the wave shield up and runnin (2, 3, 4, 5 and 10)!
rmarinheira
 
Posts: 5
Joined: Sat Jun 08, 2013 5:41 am

Re: Issue with Wave Shield and Arduino Uno

by adafruit_support_bill on Sat Jun 08, 2013 6:36 am

Strangely, though, I managed to use pin 11! Is that possible?

Pin 11 is MOSI (Master Out/Slave In) and is only used when writing to the SD card. You can probably get away with using it if as long as you are only reading from the card.
I thought that the only pins unavailable were those occupied by connections required to put the wave shield up and runnin (2, 3, 4, 5 and 10)!

Those pins are configurable in software. SPI communication on pins 11, 12 and 13 is fixed in the Atmega328 processor hardware.

This is noted in the tutorial (second to last step): http://www.ladyada.net/make/waveshield/solder.html
Pins 13, 12 and 11 are used to talk to the SD card and cant be changed. The rest of the pins, however, are more flexible. Still, for all the examples on the site we'll be using this wiring, so it is suggested to just go with this.

2 -> LCS
3 -> CLK
4 -> DI
5 -> LAT
10 -> CCS

You can use any sort of wire. Solder the jumper wires in place.
User avatar
adafruit_support_bill
 
Posts: 29092
Joined: Sat Feb 07, 2009 9:11 am

Re: Issue with Wave Shield and Arduino Uno

by soerena on Sat Jun 22, 2013 8:51 am

the pin 11 seems to always be HIGH. are you also experiencing this?
soerena
 
Posts: 51
Joined: Fri Nov 16, 2012 6:00 am