Con este montaje se puede producir el sonido del juego de mario bross

Solo se requiere un zumbador y una resistencia de 220

void setup() {

}

// funcion = tone(pin, frequency, duration)

void loop() {
// CANCION DE MARIO BROSS
//NOTA 01
noTone(9);
tone(9, 660, 100);
delay(75);

//NOTA 02
noTone(9);
tone(9, 660, 100);
delay(75);

//NOTA 03
noTone(9);
tone(9, 660, 100);
delay(150);

//NOTA 04
noTone(9);
tone(9, 660, 100);
delay(150);

//NOTA 05
noTone(9);
tone(9, 660, 100);
delay(50);

//NOTA 06
noTone(9);
tone(9, 770, 100);
delay(150);

//NOTA 07
noTone(9);
tone(9, 380, 100);
delay(275);

//NOTA 08
noTone(9);
tone(9, 510, 100);
delay(287);

//NOTA 09
noTone(9);
tone(9, 380, 100);
delay(225);

//NOTA 10
noTone(9);
tone(9, 320, 100);
delay(200);

//NOTA 11
noTone(9);
tone(9, 440, 100);
delay(250);

//NOTA 12
noTone(9);
tone(9, 480, 80);
delay(150);

//NOTA 13
noTone(9);
tone(9, 450, 100);
delay(165);

//NOTA 14
noTone(9);
tone(9, 430, 100);
delay(75);

//NOTA 15
noTone(9);
tone(9, 380, 100);
delay(150);

//NOTA 16
noTone(9);
tone(9, 660, 80);
delay(100);
//”””””””””””””’
//NOTA 17
noTone(9);
tone(9, 760, 50);
delay(100);
//”””””””””””””’
//NOTA 18
noTone(9);
tone(9, 860, 100);
delay(75);

//NOTA 19
noTone(9);
tone(9, 700, 80);
delay(150);

//NOTA 20
noTone(9);
tone(9, 760, 50);
delay(75);

//NOTA 21
noTone(9);
tone(9, 660, 80);
delay(175);

//NOTA 22
noTone(9);
tone(9, 520, 80);
delay(150);

//NOTA 23
noTone(9);
tone(9, 580, 80);
delay(75);

//NOTA 24
noTone(9);
tone(9, 480, 80);
delay(75);

//NOTA 25
noTone(9);
tone(9, 510, 100);
delay(175);

//NOTA 26
noTone(9);
tone(9, 380, 100);
delay(275);

//NOTA 27
noTone(9);
tone(9, 320, 100);
delay(200);

//NOTA 28
noTone(9);
tone(9, 440, 100);
delay(250);

//NOTA 29
noTone(9);
tone(9, 480, 80);
delay(150);

//NOTA 30
noTone(9);
tone(9, 450, 100);
delay(165);

//NOTA 31
noTone(9);
tone(9, 430, 100);
delay(75);

//NOTA 32
noTone(9);
tone(9, 380, 100);
delay(150);

//NOTA 33
noTone(9);
tone(9, 660, 80);
delay(100);

//NOTA 34
noTone(9);
tone(9, 760, 50);
delay(100);

noTone(9);
tone(9,860,100);
delay(75);

noTone(9);
tone(9,700,80);
delay(150);

tone(9,760,50);
delay(75);
noTone(9);

tone(9,660,80);
delay(175);
noTone(9);

tone(9,520,80);
delay(150);
noTone(9);

tone(9,580,80);
delay(75);
noTone(9);

tone(9,480,80);
delay(75);
noTone(9);

tone(9,500,100);
delay(250);
noTone(9);

tone(9,760,100);
delay(150);
noTone(9);

tone(9,720,100);
delay(50);
noTone(9);

tone(9,680,100);
delay(75);
noTone(9);

tone(9,620,150);
delay(75);
noTone(9);

tone(9,650,150);
delay(150);
noTone(9);

tone(9,380,100);
delay(150);
noTone(9);

tone(9,430,100);
delay(75);
noTone(9);

tone(9,500,100);
delay(75);
noTone(9);

tone(9,430,100);
delay(150);
noTone(9);

tone(9,500,100);
delay(75);
noTone(9);

delay(50);tone(9,570,100);
delay(110);tone(9,500,100);
delay(150);tone(9,760,100);
delay(50);tone(9,720,100);
delay(75);tone(9,680,100);
delay(75);tone(9,620,150);
delay(150);tone(9,650,200);
delay(150);tone(9,1020,80);
delay(150);tone(9,1020,80);
delay(75);tone(9,1020,80);
delay(150);tone(9,380,100);
delay(150);tone(9,500,100);
delay(150);tone(9,760,100);
delay(50);tone(9,720,100);
delay(75);tone(9,680,100);
delay(75);tone(9,620,150);
delay(150);tone(9,650,150);
delay(150);tone(9,380,100);
delay(75);tone(9,430,100);
delay(75);tone(9,500,100);
delay(150);tone(9,430,100);
delay(75);tone(9,500,100);
delay(50);tone(9,570,100);
delay(110);tone(9,500,100);
delay(150);tone(9,760,100);
delay(50);tone(9,720,100);
delay(75);tone(9,680,100);
delay(75);tone(9,620,150);
delay(150);tone(9,650,200);
delay(150);tone(9,1020,80);
delay(150);tone(9,1020,80);
delay(75);tone(9,1020,80);
delay(150);tone(9,380,100);
delay(150);tone(9,500,100);
delay(150);tone(9,760,100);
delay(50);tone(9,720,100);
delay(75);tone(9,680,100);
delay(75);tone(9,620,150);
delay(150);tone(9,650,150);
delay(150);tone(9,380,100);
delay(75);tone(9,430,100);
delay(75);tone(9,500,100);
delay(150);tone(9,430,100);
delay(75);tone(9,500,100);
delay(50);tone(9,570,100);
delay(210);tone(9,585,100);
delay(275);tone(9,550,100);
delay(210);tone(9,500,100);
delay(180);tone(9,380,100);
delay(150);tone(9,500,100);
delay(150);tone(9,500,100);
delay(75);tone(9,500,100);
delay(150);tone(9,500,60);
delay(75);tone(9,500,80);
delay(150);tone(9,500,60);
delay(175);tone(9,500,80);
delay(75);tone(9,580,80);
delay(175);tone(9,660,80);
delay(75);tone(9,500,80);
delay(150);tone(9,430,80);
delay(75);tone(9,380,80);
delay(300);tone(9,500,60);
delay(75);tone(9,500,80);
delay(150);tone(9,500,60);
delay(175);tone(9,500,80);
delay(75);tone(9,580,80);
delay(75);tone(9,660,80);
delay(225);tone(9,870,80);
delay(162);tone(9,760,80);
delay(300);tone(9,500,60);
delay(75);tone(9,500,80);
delay(150);tone(9,500,60);
delay(175);tone(9,500,80);
delay(75);tone(9,580,80);
delay(175);tone(9,660,80);
delay(75);tone(9,500,80);
delay(150);tone(9,430,80);
delay(75);tone(9,380,80);
delay(300);tone(9,660,100);
delay(75);tone(9,660,100);
delay(150);tone(9,660,100);
delay(150);tone(9,510,100);
delay(50);tone(9,660,100);
delay(150);tone(9,770,100);
delay(225);tone(9,380,100);

delay(1000);
tone(9,440,200);
delay(200);
delay(200);
tone(9,440,400);
delay(200);
delay(200);
delay(5000);

}

Deja una respuesta

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *

You may also like