Mark Stocker Eastern Kentucky University Department of Technology

Slides:



Advertisements
Similar presentations
You have been given a mission and a code. Use the code to complete the mission and you will save the world from obliteration…
Advertisements

Alter – Information Systems 4th e d. © 2002 Prentice Hall 1 Moving Towards E-Business As Usual.
2017/3/25 Test Case Upgrade from “Test Case-Training Material v1.4.ppt” of Testing basics Authors: NganVK Version: 1.4 Last Update: Dec-2005.
S o f t w a r e D e f i n e d R a d i o
Envelope Detector Conventional DSB-AM signals are easily demodulated by an envelope detector It consists of a diode and an RC circuit, which is a simple.
SOFTWARE Chapter 5.
Chapter 1 The Study of Body Function Image PowerPoint
Chapter 14 Companion site for Light and Video Microscopy Author: Wayne.
1 Copyright © 2010, Elsevier Inc. All rights Reserved Fig 2.1 Chapter 2.
Learning Introductory Signal Processing Using Multimedia 1 Outline Overview of Information and Communications Some signal processing concepts Tools available.
By Rick Clements Software Testing 101 By Rick Clements
Business Transaction Management Software for Application Coordination 1 Business Processes and Coordination.
Chapter 12 Power Amplifiers
FIGURE 3.1 System for illustrating Boolean applications to control.
FIGURE 2.1 The purpose of linearization is to provide an output that varies linearly with some variable even if the sensor output does not. Curtis.
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Title Subtitle.
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
0 - 0.
DIVIDING INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
MULT. INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
Addition Facts
Year 6 mental test 5 second questions
Year 6 mental test 10 second questions
Environmental Remote Sensing GEOG 2021
Excel Functions. Part 1. Introduction 2 An Excel function is a formula or a procedure that is performed in the Visual Basic environment, outside the.
Filters and Enveloping - A Practical Discussion -
BT Wholesale October Creating your own telephone network WHOLESALE CALLS LINE ASSOCIATED.
Control and Feedback Introduction Open-loop and Closed-loop Systems
ECE 495: Integrated System Design I
The IP Revolution. Page 2 The IP Revolution IP Revolution Why now? The 3 Pillars of the IP Revolution How IP changes everything.
Charge Pump PLL.
The Self Tuning Guitar Kit
ABC Technology Project
CMOS Logic Circuits.
John Ogilvie High School - CfE Physics
Cache and Virtual Memory Replacement Algorithms
High Frequency Distortion in Power Grids due to Electronic Equipment Anders Larsson Luleå University of Technology.
DAQmx下多點(Multi-channels)訊號量測
VOORBLAD.
Squares and Square Root WALK. Solve each problem REVIEW:
In Tune With Technology Digital Musical Tuners. What is its Purpose? Instrument tuners indicate whether the pitch of a specific note being played is sharp,
Lets play bingo!!. Calculate: MEAN Calculate: MEDIAN
Waves and Sound Review.
Getting Familiar with Web Pages 1 2 The Internet Worldwide collection of interconnected computer networks that enables businesses, organizations, governments,
Chapter 5 Test Review Sections 5-1 through 5-4.
GG Consulting, LLC I-SUITE. Source: TEA SHARS Frequently asked questions 2.
The op-amp Differentiator
Addition 1’s to 20.
25 seconds left…...
SUPRESSION OF LORAN-C NAVIGATION SIGNAL IN DIGITAL CAVE RADIOS (AN EXPERIMENTAL APPROACH) Mr. Antonio Muñoz Group of Technologies in hostile Environments.
Week 1.
We will resume in: 25 Minutes.
Interfacing to the Analog World
A SMALL TRUTH TO MAKE LIFE 100%
Practical Considerations for Digital Design
1 PART 1 ILLUSTRATION OF DOCUMENTS  Brief introduction to the documents contained in the envelope  Detailed clarification of the documents content.
Thomas L. Floyd Digital Fundamentals, 9e
Ch 16 Wave Motion - I.
What is Arduino?  Arduino is a ATMEL 168 micro-controller kit designed specially for small projects  User friendly IDE(Integrated Development Environment)
Lock-in amplifiers Signals and noise Frequency dependence of noise Low frequency ~ 1 / f –example: temperature (0.1 Hz), pressure.
Analog Sensing 101 WITH P Agenda  Analog Signal Characteristics  Common Problems with A/D Conversion  Clipping  Small Signals  Aliasing  Analog.
Guitar Tuner ECE 5330 Embedded Systems Design Final Project Proposal Mike Heiny November 17, 2008.
Guitar Tuner ECE 5330 Embedded Systems Design Final Project Results Mike Heiny December 8, 2008.
Automatic Guitar Tuner Group #10 Dariusz Prokopczak & Stephan Erickson ECE 445 Sr. Design December 9, 2014.
A DSP based on on-line UPS R.Padamaja G.Mamatha Reddy EEE EEE S.V.C.E S.V.C.E BY.
Op Amps and Voltage Dividers
Presentation transcript:

Mark Stocker Eastern Kentucky University Department of Technology Eguitar tuner Mark Stocker Eastern Kentucky University Department of Technology

OUTLINE Automatic Guitar tuning Amplification of signal Frequency Measurement Harmonic Interference

MOTIVATION Beginners often have trouble tuning their guitar properly. Self tuning guitars such as the Gibson Robot are extremely expensive ($4000!) http://www.youtube.com/watch?v=WetVXbYRfWk

INTRODUCTION Each guitar string vibrates at a unique fundamental frequency. The fundamental frequency of the string directly relates to the musical note being played via the formula: n is the number of steps away from middle A (which is exactly 440Hz)

PROBLEM STATEMENT Frequency measurement is typically done by custom made Digital Signal Processors (DSP’s). DSP’s take a lot of time and money to develop into a working product.

PROPOSED SOLUTION Analyze and tune the guitar using general purpose devices that are easily acquired and very inexpensive. Perform the signal processing and motor control in software instead of a hardware DSP device.

Frequency measurement Measure the voltage of the guitar signal using the Atmel AVR built in Analog-to-Digital convertor (ADC). Sample the change in voltage at a very high rate (200uS) to detect each time the waveform crosses the zero point or bias. After a predetermined number of zero crossings have been detected, determine frequency using the formula 1/T where T is the amount of time that passed during the sample.

Frequency measurement

Frequency measurement Compare the measured readings to those known to be in the correct range (+/- .05% of intended frequency) and tune string accordingly with a stepper motor. Standard Guitar Tuning: Frequency (Hz) Period Samples @ 200uS E = 82.4069 0.0121 606.75 A = 110.0000 0.0091 454.5 D = 146.8324 0.0068 340.5 G = 195.9978 0.0051 255 B = 246.9417 0.0040 202.48 e = 329.62775 0.0030 151.69

Problem #1 The output of the guitar is very weak. 3mV peak-to-peak is typical. The 8-bit ADC of the AVR is setup to use a 5V reference voltage. We have 255 usable steps over the 5 volt range which is equal to 19mV per step. This will not allow us enough precision to detect the zero crossings of the wave form. The bias or baseline of the guitar signal needs to be at 2.56 volts, so we can detect both the positive and negative part of the waveform.

Solution #1 Amplify and bias the signal using a simple op-amp circuit.

Problem #2 Due to the varying stiffness of steel guitar strings, along with the fundamental frequency, harmonic frequencies are also generated, which can be quite powerful as seen below:

Problem #2 The 2nd harmonic is especially powerful. Since we are only measuring zero crossings of the waveform, the harmonics end up being measured also, producing incorrect results.

Solution #2 To prevent false readings, we will filter the harmonics from the signal in software, with the filter customized for each string. I use a bitshift in this filter (>>) to do the division in order to save CPU cycles. The value of filter is set according to current string selection. Lower values create a more narrow band-pass. signal = ((filter * last_sample_value + (16 – filter) * sample_value)>>4);

RESULTS The circuit and program are successful at reading determining the input frequency accurately. The stepper motor assembly is successful at tuning the strings automatically, although slow.

AVR uC String Selection Darlington Array BIAS OP-AMP Guitar Input

Stepper Motor Gear Reduction unit Guitar Interface

media eGuitar tuner in action: http://www.youtube.com/watch?v=5ctUjII-M6Y http://www.youtube.com/watch?v=LXHzzM-_Uao eGuitar put to the test against commercial tuner: http://www.youtube.com/watch?v=rRlvrPupO9o eGuitar C code: http://www.stockmarker.org/AVR/eguitar/eguitar_code.html

CONCLUSIONS Considering commercial guitar tuning devices use specialized DSP’s, I was quite surprised at how well the AVR functioned. I learned many new things during the project, such as filtering signals in software, the use of AVR ADC and Timers, and stepper motor control.

Cost Device Cost Source AVR uC $3 Mouser LM324 op-amp $0.50 Mouser Components $2 Mouser 4x20 LCD Display $10 EBay Stepper assembly $0 Junk FB Scanner Power Supply $0 Junk Box Total Cost: $15.50 Commercial Tuner: $80 Savings: $64.50

FUTURE WORK Use a shielded enclosure to prevent outside interference. Fine tune the OP-AMP circuit and implement hardware filters for faster and more accurate tuning. Streamline the program by writing it in pure assembly code. - Plan for 3-5 audience questions ahead of time

Software Only free / open source software was used in the making of this project, except for Microsoft PowerPoint. Operating System: Ubuntu Linux running KDE Development Environment: KATE Compiler: AVR-GCC AVR Programmer: AVRdude Signal Generation: Siggen

REFERENCES Atmel Corporation, ATtiny261/461/861 Datasheet, November 7th 2006, Retrieved from: http://www.atmel.com/dyn/resources/prod_documents/doc2588.pdf Atmel Corporation, Digital Filters with AVR, July 16th 2008, Retrieved from: www.atmel.com/atmel/acrobat/doc2527.pdf NonGNU.org, AVR Libc Online Manual, Retrieved from: http://www.nongnu.org/avr-libc/user-manual/index.html