Book Image

Arduino Essentials

Book Image

Arduino Essentials

Overview of this book

Table of Contents (17 chapters)
Arduino Essentials
About the Author
About the Reviewer

A bigger project – a metronome

Being a saxophonist myself, one of the tools I use the most when practicing is my metronome. A metronome is a device that gives pulses at a selectable frequency and that helps us maintain the correct tempo when playing music.

The metronome has a double indication; it produces clearly audible ticks and also swings a pendulum to give us visual feedback.

With the next project, I'd like to propose that you build a digital metronome with Arduino. If you think about it carefully, you will notice that we have almost created the core of the metronome in the previous example.

We will only add a pair of buttons to allow us to change the tempo and another LED to simulate the pendulum swing by oscillating between two LEDs.

Let's go on and try to finally conquer the time domain.

The metronome circuit

The circuit of this project is a bit more complicated than any other so far, because it has to deal with up to five peripherals: two LEDs, two buttons, and a transistor to drive...