Astronomia Coffin Dance Song Using Arduino & Buzzer
by Technoesolution2020 in Circuits > Arduino
5076 Views, 0 Favorites, 0 Comments
Astronomia Coffin Dance Song Using Arduino & Buzzer
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..............
MATERIAL REQUIRED
To make this project we need some components (But Buy Link Provided):-
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
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.
- Open Arduino IDE Software.
- Select Sketch > Include Library > Add. Zip library.
- New dialog box will open.
- Select Zip file. (Download Zip File)
- Click on Open Button.
Now Arduino “Pitches.h” Library is successfully Installed in your Arduino IDE.
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_AS4,
NOTE_AS4, NOTE_AS4, NOTE_AS4,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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,
};
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);}
}
Downloads
DEMO & TESTING
If you Like this project do subscribe for latest projects
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.