Wave shield for Arduino Mega
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
-
- Posts: 56
- Joined: Sat Jan 11, 2014 8:30 am
Wave shield for Arduino Mega
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 (401.97 KiB) Viewed 625 times
- adafruit_support_bill
- Posts: 88160
- Joined: Sat Feb 07, 2009 10:11 am
Re: Wave shield for Arduino Mega
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
-
- Posts: 56
- Joined: Sat Jan 11, 2014 8:30 am
Re: Wave shield for Arduino Mega
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.
- adafruit_support_mike
- Posts: 67485
- Joined: Thu Feb 11, 2010 2:51 pm
Re: Wave shield for Arduino Mega
That's what we do here.TLeske wrote:Thanks. Is there anyone who can help if I run into problems?
-
- Posts: 56
- Joined: Sat Jan 11, 2014 8:30 am
Re: Wave shield for Arduino Mega
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
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
-
- Posts: 56
- Joined: Sat Jan 11, 2014 8:30 am
Re: Wave shield for Arduino Mega
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
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
- adafruit_support_bill
- Posts: 88160
- Joined: Sat Feb 07, 2009 10:11 am
Re: Wave shield for Arduino Mega
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
You should be using the WaveHC library and examples. http://learn.adafruit.com/adafruit-wave ... hc-library
-
- Posts: 56
- Joined: Sat Jan 11, 2014 8:30 am
Re: Wave shield for Arduino Mega
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?
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?
- adafruit_support_bill
- Posts: 88160
- Joined: Sat Feb 07, 2009 10:11 am
Re: Wave shield for Arduino Mega
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.'SdReader' does not name a type
See this tutorial for details: http://learn.adafruit.com/adafruit-all- ... nstall-use
-
- Posts: 56
- Joined: Sat Jan 11, 2014 8:30 am
Re: Wave shield for Arduino Mega
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?
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?
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Wave shield for Arduino Mega
Please post pictures of both sides of the wave shield, showing your assembly and soldering.
-
- Posts: 56
- Joined: Sat Jan 11, 2014 8:30 am
Re: Wave shield for Arduino Mega
Attached, thanks.
- Attachments
-
- photo3.jpg (114.91 KiB) Viewed 547 times
-
- photo2.jpg (118.44 KiB) Viewed 547 times
-
- photo1.jpg (92.17 KiB) Viewed 547 times
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Wave shield for Arduino Mega
You're missing the jumper wires from the CCS, LAT, DI, CLK, and LCS pads.
-
- Posts: 56
- Joined: Sat Jan 11, 2014 8:30 am
Re: Wave shield for Arduino Mega
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
- adafruit_support_bill
- Posts: 88160
- Joined: Sat Feb 07, 2009 10:11 am
Re: Wave shield for Arduino Mega
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
http://learn.adafruit.com/adafruit-wave ... ino/solder
Please be positive and constructive with your questions and comments.