Hello,
New Arduino Mega2650 and WaveShield owner here, just finished soldering up my WaveShield 1.1 lastnight and suprise it did not operate so after rechecking all hardware assembly off to the forum to gather information and after a few hours I found this thread! Glad to see someone has documented this issue.
So just to try and get a line on exactly what all I need to do to get my waveshield 1.1 working with my mega2560 with the WaveHC library.
Sorry but the thread kind of drifted on and off topic and I want to get this right the first time. Could someone who has done this please confirm these are the required steps or did I miss anything.
2.1 Close the Arduino IDE
2.2 Download the two header files attached to this message: "dac.h" and "sd_raw_config.h", place them into arduino/hardware/libraries/AF_Wave/ replacing the original files.
2.3 Delete the ".o" object files sitting in the same directory.
2.4 Using diagonal cutters, clip the header pins connected to digital pins 11, 12 and 13 on the shield. See this picture:
http://gregsadetsky.com/_files/ladyada- ... C_0093.JPG
2.5 Unsolder the jumper cable going from the "CCS" hole (next to the shield's reset button) to the digital pin 10 hole.
2.6 Make four 4-inch jumper cables; they should each be soldered on one side at: the "CCS" hole (see step 2.5), and the digital input/output holes 11, 12 and 13 on the shield. The other side of the four cables will connect with four of the Mega's digital pins. You should label the four cables with stickers.
See these pictures:
-
http://gregsadetsky.com/_files/ladyada- ... C_0089.JPG
-
http://gregsadetsky.com/_files/ladyada- ... C_0091.JPG
The cable going from the "CCS" hole on the shield connects with the digital pin 53 on the Mega.
The cable going from the digital input/output hole 11 on the shield connects with the digital pin 51 on the Mega.
The cable going from the digital input/output hole 12 on the shield connects with the digital pin 50 on the Mega.
The cable going from the digital input/output hole 13 on the shield connects with the digital pin 52 on the Mega.
2.7 You're done! You should be able to physically install the shield over the Mega, compile any example such as "PlayAllLoop", connect the Mega by USB and run it.
#######################################################################################################
If running Fat32 card using WaveHC
#######################################################################################################
If using the WaveHC stuff do I need the dac.h and sd_raw_config_h files from the link or are there counterpart files for the waveHC or is that what the mod listed below does?
You can try changing the SPI defines in SdReader.cpp from
Code: Select all
//SPI pin definitions
/** Slave Select pin for card */
#define SS 10
/** spi master output, slave input pin */
#define MOSI 11
/** spi master input, slave output pin */
#define MISO 12
/** spi serial clock pin */
#define SCK 13
to:
Code: Select all
#if defined(__AVR_ATmega1280__)
#define SS 53
#define MOSI 51
#define MISO 50
#define SCK 52
#else //__AVR_ATmega1280__
#define SS 10
#define MOSI 11
#define MISO 12
#define SCK 13
#endif //__AVR_ATmega1280__
. I deleted the .O files, reloaded pispeak_hc and she began to speak!
Thank you, thank you , now on to the next phase.
#######################################################################################################
Did I get it all ?
THanks for your help.
Toddah