Arduino Mario Melody Tune

by theorycircuit in Circuits > Arduino

5979 Views, 14 Favorites, 0 Comments

Arduino Mario Melody Tune

Mario tone Arduino

This Cool Arduino project help us to Create & Play world famous Mario video game theme tune, by using a single buzzer / speaker and Arduino board we can do this project. Different frequency tones are created by the Note code and played in different timing levels makes a melody tune and a piezo buzzer or Speaker reproduce as a sound, this is the basic operation of Arduino melody tune generator.

Arduino Mario Melody Hookup

arduino tone melody hookup.png

Instead of connecting the Piezo buzzer / Speaker to Arduino digital pin, the SL100 transistor connected as a driver unit between Arduino and speaker to produce high volume tunes.

Schematic

arduino melody player schematic.png

Connect +5V from Arduino power Pin to speaker / buzzer positive terminal, connect another pin to transistor collector pin, D3 of Arduino connected to transistor base through 100Ω Resistor and emitter directly connected to Ground.

Arduino Mario Code

Get arduino code for mario melody here.

uploading arduino sketch tone melody.png

NOTE: Place the Arduino tone melody code and mario.h files in same ide window like this.

Required Components

components arduino.jpg