Pages: [1]   Go Down
Author Topic: Arduino 8ohm Small Piezo Speaker: Can you play two Tones at once? Like chords?  (Read 2344 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Arduino 8ohm Small Piezo Speaker: Can you play two Tones at once? Like chords?

Is it possible to do this with just one speaker?
Logged

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

Quote
Is it possible to do this with just one speaker?
Yes, you can have many ones from one speaker look at this project of mine:-
Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 180
Posts: 8096
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

This third-party Tone library can play simultaneous square waves on multiple pins:

http://code.google.com/p/rogue-code/wiki/ToneLibraryDocumentation

You can connect resistors between the multiple pins and a single speaker to get all tones out of one speaker.
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 452
Posts: 18694
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes, you can have many ones from one speaker look at this project of mine:-

Well, Mike, you can tell you are an engineer. That box looks fantastic. My projects on the other hand look a complete mess. smiley
Logged

Pages: [1]   Go Up
Jump to: