Loading...
Pages: [1]   Go Down
Author Topic: Arduino 8ohm Small Piezo Speaker: Can you play two Tones at once? Like chords?  (Read 1073 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: 272
Posts: 25439
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: 96
Posts: 6354
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

Global Moderator
Melbourne, Australia
Offline Offline
Shannon Member
*****
Karma: 218
Posts: 13896
Lua rocks!
View Profile
WWW
 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
Print
 
Jump to: