Sisukord:

Astronomia Coffin Dance Meme Music, kasutades Arduino Unot: 5 sammu
Astronomia Coffin Dance Meme Music, kasutades Arduino Unot: 5 sammu

Video: Astronomia Coffin Dance Meme Music, kasutades Arduino Unot: 5 sammu

Video: Astronomia Coffin Dance Meme Music, kasutades Arduino Unot: 5 sammu
Video: Coffin Dance Meme Song / Astronomia (Cover) 2024, November
Anonim
Astronomia Coffin Dance Meme Music, kasutades Arduino Unot
Astronomia Coffin Dance Meme Music, kasutades Arduino Unot

Selles blogis oleme näidanud teile Astronomia Coffin Dance Tune With Arduino Uno

Nagu te kõik teate kirstutantsu astronoomia teemaliste meemide keermestamisest

nii otsustasin selle meloodia teha arduino uno abil

Siin on selles projektis kasutatud sammud ja tarvikud ning arduino kodeerimine

Samm: komponendid

Image
Image

Nõutavad komponendid on:

  • Arduino Uno / Nodemcu
  • Jumper juhtmed
  • Kõlar/helisignaal
  • BC547 transistor (valikuline)
  • LED (valikuline)

Samm: Arduino ühendus kõlariga

Arduino ühendus kõlariga
Arduino ühendus kõlariga

Arduino koos kõlariga

siin olen kõlari võimendina kasutanud bc547 transistorit

Samm: Arduino ühendus helisignaaliga

Arduino ühendus helisignaaliga
Arduino ühendus helisignaaliga
Arduino ühendus helisignaaliga
Arduino ühendus helisignaaliga

Arduino helisignaaliga

Samm: Arduino kood

Kirstu tants Arduino kood

Arduino astronoomia kood on toodud allpool.

Kopeerige allolev kood ja kleepige see Arduino IDE -sse, seejärel laadige see üles Arduino tahvlile.

#defineeri NOTE_B0 31

#defineeri NOTE_C1 33 #defineeri NOTE_CS1 35 #defineeri NOTE_D1 37 #defineeri NOTE_DS1 39 #defineeri NOTE_E1 41 #defineeri NOTE_F1 44 #defineeri NOTE_FS1 46 #defineeri NOTE_G1 49 #defineeri NOTE_GS1 52 #defineeri NOTE_A1 55 #defineeri NOTE_C2 65 #defineeri NOTE_CS2 69 #defineeri NOTE_D2 73 #defineeri NOTE_DS2 78 #defineeri NOTE_E2 82 #defineeri NOTE_F2 87 #defineeri NOTE_FS2 93 #defineeri NOTE_G2 98 #defineeri NOTE_GS2 104 #defineeri NOTE_A2 110 #defineeri NOTE_AS2 #defineeri NOTE_CS3 139 #defineeri NOTE_D3 147 #defineeri NOTE_DS3 156 #defineeri NOTE_E3 165 #defineeri NOTE_F3 175 #defineeri NOTE_FS3 185 #defineeri NOTE_G3 196 #defineeri NOTE_GS3 208 #defineeri NOTE_A3 220 #defineeri NOTE_AS3 23 NOTE_CS4 277 #defini #defineeri NOTE_D5 587 #defineeri NOTE_DS5 622 #defineeri NOTE_E5 659 #defineeri NOTE_F5 698 #defineeri NOTE_FS5 740 #defineeri NOTE_G5 784 #defineeri NOTE_GS5 831 #defineeri NOTE_A5 880 #defineeri NOTE_AS5 932 #defineeri NOTE_D6 1175 #defineeri NOTE_DS6 1245 #defineeri NOTE_E6 1319 #defineerima NOTE_F6 1397 #defineerima NOTE_FS6 1480 #defineerima NOTE_G6 1568 #defineerima NOTE_GS6 1661 #defineerima NOTE_A6 1760 #defineerima #defineerige NOTE_DS7 2489 #defineerige NOTE_E7 2637 #defineerige NOTE_F7 2794 #defineerige NOTE_FS7 2960 #defineerige NOTE_G7 3136 #defineerige NOTE_GS7 3322 #defineerige NOTE_A7 3520 #defineerige NOTE_AS7 3729 #defineerige NOTE_B7 3951 #de NOTE_DS8 4978 "int meloodia = {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_A4, NOTE_AS 5, NOTE_A5, NOTE_AS5, 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_4, NOTE_AS4, NOTE_AS4, NOTE_AS4, NOTE_AS4, NOTE_AS4 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, NOT5G, NOT5 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_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, NOT, 4E_4, 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}; // märkmete kestused: 4 = veerandnoot, 8 = kaheksas noot jne: 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, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4}}; void setup () {for (int thisNote = 0; thisNote <112; thisNote ++) {int noteDuration = 750 / noteDurations [thisNote]; toon (7, meloodia [seeMärkus], märkusKestus); int pauseBetweenNotes = noteDuration * 1.30; delay (pauseBetweenNotes); noTone (7); }} void loop () {}

Soovitan: