Introduction: Astronomia Coffin Dance Song Using Arduino & Buzzer

About: Youtuber | Electrical Engineer | Electronics Lover | Project Developer | Article Writer |

Hello everyone welcome back to “Technoesolution,” In this tutorial, we are going to play a world famous & my favorite “Astronomia Coffin Dance Meme Song Using Arduino & Buzzer.” This is fun project for beginners. In this project, we just need arduino uno & Buzzer, Instead of buzzer we can also use mini speaker to play this meme song.so let’s make it….

Follow Me On :-

| YOUTUBE | INSTAGRAM | FACEBOOK | INSTRUCTABLES | DAILYMOTION | HACKSTER |

If you like this project subscribe us on Youtube, So without wasting time Let's get started..............

Step 1: MATERIAL REQUIRED

To make this project we need some components (But Buy Link Provided):-

  1. Arduino Uno X 1
  2. Buzzer X 1

Step 2: CIRCUIT DIAGRAM

Follow Circuit Diagram to make the connection.

Arduino To Buzzer

  • D10 > +ve
  • GND > -ve

Next PCB

NextPCB is a high-quality PCB Manufacturer. With professional PCB manufacturing capabilities, our PCB engineers with more than 10 years of experience will double-check your engineering files.

NextPCB is certified by IATF16949, ISO9001, ISO14001, UL, CQC, RoHS and REACH; more importantly, we handle the whole process including the PCB prototype, PCB manufacturing, PCB assembly, testing, and final shipment. We are capable of assembling BGA, Micro-BGA, QFN, and other leadless package parts. We also have an online parts shop, you can choose any parts you need.

If you want a Printed circuit board go through the NEXT PCB

Step 3: INCLUDE "pitches.h"LIBRARY TO ARDUINO IDE

To make this project we need “Pitches.h” library in arduino IDE. Follow following steps to add this library in Arduino IDE software.

  1. Open Arduino IDE Software.
  2. Select Sketch > Include Library > Add. Zip library.
  3. New dialog box will open.
  4. Select Zip file. (Download Zip File)
  5. Click on Open Button.

Now Arduino “Pitches.h” Library is successfully Installed in your Arduino IDE.

Step 4: ARDUINO CODE

Simply Copy the following code & upload in your Arduino IDE software.


// Hello friends Welcome to "TECHNO-E-SOLUTION"
// Here is the code for Coffin Song

#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_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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);}
}

Step 5: DEMO & TESTING

If you Like this project do subscribe for latest projects

Step 6: NextDFM Software From NextPCB

A PCB Design Problems Detector, An Engineering Solution Provider Import the Gerber file with one click. No need for complicated file reading steps to review easily and improve efficiency.

Download Software Help you quickly familiarize DFM design specifications and production needs to determine whether there are any manufacturing constraints

Features

Make PCB design more standard Prevent the quality flaw Impedance calculation function and lamination automation Automatically generate the best puzzle CAM350 free alternative version Check Gerber files anytime, anywhere and parse it with one click Instate Quote and evaluate delivery time Reduce cost and improve benefit these are advantage comparing to Eagle and Altium.

Anything Goes Contest

Participated in the
Anything Goes Contest