Posts

Showing posts with the label song

teri meri songs tone using arduino with circuit diagram and code

Image
Teri meri Arduino code. Arduino code,  copy and pest // Teri Meri Meri Teri Prem Kahani by "Future Technology RC" int BuzzerPin = 9; //buzzer is connected to Pin 9 of the Board. int LEDPin = 10; int length = 100; // the number of notes char notes[] = "DAGAFGAFGAGFEDEDC DEFEFEGAGFEDD DAGAFGAFGAGFEDEDC DEFEFEGAGFEDD DAGAFGAFGAGFEDEDC DEFEFEGAGFEDD "; // a space represents a rest int beats[] = { 2,1,2,1,2,1,2,1,2,2,1,1,2,2,1,1,1,1,2,1,2,1,1,2,2,2,1,2,2,2,1,1,2,2,1,2,2,2,1,2,2,2,2,1,2,2,1,2,1,1,2,1,2,1,2,2,1,2,2,2,1,2,1,1,2,1,2,1,2,1,2,2,1,1,2,2,1,1,1,2,1,2,1,1,2,2,2,1,2,2,2,1,2,2,2,1,2,2,2,1, };//Duration of each note int tempo = 300; //Change song speed here void playTone(int tone, int duration) {  //creating a square wave for the given duration   for (long i = 0; i < duration * 1000L; i += tone * 2) {     digitalWrite(BuzzerPin, HIGH);      digitalWrite(LEDPin, HIGH);     delayMicroseconds(tone);   ...