WaveShield OK with Diecimila, not with Uno

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

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
cearnsh
 
Posts: 4
Joined: Thu Aug 16, 2012 11:34 am

WaveShield OK with Diecimila, not with Uno

Post by cearnsh »

I've just built a v1.1 Wave Shield kit. It works perfectly with my old Arduino (Diecimila board upgraded to a 328) using a couple of different SD cards, but gives an initialisation error running on a Uno board -
card.init failed
SD error
errorCode: 1
errorData: FF (sometimes 0)

This is using the SdReadTest program from the WaveHC library in Arduino 1.0 (under Ubuntu 12.04). Playback of audio files with daphc is also fine using the Diecimila. I know I can just carry on using the Diecimila - but faults like this bug me and I'd like to understand what's going wrong on the Uno! I don't think it's a construction fault - I've checked the shield thoroughly, and anyway it always works with the 'right' Arduino.

Any pointers for things to try, or online references (I've searched but could find anything) will be gratefully received.

Chris

User avatar
adafruit_support_bill
 
Posts: 88086
Joined: Sat Feb 07, 2009 10:11 am

Re: WaveShield OK with Diecimila, not with Uno

Post by adafruit_support_bill »

Try running the "cardinfo" sketch from the SD library. It gives more detailed diagnostic messages.

User avatar
cearnsh
 
Posts: 4
Joined: Thu Aug 16, 2012 11:34 am

Re: WaveShield OK with Diecimila, not with Uno

Post by cearnsh »

Cardinfo with the WaveShield on the Uno gives -
Initializing SD card...initialization failed. Things to check:
* is a card is inserted?
* Is your wiring correct?
* did you change the chipSelect pin to match your shield or module?

The same shield/card on the Diecimila gives -
Initializing SD card...Wiring is correct and a card is present.

Card type: SD1

Volume type is FAT16

Volume size (bytes): 63283200
Volume size (Kbytes): 61800
Volume size (Mbytes): 60

Files found on the card (name, date and size in bytes):
(-- lists all the files on the card --)

So the behaviour is at least consistent between the different sketches...

User avatar
adafruit_support_bill
 
Posts: 88086
Joined: Sat Feb 07, 2009 10:11 am

Re: WaveShield OK with Diecimila, not with Uno

Post by adafruit_support_bill »

Interesting symptoms. Not sure what is going on there :?

As far as the wave shield is concerned, there shouldn't be much difference between an Diecimila with a 328 and an UNO. The SD card SPI interface uses pins 10-13. It is possible that there is either an electrical or physical problem with the UNO that prevents proper operation of one or more of those pins.

Have you tried the UNO with any other SPI devices or shields?

User avatar
cearnsh
 
Posts: 4
Joined: Thu Aug 16, 2012 11:34 am

Re: WaveShield OK with Diecimila, not with Uno

Post by cearnsh »

A similar thought had occurred to me. I have an ethernet shield but had not previously used the microSD card slot. That also works fine with the Diecimila but not the Uno. So it looks like the WaveShield is in the clear :) but there's a big cloud over the Uno :(
I don't have any other SPI devices but will look into other ways to test the Uno board. The only other thing is that I removed the resistor to disable the on-board LED on the Diecimila. This surely it can't be significant though - most Arduinos have this circuit in place.

Many thanks for your help - and I'm glad it wasn't the WaveShield at fault!

Chris

User avatar
pburgess
 
Posts: 4161
Joined: Sun Oct 26, 2008 2:29 am

Re: WaveShield OK with Diecimila, not with Uno

Post by pburgess »

I hate to be That Guy™, but is the Uno in question the real deal or an eBay BANNED?

User avatar
cearnsh
 
Posts: 4
Joined: Thu Aug 16, 2012 11:34 am

Re: WaveShield OK with Diecimila, not with Uno

Post by cearnsh »

Always worth asking these things - but it is the Genuine Article.

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

Return to “Arduino Shields from Adafruit”