Arduino-Based Automatic Guitar Tuner

This Arduino-based project will tune your guitar for you.

Nov 14, 2017

38017 views

52 respects

Components and supplies

1

Arduino UNO

Apps and platforms

1

Simulink

Project description

Downloadable files

Motorized Tuning Peg Gripper

I controlled the motorized tuning peg gripper using three digital output pins from the Arduino connected to an L293D H-bridge chip. This chip allows us to turn the motor in either direction or stop the motor based on the states of these three pins. One of the pins is called the enable pin, and the motor will only turn when the enable pin is set to high. The other two pins determine the direction of the motor. I connected the circuit as shown below.

Motorized Tuning Peg Gripper

Motorized Tuning Peg Gripper

I controlled the motorized tuning peg gripper using three digital output pins from the Arduino connected to an L293D H-bridge chip. This chip allows us to turn the motor in either direction or stop the motor based on the states of these three pins. One of the pins is called the enable pin, and the motor will only turn when the enable pin is set to high. The other two pins determine the direction of the motor. I connected the circuit as shown below.

Motorized Tuning Peg Gripper

Digital Input and Output Circuits

The circuit for the push button is a simple switch with a pull-down resistor. The LED display circuit involves 6 LEDs and a current-limiting resistor.

Digital Input and Output Circuits

Digital Input and Output Circuits

The circuit for the push button is a simple switch with a pull-down resistor. The LED display circuit involves 6 LEDs and a current-limiting resistor.

Digital Input and Output Circuits

Audio Input Circuit

I used the analog input pin ‘A0’ on the Arduino to read the audio signal coming from the guitar. The Arduino Due reads voltages between 0 V and 3.3 V. The signal coming from the guitar, however, is very low in amplitude and oscillates around 0 V, meaning it contains some negative voltages that the Arduino cannot read. To fix this, the input circuit needs to amplify the signal and add a DC offset. The circuit also needs to provide a low pass filter to eliminate high-frequency components from the signal. Any sampled signal should not contain frequencies above half of the sampling rate. Since the tuner samples the audio at a rate of 5 kHz, my circuit eliminates frequencies above 2.5 kHz. I assembled the circuit as shown below.

Audio Input Circuit

Comments

Only logged in users can leave comments

dvittorio

2 years ago

Hi! I think I found the correct motor, but I cannot find a "gripping mechanism using a clamp hub". I searched on amazon for anything like this. Can you please provide a link to the clamp hub?

jsheng

2 years ago

This project is amazing! I think that it is really creative. I know how useful an automatic guitar tuner can be. This is really interesting!

Anonymous user

2 years ago

Hello, Arduino MEGA 2560 cannot support the program since Program: 29120 bytes and Data: 21203 bytes and MEGA have 256kb flash memory

Anonymous user

2 years ago

It runs on an Arduino Due, but I think you can get it to run on Arduino MEGA 2560 as well.

Anonymous user

2 years ago

Yes I agree that it is very useful! If only I knew what board it runs on!

Anonymous user

2 years ago

Where can i get this kind of motor?

Anonymous user

2 years ago

Does this use arduino uno or arduino nano?

MadhuGovindarajan

2 years ago

It uses Arduino Due.

Anonymous user

5 years ago

Where can i get this kind of motor?

Anonymous user

7 years ago

Does this use arduino uno or arduino nano?

MadhuGovindarajan

2 years ago

It uses Arduino Due.

jsheng

7 years ago

This project is amazing! I think that it is really creative. I know how useful an automatic guitar tuner can be. This is really interesting!

Anonymous user

2 years ago

Hello, Arduino MEGA 2560 cannot support the program since Program: 29120 bytes and Data: 21203 bytes and MEGA have 256kb flash memory

Anonymous user

2 years ago

Yes I agree that it is very useful! If only I knew what board it runs on!

Anonymous user

2 years ago

It runs on an Arduino Due, but I think you can get it to run on Arduino MEGA 2560 as well.

Anonymous user

7 years ago

It's a pity that we cannot download the files without having to create a MathWorks account. After the sign-up I'm sure we would be bombarded with "try Matlab" emails. As an Arduino project it is of interest to me but I use Octave as it is open source (and free).,