Wave shield for Arduino Mega

For other supported Arduino products from Adafruit: Shields, accessories, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
TLeske
 
Posts: 56
Joined: Sat Jan 11, 2014 8:30 am

Wave shield for Arduino Mega

Post by TLeske »

I purchased the Adafruit audio shield (v1.1) from the Robot Shop in Montreal (see attached photo). Could you please tell me if there is a way to get it working on an Arduino Mega (2560) board. Thanks
Attachments
IMG_0698.jpg
IMG_0698.jpg (401.97 KiB) Viewed 625 times

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

Re: Wave shield for Arduino Mega

Post by adafruit_support_bill »

The shield is designed to work with an UNO, but others have modified it to work on the Mega: http://forums.adafruit.com/viewtopic.php?f=31&t=10939

TLeske
 
Posts: 56
Joined: Sat Jan 11, 2014 8:30 am

Re: Wave shield for Arduino Mega

Post by TLeske »

Thanks. Is there anyone who can help if I run into problems? It seems that the support on the site that you sent is locked.

User avatar
adafruit_support_mike
 
Posts: 67485
Joined: Thu Feb 11, 2010 2:51 pm

Re: Wave shield for Arduino Mega

Post by adafruit_support_mike »

TLeske wrote:Thanks. Is there anyone who can help if I run into problems?
That's what we do here. ;-)

TLeske
 
Posts: 56
Joined: Sat Jan 11, 2014 8:30 am

Re: Wave shield for Arduino Mega

Post by TLeske »

Thanks. I followed the instructions at http://forums.adafruit.com/viewtopic.php?f=31&t=10939, but i) I could not find any ".o" object files in the AF_Wave library, ii) there was no jumper cable from "CCS" to digital pin 10 for me to unsolder. I get the following error message when I run the PlatAllLoop example:

In file included from /Users/tonyleske/Documents/Arduino/libraries/AF_Wave/sd_raw.h:15,
from /Users/tonyleske/Documents/Arduino/libraries/AF_Wave/AF_Wave.h:5,
from PlayAllLoop.pde:1:
/Users/tonyleske/Documents/Arduino/libraries/AF_Wave/sd_raw_config.h:89:6: error: #error "no sd/mmc pin mapping available!"

Also, do I need to have an SD card to run this example? Thanks for your help

TLeske
 
Posts: 56
Joined: Sat Jan 11, 2014 8:30 am

Re: Wave shield for Arduino Mega

Post by TLeske »

So, I have purchased the UNO just to run this shield, and I still get the following error trying to run the PlayAllLoop example:

In file included from /Users/tonyleske/Documents/Arduino/libraries/AF_Wave/sd_raw.h:15,
from /Users/tonyleske/Documents/Arduino/libraries/AF_Wave/AF_Wave.h:5,
from PlayAllLoop.pde:1:
/Users/tonyleske/Documents/Arduino/libraries/AF_Wave/sd_raw_config.h:88:6: error: #error "no sd/mmc pin mapping available!"

PLEASE help. Thanks

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

Re: Wave shield for Arduino Mega

Post by adafruit_support_bill »

As noted in the documentation, AF_Wave is not supported anymore. It is not compatible with SDHC cards and may have conflicts with later versions of the IDE.

You should be using the WaveHC library and examples. http://learn.adafruit.com/adafruit-wave ... hc-library

TLeske
 
Posts: 56
Joined: Sat Jan 11, 2014 8:30 am

Re: Wave shield for Arduino Mega

Post by TLeske »

OK, thanks. I now have the Wave HC library. I have formatted the sd card as instructed, and used Audacity to save a wav file to the card as instructed. When I try and run the daphc example, I get the following errors;
daphc:7: error: 'SdReader' does not name a type
daphc:8: error: 'FatVolume' does not name a type
daphc:9: error: 'FatReader' does not name a type
daphc:10: error: 'WaveHC' does not name a type
daphc:13: error: 'dir_t' does not name a type
daphc:22: error: variable or field 'play' declared void
daphc:22: error: 'FatReader' was not declared in this scope
daphc:22: error: 'dir' was not declared in this scope
daphc.pde: In function 'void setup()':
daphc:28: error: 'putstring_nl' was not declared in this scope
daphc:30: error: 'putstring' was not declared in this scope
daphc:31: error: 'FreeRam' was not declared in this scope
daphc:34: error: 'card' was not declared in this scope
daphc:39: error: 'card' was not declared in this scope
daphc:44: error: 'vol' was not declared in this scope
daphc:55: error: 'vol' was not declared in this scope
daphc:58: error: 'root' was not declared in this scope
daphc:66: error: 'root' was not declared in this scope
daphc:66: error: 'LS_R' was not declared in this scope
daphc:66: error: 'LS_FLAG_FRAGMENTED' was not declared in this scope
daphc.pde: In function 'void loop()':
daphc:71: error: 'root' was not declared in this scope
daphc:72: error: 'play' was not declared in this scope
daphc.pde: In function 'void error_P(const char*)':
daphc:80: error: 'PgmPrint' was not declared in this scope
daphc:81: error: 'SerialPrint_P' was not declared in this scope
daphc.pde: In function 'void sdErrorCheck()':
daphc:89: error: 'card' was not declared in this scope
daphc:90: error: 'PgmPrint' was not declared in this scope
daphc:91: error: 'card' was not declared in this scope
daphc.pde: At global scope:
daphc:99: error: variable or field 'play' declared void
daphc:99: error: 'FatReader' was not declared in this scope
daphc:99: error: 'dir' was not declared in this scope


Can you please help?

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

Re: Wave shield for Arduino Mega

Post by adafruit_support_bill »

'SdReader' does not name a type
That error means that the compiler was not able to find the library in the expected location. Make sure you have installed WaveHC in your sketchbook library folder.

See this tutorial for details: http://learn.adafruit.com/adafruit-all- ... nstall-use

TLeske
 
Posts: 56
Joined: Sat Jan 11, 2014 8:30 am

Re: Wave shield for Arduino Mega

Post by TLeske »

Thanks. Basic error - sorry :(

I now get this error:

card.init failed
SD error
errorCode: 1
errorData: 0

Is there anything in the code that I must change to read the card?

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

Re: Wave shield for Arduino Mega

Post by adafruit_support_rick »

Please post pictures of both sides of the wave shield, showing your assembly and soldering.

TLeske
 
Posts: 56
Joined: Sat Jan 11, 2014 8:30 am

Re: Wave shield for Arduino Mega

Post by TLeske »

Attached, thanks.
Attachments
photo3.jpg
photo3.jpg (114.91 KiB) Viewed 547 times
photo2.jpg
photo2.jpg (118.44 KiB) Viewed 547 times
photo1.jpg
photo1.jpg (92.17 KiB) Viewed 547 times

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

Re: Wave shield for Arduino Mega

Post by adafruit_support_rick »

You're missing the jumper wires from the CCS, LAT, DI, CLK, and LCS pads.

TLeske
 
Posts: 56
Joined: Sat Jan 11, 2014 8:30 am

Re: Wave shield for Arduino Mega

Post by TLeske »

i thought that this was only if one is using the Mega. I bought an Uno especially to run the wave shield. Does the Uno also need the jumpers? Thanks

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

Re: Wave shield for Arduino Mega

Post by adafruit_support_bill »

Jumpers are required. For use on the UNO, they should be installed as in the tutorial. For use on a Mega, they should connect to the Mega equivalent pins;

http://learn.adafruit.com/adafruit-wave ... ino/solder
Image

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

Return to “Other Arduino products from Adafruit”