INHOUDSOPGAWE:
Video: Astronomia Coffin Dance Meme Music Using Arduino Uno: 5 Stappe
2025 Outeur: John Day | [email protected]. Laas verander: 2025-01-13 06:56
Hierdie blog het ons jou gewys Astronomia Coffin Dance Tune With Arduino Uno
Soos u almal weet oor die drade van memes oor sterrekuns van doodskis
daarom het ek besluit om hierdie melodie te maak met behulp van arduino uno
Hier is die stappe en benodigdhede wat in hierdie projek gebruik word en arduino -kodering
Stap 1: Komponente
Die vereiste komponente is:
- Arduino Uno / Nodemcu
- Jumper Wires
- Luidspreker/gonser
- BC547 Transistor (opsioneel)
- Led (opsioneel)
Stap 2: Arduino -verbinding met luidspreker
Arduino met luidspreker
hier het ek bc547 transistor as versterker vir die luidspreker gebruik
Stap 3: Arduino -verbinding met 'n zoemer
Arduino Met Gonser
Stap 4: Arduino -kode
Kisdans Arduino -kode
Astronomia -kode vir Arduino word hieronder gegee.
Kopieer die onderstaande kode en plak dit in Arduino IDE en laai dit dan op na die Arduino -bord.
#definieer NOTA_B0 31
#define NOTA_C1 33 #definieer NOTE_CS1 35 #definieer NOTE_D1 37 #definieer NOTE_DS1 39 #definieer NOTE_E1 41 #definieer NOTE_F1 44 #definieer NOTE_FS1 46 #definieer NOTE_G1 49 #definieer NOTE_GS1 52 #definieer NOTE_A1 55 #definieer NOTA_ NOTE_C2 65 #definieer NOTE_CS2 69 #definieer NOTE_D2 73 #definieer NOTE_DS2 78 #definieer NOTE_E2 82 #definieer NOTE_F2 87 #definieer NOTE_FS2 93 #definieer NOTE_G2 98 #definieer NOTE_GS2 104 #definieer NOTE_A2 110 #definieer NOTE_AS1 117_def #definieer NOTE_CS3 139 #definieer NOTE_D3 147 #definieer NOTE_DS3 156 #definieer NOTE_E3 165 #definieer NOTE_F3 175 #definieer NOTE_FS3 185 #definieer NOTE_G3 196 #definieer NOTE_GS3 208 #definieer NOTE_A3 220 #definieer NOTE_AS3 233 #definieer NOTE_AS3 233 #definieer NOTE_AS3 233 # NOTE_CS4 277 #definieer NOTE_D4 294 #definieer NOTE_DS4 311 #definieer NOTE_E4 330 #definieer NOTE_F4 349 #definieer NOTE_FS4 370 #definieer NOTE_G4 392 #definieer NOTE_GS4 415 #definieer NOTE_A4 440 #definieer NOTE_AS4_54_54 #definieer NOTE_AS4_54 #definieer NOTE_AS4_54 #definieer NOTA_AS4_54 #definieer NOTE_AS4_54 #definieer NOTE_AS4_54_54 #definieer NOTE_AS4_54 # #define NOTE_D5 587 #definieer NOTE_DS5 622 #definieer NOTE_E5 659 #definieer NOTE_F5 698 #definieer NOTE_FS5 740 #definieer NOTE_G5 784 #definieer NOTE_GS5 831 #definieer NOTE_A5 880 #definieer NOTE_AS5 932 #define NOTA_define #define10de #define10de #define10de #define10de #defineer_opmerkings_defineer NOTE_D6 1175 #definieer NOTA_DS6 1245 #definieer NOTE_E6 1319 #definieer NOTE_F6 1397 #definieer NOTE_FS6 1480 #definieer NOTE_G6 1568 #definieer NOTE_GS6 1661 #definieer NOTE_A6 1760 #definieer NOTE_AS6 1865 #definieer NOTE_B6_de_7_3_7_6_7_7_f7_3_7_7_f7_3_7_defineer_notas_D6_7_7_7_7_f7_7_7_7_7_7_f7_7_defineer_notas_D6_7_7_7_7_7_7_7_7_7_7_7_7_7_7_7_7_7_7_7_7_7_7_7_7_D6_7_7_7_7_7_7_7_7_7_7_D7_7_6_7_7_de #define NOTE_DS7 2489 #definieer NOTE_E7 2637 #definieer NOTE_F7 2794 #definieer NOTE_FS7 2960 #definieer NOTE_G7 3136 #definieer NOTE_GS7 3322 #definieer NOTE_A7 3520 #definieer NOTE_AS7 3729 #definieer NOTE_B7 3951 #define NOTE_define #define #define #define #define_defineer_defineer_definisie NOTE_DS8 4978 "int melodie = {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, 0_ NOTE5, 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_AS4, NOTE_AS4, NOTE4 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, NOTE_G5, NOTE_G5, NOTE5 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_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, 0, NOTE_AS4, 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}; // nootduur: 4 = kwartnoot, 8 = agtste noot, ens.: int nootDurations = {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, 4, 4, 4, 4, 4, 4, 4, 4, 4,}; ongeldige opstelling () {vir (int thisNote = 0; thisNote <112; thisNote ++) {int noteDuration = 750 / noteDurations [thisNote]; toon (7, melodie [hierdie opmerking], nootduur); int pauseBetweenNotes = noteDuration * 1,30; vertraging (pauseBetweenNotes); noTone (7); }} leemte lus () {}