And i do not want to use any kind of MP3 or WAV Player as this is a complete overkill for just generating a pleasant beep
Since the Arduino is a digital device, you are going to at-least need a digital-to-analog converter. You could algorithmically generate some tones, or you could read WAV or MP3 data from memory. Reading from a file/memory seems easier to me...
Or if you don't mind square or rectangular waves, you can skip the DAC.
DVDdoug:
Reading from a file/memory seems easier to me...
Or if you don't mind square or rectangular waves, you can skip the DAC.
Hello,
well, reading a file would be a possible solution, but in fact the internal memory seams to be to limited so store some WAV files and adding a external SD Card just for generating a few beeps is not an elegant solution.
At the moment i dont care much about rectangular waves as the old Siemens device also did no have a pure sinewave output as well and it still sounds harmonic to some extent. Nevertheless, there is some sort of fade out of the Volume...
But if you want to emulate the behaviour of the SAB0600 playing up to three tones simultanously, with a special wave pattern and with an envelope curve of decreasing volume, things can become much more complicated.
elektron_:
And i do not want to use any kind of MP3 or WAV Player as this is a complete overkill for just generating a pleasant beep
Short PCM wave patterns can also be stored in PROGMEM data within the compiled program (8KB data in PROGMEM = 1 second playtime).