Talaan ng mga Nilalaman:

Astronomia Coffin Dance Meme Musika Gamit ang Arduino Uno: 5 Hakbang
Astronomia Coffin Dance Meme Musika Gamit ang Arduino Uno: 5 Hakbang

Video: Astronomia Coffin Dance Meme Musika Gamit ang Arduino Uno: 5 Hakbang

Video: Astronomia Coffin Dance Meme Musika Gamit ang Arduino Uno: 5 Hakbang
Video: Coffin Dance from TOO EASY to INSANE 2024, Nobyembre
Anonim
Astronomia Coffin Dance Meme Musika Gamit ang Arduino Uno
Astronomia Coffin Dance Meme Musika Gamit ang Arduino Uno

Ang blog na ito ay ipinakita namin sa iyo ang Astronomia Coffin Dance Tune With Arduino Uno

Tulad ng alam mo tungkol sa threading memes tungkol sa lungon astronomia ng kabaong

kaya't napagpasyahan kong gawin ang himig na ito gamit ang arduino uno

Narito ang mga hakbang at Mga Gamit na ginamit sa proyektong ito at arduino coding

Hakbang 1: Mga Bahagi

Image
Image

Ang mga kinakailangang sangkap ay:

  • Arduino Uno / Nodemcu
  • Jumper Wires
  • Tagapagsalita / Buzzer
  • BC547 Transistor (opsyonal)
  • Pinangunahan (opsyonal)

Hakbang 2: Arduino Connection Sa Speaker

Arduino Connection Sa Speaker
Arduino Connection Sa Speaker

Arduino kasama ang tagapagsalita

narito ginamit ko ang transfter ng bc547 bilang amplifier para sa nagsasalita

Hakbang 3: Koneksyon ng Arduino Sa Buzzer

Arduino Connection Sa Buzzer
Arduino Connection Sa Buzzer
Arduino Connection Sa Buzzer
Arduino Connection Sa Buzzer

Arduino Sa Buzzer

Hakbang 4: Arduino Code

Coffin Dance Arduino Code

Ang Astronomia codefor Arduino ay ibinibigay sa ibaba.

Kopyahin ang code sa ibaba at i-paste ito sa Arduino IDE pagkatapos ay i-upload sa Arduino board.

# tukuyin ang TANDAAN_B0 31

#define NOTE_C1 33 #define NOTE_CS1 35 #define NOTE_D1 37 #define NOTE_DS1 39 #define NOTE_E1 41 #define NOTE_F1 44 #define NOTE_FS1 46 #define NOTE_G1 49 #define NOTE_GS1 52 #define CAT 5 NOTE_C2 65 #define NOTE_CS2 69 #define NOTE_D2 73 #define NOTE_DS2 78 #define NOTE_E2 82 #define NOTE_F2 87 #define NOTE_FS2 93 #define NOTE_G2 98 #define NOTE_GS2 104 #define NOT2_Define_Define_Define_E2_Edefine_A2_Edefine_A2_Edefine_A2_Ef2_132 #define NOTE_CS3 139 #define NOTE_D3 147 #define NOTE_DS3 156 #define NOTE_E3 165 #define NOTE_F3 175 #define NOTE_FS3 185 #define NOTE_G3 196 #define NoteEGG3388 NOTE_CS4 277 #define NOTE_D4 294 #define NOTE_DS4 311 #define NOTE_E4 330 #define NOTE_F4 349 #define NOTE_FS4 370 #define NOTE_G4 392 #define NOTE_GS4 415 #define NOTE_A4Define_A4Tefine_AcueTefine_E452Ef5_04TefineTeaceTeaceTeace54T #define NOTE_D5 587 #define NOTE_DS5 622 #define NOTE_E5 659 #define NOTE_F5 698 #define NOTE_FS5 740 #define NOTE_G5 784 #define NOTE_GS5 831 #define NOTE_A5 880 #define NOTE_Define #Define_105 #Edefine_105 #EdefineTeace 0106Teace 0106 NOTE_D6 1175 #define NOTE_DS6 1245 #define NOTE_E6 1319 #define NOTE_F6 1397 #define NOTE_FS6 1480 #define NOTE_G6 1568 #define NOTE_GS6 1661 #define NOTE_A6 1760 #define NOTE_AS6 NOTE_AS6 NOTE_AS6 NOTE_AS6 NOTE_AS6 #Edine_A02EE 192 #define NOTE_DS7 2489 #define NOTE_E7 2637 #define NOTE_F7 2794 #define NOTE_FS7 2960 #define NOTE_G7 3136 #define NOTE_GS7 3322 #define NOTE_A7 3520 #define NOTE_AS7 3729 #define NOTE_D7 NOTE_DS8 4978 "int melody = {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_AS5, NOTE_AS5, NOTE_AS5, NOTE_AS5, NOTE_A5, NOTE_AS5, TANDAAN_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, note2 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, NOTE_G5, NOTE_C5, NOTE_AS4, NOTE_A4, 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, NOTEAS5, NOTA5, NOTE5 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, NOTEAA, 0 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}; // durations note: 4 = quarter note, 8 = ikawalong tala, atbp.: 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,}; void setup () {for (int thisNote = 0; thisNote <112; thisNote ++) {int noteDuration = 750 / noteDurations [thisNote]; tono (7, himig [thisNote], noteDuration); int pauseBetweenNotes = noteDuration * 1.30; antala (pauseBet pagitanNotes); noTone (7); }} void loop () {}

Inirerekumendang: