Pages: [1]   Go Down
Author Topic: Play WAV. through Arduino Due  (Read 222 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello everyone!

On my project the planning is to play an WAV. sound file, using a 4 Watt speaker. I'm using the Arduino Due for this project.
There is no ethernet shield on my Arduino.

The problem is that I can't get it to work!

I tried the Arduino example under, Reference->Audio->Begin(), but I can't assign the speaker to a pin.
Can anyone help me please with a working code?

Thanks!!
Luc
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 637
Posts: 34602
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Where are you getting the WAV data from?
It is normal to have this on an SD pin.
What have you tried that does not work, please post the code using the # box above the smiles.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The WAV. data is from a final cut pro audio file.
And we actualy do play it from an SD card.
We just tried the audio example for Arduino, the only thing is that we don't understand how to assing a pin to a speaker using that code.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

This is the example file from Arduino we are using.
I hope you can help us!

Luc

* sketch_sep13a.ino (1.27 KB - downloaded 1 times.)
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 637
Posts: 34602
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

You don't assign a pin you can only use the A/D outputs of the chip, it is a fixed pin.
Logged

0
Online Online
Shannon Member
****
Karma: 218
Posts: 12594
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


Quote
I tried the Arduino example under, Reference->Audio->Begin(), but I can't assign the speaker to a pin.

Well if you read the Reference->Libraries->Audio page you'd have seen this as the
third line:

Quote
The Due uses the DAC0 and DAC1 pins to play sounds.
Logged

[ I won't respond to messages, use the forum please ]

Pages: [1]   Go Up
Jump to: