I want to use an arduino chip to simulate the sound of the hooter at the end of a game. ( football rugby or whatever )
I have been using a real electromechanical horn from a scooter, but as the contacts wear it seems to draw more and more current and causes problems.
I did an Arduino search and found a few references to sound generators, but none of the threads actually got anywhere - although the ant farm choir at http://adamfranchino.net/2010/04/26/arduino-ant-farm/ is fascinating !!
The tone itself that I need is pretty low frequency without high harmonics.
( I can use one pwm to vary the level for the fade in fade out.)
I am probably reinventing the wheel here, but
If the repitition of the basic waveforem is low enough, couldn't I just have a look up table and just run through the sampled voltages that make up the waveform - I don't need a very high sample rate or frequency response.
I am not into audio, so there is probably a chip out there to sample/hold/digitise it for me to make the master copy.
Or could I use a very short ( 100mS? ) wav file ( or whatever ) edited from a recording of the real thing, that would fit in the memory space, and constantly loop?
A hooter is pretty warbly anyway...
Can the arduino play a short wav file ??
I can look on a scope and see when the pattern repeats itself - note to self, record a horn off the TV sport this weekend !
I would only need the arduino with a simple filter, a 20?watt amplifier chip as used in car radios, and a speaker.