"We Are One" (The Lion King 2) Tone Using Arduino
by acerlaguinto7 in Circuits > Arduino
1363 Views, 6 Favorites, 0 Comments
"We Are One" (The Lion King 2) Tone Using Arduino
Components
1. Arduino (with Arduino Cable)
2. Speaker or Buzzer
3. Connecting Wires
4. Your Laptop
Gather the Required Components.
You need the components listed above. For Arduino, you can use Uno, Mega, or Nano.
Connect the Components Together
1. Connect the speaker to the pin 7 of Arduino and to the Ground.
2. Connect the Arduino to your Laptop through the Arduino Cable.
Upload the Code to Your Arduino
1. Once your components are connected together, open your Arduino IDE.
2. Copy and Paste the code below to the Arduino IDE.
3. Upload the Code to your Arduino.
"We Are One" Tone Code:
//We are one Melody by Acer M. Laguinto 01/25/20 int music=7; void setup(){ } void loop(){ tone(music, 698); delay(400); tone(music, 784); delay(200); tone(music, 880); delay(400); tone(music, 784); delay(400); tone(music, 698); delay(400); tone(music, 659); delay(400); tone(music, 698); delay(1000); noTone(music); delay(25); tone(music, 698); delay(400); noTone(music); delay(25); tone(music, 698); delay(200); tone(music, 659); delay(400); tone(music, 698); delay(400); tone(music, 659); delay(400); tone(music, 523); delay(400); tone(music, 587); delay(2600); noTone(music); delay(25); tone(music, 587); delay(400); tone(music, 523); delay(200); noTone(25); tone(music, 523); //Start of Double ledger lines delay(3400); noTone(music); delay(800); tone(music, 698); delay(400); tone(music, 784); delay(200); tone(music, 880); delay(400); tone(music, 784); delay(400); tone(music, 698); delay(400); tone(music, 659); delay(400); tone(music, 698); delay(600); noTone(music); delay(400); tone(music, 698); delay(400); tone(music, 784); delay(400); tone(music, 698); delay(600); tone(music, 659); delay(400); tone(music, 523); delay(400); tone(music, 587); delay(1000); noTone(music); delay(1200); tone(music, 523); delay(400); noTone(25); tone(music, 523); delay(400); noTone(25); tone(music, 523); delay(1200); noTone(music); // End of third line delay(2400); tone(music, 698); delay(400); tone(music, 784); delay(200); tone(music, 880); delay(400); tone(music, 784); delay(400); tone(music, 698); delay(400); tone(music, 659); delay(400); tone(music, 698); delay(600); noTone(music); delay(400); tone(music, 698); delay(400); tone(music, 784); delay(400); tone(music, 698); delay(600); tone(music, 659); delay(400); tone(music, 523); delay(400); tone(music, 587); delay(1000); noTone(music); delay(800); noTone(400); tone(music, 587); delay(200); tone(music, 523); delay(400); noTone(music); delay(25); tone(music, 523); delay(400); noTone(25); tone(music, 523); delay(1000); noTone(music); delay(1600); tone(music, 698); delay(400); tone(music, 784); delay(400); tone(music, 880); delay(800); tone(music, 934); //changed from 988 delay(200); tone(music, 1047); delay(600); tone(music, 934); //changed from 988 delay(800); tone(music, 880); delay(400); tone(music, 698); delay(400); tone(music, 784); delay(400); tone(music, 880); delay(200); tone(music, 784); delay(400); tone(music, 698); delay(400); tone(music, 587); delay(1000); noTone(music); delay(25); tone(music, 587); delay(200); tone(music, 659); delay(400); tone(music, 698); delay(600); noTone(music); delay(25); tone(music, 698); delay(400); noTone(music); delay(25); tone(music, 698); delay(600); noTone(music); delay(25); tone(music, 698); delay(800); tone(music, 784); delay(200); tone(music, 880); delay(600); tone(music, 784); delay(800); noTone(music); delay(1600); tone(music, 698); delay(400); tone(music, 784); delay(400); tone(music, 880); delay(800); tone(music, 934); delay(200); tone(music, 1047); delay(600); tone(music, 934); delay(800); tone(music, 880); delay(400); tone(music, 698); //End of fifth line delay(400); tone(music, 784); delay(400); tone(music, 880); delay(200); tone(music, 784); delay(400); tone(music, 698); delay(400); tone(music, 587); delay(1800); noTone(music); delay(800); tone(music, 587); delay(200); tone(music, 698); delay(800); noTone(music); delay(25); tone(music, 698); delay(200); tone(music, 880); delay(400); tone(music, 784); delay(1000); tone(music, 698); delay(200); tone(music, 659); delay(600); tone(music, 698); delay(1600); noTone(music); delay(800); tone(music, 1047); //Interlude delay(400); noTone(music); delay(25); tone(music, 1047); delay(200); noTone(music); delay(25); tone(music, 1047); delay(200); noTone(music); delay(800); tone(music, 1047); delay(400); noTone(music); delay(25); tone(music, 1047); delay(200); noTone(music); delay(25); tone(music, 1047); delay(200); noTone(music); delay(800); tone(music, 934); delay(1000); noTone(music); delay(25); tone(music, 934); delay(400); tone(music, 1047); delay(1000); noTone(music); delay(400); tone(music, 1047); //Interlude delay(400); noTone(music); delay(25); tone(music, 1047); delay(200); noTone(music); delay(25); tone(music, 1047); delay(200); noTone(music); delay(800); tone(music, 1047); delay(400); noTone(music); delay(25); tone(music, 1047); delay(200); noTone(music); delay(25); tone(music, 1047); delay(200); noTone(music); delay(800); tone(music, 934); delay(1000); noTone(music); delay(25); tone(music, 934); delay(400); tone(music, 1047); delay(1000); noTone(music); delay(400); }