Chime Sound "Doorbell" with Arduino - possible ?

Hello,

i want to generate some sort of "Doorbell" Chime Sound with the Arduino, i.e. something like the oldfashioned SAB0600:

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 :wink:

Is there any ready made Code or a Library doing this?

Thank You very much,
Christian

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 :wink:

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...

Christian

elektron_:
i want to generate some sort of "Doorbell" Chime Sound with the Arduino, i.e. something like the oldfashioned SAB0600:

https://www.youtube.com/watch?v=pX4ZyhJTbhY

The easiest way to generate three tones is playing three tones with the Arduino tone() function:

void loop() {
  // play notes 660Hz, 550Hz and 440Hz
  tone(6, 660);
  delay(700);
  tone(6, 550);
  delay(700);
  tone(6, 440);
  delay(700);
  noTone(6);
  delay(5000);
}

Creating fancy melodies is no problem.

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 :wink:

Short PCM wave patterns can also be stored in PROGMEM data within the compiled program (8KB data in PROGMEM = 1 second playtime).