Pages: [1]   Go Down
Author Topic: Arduino multi sound  (Read 1196 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,

I am currently working on a new project that combine 4 different audio outputs that supposed to play through one speaker.
Right now, I'm having difficulties playing more that two audio outputs on the same time. (using Tone Library)
I'd appreciate any help with this issue.

Thanks
Logged

Manchester (England England)
Online Online
Brattain Member
*****
Karma: 602
Posts: 33375
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
new project that combine 4 different audio outputs
What sort of outputs, is the arduino going to generate them?
Logged

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

First, thanks for the quick reply.

Yes, I'm using the Tone.Play() function to generate the sounds by giving the frequency
Logged

Manchester (England England)
Online Online
Brattain Member
*****
Karma: 602
Posts: 33375
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Have you seen this:-
http://wiki.animusoft.com/tutorials/arduino-tutorials/arduino-digital-ports-tutorials/arduino-playing-tones-on-multiple-outputs-using-the-tone-function-example/
Logged

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

Thanks again,

That's example shows how to play asynchronously 3 sounds. what I'm trying to do is to play different sound on the same time.
Is there's an option to "like" multithread audio processes using timers?
Logged

Manchester (England England)
Online Online
Brattain Member
*****
Karma: 602
Posts: 33375
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes it can be done. You need to use google to find examples, try this one
http://www.jeremyblum.com/2010/09/05/driving-5-speakers-simultaneously-with-an-arduino/
Logged

Pages: [1]   Go Up
Jump to: