Automatic Guitar Tuning Machine

Every guitar player dreams of a machine that will tune the guitar automatically. We designed and built that machine as a term project for our mechatronics class. LCD screen and push button enable users to choose the desired tuning type. It is entirely portable as the design includes everything needed, such as the microcontroller, amplifier circuit, DC motors, motor controllers, and user interface.
Automatic Guitar Tuner Complete Setup


Amplifier Circuit

The sound waves coming from the guitar are amplified in the amplifier circuit that we constructed. Also the noise is filtered here providing a smooth sound. Amplifier circuit consists of LM386 and many other external circuit elements such as capacitors to reduce the noise and fluctuations.
Amplifier Circuit Amplifier Circuit Schematic

Fast Fourier Transform

Fast Fourier Transform is applied to these sound waves in the microcontroller. This way, the signal is transformed from the time domain to the frequency domain where we can work more easily. Harmonics caused some trouble in determining the exact frequencies of the strings, but we handled them in the end.
Automatic Guitar Tuner Complete Setup


Motor Control

Six DC motors are used, one for each string, which are controlled by three motor drivers. Because there is a limited number of pins available in the microcontroller, NOT gates are used to decrease the total pin usage by implementing the logic for each motor. A PID controller is programmed with Arduino, which makes motors rotate slower when they approach the desired frequency for fine-tuning.
Guitar Tuner Motor Drivers


Main Components

  • Microcontroller:
    • Teensy 3.2
    • Arduino Uno
  • Amplifier Circuit:
    • LM386
    • Capacitors and resistors
  • User Interface:
    • LCD Screen
    • Push Button
  • Motor Driver: L293D
  • Hex Inverter NOT Gate IC: 74LS04
  • DC motor: 12V 26 RPM Brushless DC Gearmotor
  • Power Supply Module
  • Mechanical Structure

Board Schematic

Board Schematic