How to Play Mario Bros Tune on Arduino

In this project we are going to learn about a very interesting and memorable Tutorial that plays the classic Mario bros tune on Arduino with piezo buzzer this is a very simple and fun project. let’s make this.

As we all love music it is everywhere. our lots of memory will attach with it so we are going to recall our favorite video game song, Mario Bros Tune. In this project, we use the Arduino board and Piezo buzzer to play the song.

Firstly what we need for this :

  1. Arduino UNO
  2. 1 X piezo buzzer
  3. 470-ohm resistor
  4. A breadboard
  5. Some breadboard cables

3 easy steps to make Mario Bro Tune

STEP I

Connect your Piezo Buzzer long leg or red cable (+) in Arduino digital pin #3 and short leg or black cable (-) into the ground pin.

Playing Mario Bros Tunes on Arduino with a Piezo Buzzer

Step II

Set the Led in pin #13 to blink. This will blink when a note is played.

Step III

upload the following codes on to your Arduino board.

/*

Arduino Mario Bros Tunes

With Piezo Buzzer and PWM

Connect the positive side of the Buzzer to pin 3,

then the negative side to a 1k ohm resistor. Connect

the other side of the 1 k ohm resistor to

ground(GND) pin on the Arduino.

 

As you will upload this Code on The Arduino Board. it will be ready to play the Mario Bros tune.

Now your project is ready to have fun and enjoy this Tune.

So, Friends, I hope you understand this project very well. In the upcoming Tutorial, I will be back with some new interesting Projects and we will discuss some useful development topics. Here if you want to recommend that what I should write in the upcoming Tutorial then please leave your comments. and if u need any help or query please don’t hesitate to discuss it with me. Thank You  🙂

Also Read: LED Blinking Program on Arduino – Making a Blinking LED

Also Read: How to make a Vehicle Tracking System using Arduino

(Visited 18,746 times, 1 visits today)

One thought on “How to Play Mario Bros Tune on Arduino

Leave a Reply

Your email address will not be published. Required fields are marked *