Progress Bar

Skip to main content

Jaycar
...

Metronome

Metronome

Difficulty
Entertainment

Summary

We usually think of soldering irons, pliers and oscilloscopes when we think of electronic tools, and while this project may not be useful to the electronics enthusiast we think it's a good way of showing how Arduino based tools can be useful in other fields - in this case for musicians. The Duinotech Metronome has adjustable tempo between 20 and 240 bpm and can be set to accent anywhere between every beat and every eighth beat. It also gives a display of the classical name for that tempo.

Materials Required

1Duinotech UNO r3 Main BoardXC4410
1Duinotech Arduino Compatible 2 X 16 LCD Screen Display with ControllerXC4454
1Duinotech Arduino Compatible Active Buzzer ModuleXC4424

The LCD Shield fits directly on top of the Arduino.

Buzzer

LCD Shield

S

A3

-

A5

Solder the buzzer onto A3, A4, A5 of the LCD shield. Mount the LCD Shield on top of the UNO.

Download the source code, extract into a new folder, open the .ino file in the Arduino IDE and press upload.

The sketch for this project uses a few of the libraries that are included with the IDE so there shouldn't be any extra libraries to be installed unless you have a very old version of the IDE. You should be able to load the sketch, select UNO board and its serial port, and upload straight away. The Metronome should start working straight away. If you don't get any sound try checking the connection between the Buzzer Module and LCD Shield. One of the features of the sketch is the use of the Timer interrupt to provide a precise interval between tones.

Operation of the Metronome is simple. The buttons have the following functions:

Button

Function

Select

Save current setting to EEPROM

Left

Decrease tempo

Right

Increase tempo

Up

Increase count between accented beats

Down

Decrease count between accented beats

Reset

On reset the EEPROM settings are loaded so this can be used to restore settings


Future Improvements

Being able to customize a project is what we like about Arduino and this one is no different. If you don't like the names and tempi that are displayed they can be changed in the tempos[] and temponames[] arrays. The notes that are played as tones can also be changed in the accnote[] array.

Similar projects you may be interested in

Entertainment
Arduino Learning
Difficulty

Entertainment
Music Beat Bar
Difficulty

Entertainment
Memory Gesture Game
Difficulty

Entertainment
Microbit Heart Finder
Difficulty