COFFIN SONG WITH ARDUINO BUZZER

 


VIDEO:


 VIDEO LINK:

COFFIN SONG CODE:

//CREATIVE PRADEEP THE HOME OF ELECTRONICS//

#include <pitches.h>


// output pin is 10, you can change it down in the void setup.

#include "pitches.h"


int melody[] = {

  NOTE_AS4, NOTE_AS4, NOTE_AS4, NOTE_AS4,

  NOTE_AS4, NOTE_AS4, NOTE_AS4, NOTE_AS4,

  NOTE_AS4, NOTE_AS4, NOTE_AS4, NOTE_AS4,

  NOTE_AS4, NOTE_AS4, NOTE_AS4, NOTE_AS4,

  NOTE_AS4, NOTE_AS4, NOTE_AS4, NOTE_AS4,

  NOTE_D5, NOTE_D5, NOTE_D5, NOTE_D5,

  NOTE_C5, NOTE_C5, NOTE_C5, NOTE_C5, 

  NOTE_F5, NOTE_F5, NOTE_F5, NOTE_F5, 

  NOTE_G5, NOTE_G5, NOTE_G5, NOTE_G5,

  NOTE_G5, NOTE_G5, NOTE_G5, NOTE_G5, 

  NOTE_G5, NOTE_G5, NOTE_G5, NOTE_G5, 

  NOTE_C5, NOTE_AS4, NOTE_A4, NOTE_F4,

  NOTE_G4, 0, NOTE_G4, NOTE_D5,

  NOTE_C5, 0, NOTE_AS4, 0,

  NOTE_A4, 0, NOTE_A4, NOTE_A4,

  NOTE_C5, 0, NOTE_AS4, NOTE_A4, 

  NOTE_G4,0, NOTE_G4, NOTE_AS5,

  NOTE_A5, NOTE_AS5, NOTE_A5, NOTE_AS5,

  NOTE_G4,0, NOTE_G4, NOTE_AS5,

  NOTE_A5, NOTE_AS5, NOTE_A5, NOTE_AS5,

  NOTE_G4, 0, NOTE_G4, NOTE_D5,

  NOTE_C5, 0, NOTE_AS4, 0,

  NOTE_A4, 0, NOTE_A4, NOTE_A4,

  NOTE_C5, 0, NOTE_AS4, NOTE_A4, 

  NOTE_G4,0, NOTE_G4, NOTE_AS5,

  NOTE_A5, NOTE_AS5, NOTE_A5, NOTE_AS5,

  NOTE_G4,0, NOTE_G4, NOTE_AS5,

  NOTE_A5, NOTE_AS5, NOTE_A5, NOTE_AS5


 };



int noteDurations[] = {

  4,4,4,4,

  4,4,4,4,

  4,4,4,4,

  4,4,4,4,

  4,4,4,4,

  4,4,4,4,

  4,4,4,4,

  4,4,4,4,

  4,4,4,4,

  4,4,4,4,

  4,4,4,4,

  4,4,4,4,

  4,4,4,4,

  4,4,4,4,

  4,4,4,4,

  4,4,4,4,

  4,4,4,4,

  4,4,4,4,

  4,4,4,4,

  4,4,4,4,

  4,4,4,4,

  4,4,4,4,

  4,4,4,4,

  4,4,4,4,

  4,4,4,4,

  4,4,4,4,

  4,4,4,4,

  4,4,4,4,

  };


void setup() {

   

 

  }



void loop() 

{

  for (int thisNote = 0; thisNote < 112; thisNote++) 

   {


    int noteDuration = 750 / noteDurations[thisNote];

    tone(10, melody[thisNote], noteDuration);


    int pauseBetweenNotes = noteDuration * 1.30;

    delay(pauseBetweenNotes);

    

    noTone(10);}

}


CIRCUIT DIAGRAM:



  PITCHES LIBRARY:     https://drive.google.com/file/d/1kDdi912zP6dnJPC-CgIF69eR5FjPFBWV/view?usp=drivesdk



DESPACITO VERSION:


CODE:

https://drive.google.com/file/d/1tjJ3vJNn6axMbGo8r_EpccjHAonfSxFa/view?usp=drivesdk

CIRCUIT DIAGRAM:



MY CHANNEL LINK:https://youtube.com/c/CreativePradeep

Comments

Popular posts from this blog

SMART WIFI CONTROLLED DOOR LOCK SYSTEM USING ESP32

ARDUINO PULSEOXIMETER