Moderators: adafruit_support_bill, adafruit
2. Solution
NOTE: A more elegant (e.g. software-only) solution may be possible (see "3. Extra credit" below). For the time being, this works...
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.
--------
void loop(void)
{
byte i;
{
if (justpressed[0]) {
justpressed[0] = 0;
playfile("ON.WAV");
}
if (justpressed[1] ){
justpressed[1] = 0;
playfile("LOOP.WAV");
while (wave.isplaying && pressed[1]) {
//Serial.print(".");
}
wave.stop();
playfile("OFF.WAV");
}
} while (wave.isplaying && pressed[1]) {
//Serial.print(".");
}
That's good. It rules out any basic problems with the assembly.Hi, I just tried it with the my UNO and it works fine.
The change requires both cut & jumpering of pins and corresponding modifications to the library. Have you done both?I have remapped the pins as described
Return to Arduino Shields from Adafruit
Users browsing this forum: Bymbomietty, pburgess, samtcook and 3 guests