
Índice:
2025 Autor: John Day | [email protected]. Última modificação: 2025-01-23 15:03

Neste blog mostramos a vocês Astronomia Coffin Dance Tune com Arduino Uno
Como todos vocês sabem sobre o enfileiramento de memes sobre a astronomia da dança do caixão
então decidi fazer essa melodia usando o arduino uno
Aqui estão as etapas e os suprimentos usados neste projeto e a codificação do arduino
Etapa 1: Componentes


Os componentes necessários são:
- Arduino Uno / Nodemcu
- Jumper Wires
- Alto-falante / campainha
- Transistor BC547 (opcional)
- Led (opcional)
Etapa 2: conexão do Arduino com alto-falante

Arduino com alto-falante
aqui eu usei o transistor bc547 como amplificador para o alto-falante
Etapa 3: Conexão Arduino com Buzzer


Arduino com campainha
Etapa 4: Código Arduino
Coffin Dance Arduino Code
O código Astronomia para Arduino é fornecido abaixo.
Copie o código abaixo e cole-o no IDE do Arduino e depois carregue na placa do Arduino.
# define NOTE_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 NOTE_A1 55 #define NOTA_E1 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 NOTE_A2 110 #define NOTE_E2 82 #define NOTE_F2 87 #define NOTE_FS2 93 #define NOTE_G2 98 #define NOTE_GS2 104 #define NOTE_A2 110 #define NOTE_Bdefine # 131_Cde2 #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 NOTE_GS3 208 #define NOTE_A3 220 #define NOTE_AS3 NOTE_AS3 233 #define 263 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_A4 440 #define NOTE_AS4define # 5236 # 49define NOTE_Bdefine # 5236 # 49define NOTE_Bdefine # 5236 # 49define NOTE_GS4 415 # 49define NOTE_AS4 # 49define # 5236 # 49423 #define NOTE_D5 587 #define NOTE_DS5 622 #define NOTE_A5 880 #define NOTE_F5 698 #define NOTE_FS5 740 #define NOTE_G5 784 #define NOTE_GS5 831 #define NOTE_A5 880 #define NOTE_AS5 932 #define NOTE_G5 784 #define NOTE_GS5 831 #define NOTE_A5 880 #define NOTE_AS5 932 #define NOTE_Bdefine # 10define # 11define_Bdefine # 11define # 11define NOTE_Bdefine # 11define # 11define_Bdefine # 11define # 11de609 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 1865 #define NOTE_Bdefine # 23767 19define NOTE_Bdefine # 23767 2376_Cdefine NOTES6 19define # 23767 19define NOTES7 2393_define 2293_define # 2293_define # 2293_1793 19769 #define NOTE_DS7 2489 #define NOTE_E7 2637 #define NOTE_AS7 3729 #define NOTE_B7 3951 #define NOTE_GS7 3322 #define NOTE_AS7 3729 #define NOTE_B7 NOTE_FS7 2960 #define NOTE_B7 #define NOTE_GS7 3322 #define NOTE_A7 3520 #define NOTE_AS7 3729 #define NOTE_B7 NOTE_B7 #define #define # 468_Cdefine #define NOTES8_Cdefine # 46996 # 4define NOTE_define # 4618996 #define NOTES8_Cdefine # 418996 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_G4, 0, NOTE_G4, NOTE_A5, 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_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_GAS5, NOTE_5_4, 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_A5, 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, NOTE_A4, 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}; // durações das notas: 4 = semínima, 8 = colcheia, etc.: 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]; tom (7, melodia [thisNote], noteDuração); int pauseBetweenNotes = noteDuration * 1,30; atraso (pauseBetweenNotes); noTone (7); }} void loop () {}
Recomendado:
Coffin Dance Music usando Arduino: 6 etapas

Coffin Dance Music usando Arduino: Neste tutorial, estou explicando como você pode usar um Arduino para fazer música usando apenas um alto-falante (sem o módulo MP3 necessário). Primeiro assista a este tutorial em vídeo
Arduino-Coffin-Dance-Theme: 4 etapas

Arduino-Coffin-Dance-Theme: neste tutorial, vamos ver como reproduzir o som do tema da dança do caixão no Arduino Uno
DIY Dance Dance Revolution usando Makey Makey: 6 etapas

DIY Dance Dance Revolution usando Makey Makey: Olá! Esta é a minha prancha DIY Dance Dance Revolution. Este é um dos meus projetos favoritos em que trabalhei e é realmente único. Este projeto foi feito para ajudar a ensinar as crianças como funcionam os circuitos, usei este projeto para noites STEM e para incentivar
Astronomia Braille: 8 etapas (com imagens)

Astronomia Braille: Eu queria compartilhar o mundo da astronomia / astrofotografia com os cegos e aqueles que veem mal. Este projeto fará isso de forma simples, com poucos suprimentos e mais barato
Câmera de astronomia: 14 etapas (com fotos)

Câmera de astronomia: Câmera de astronomia controlada remotamente feita em casa