Design and Realization of the Guitar Tuner Using MyRIO

Similar documents
Introduction To LabVIEW and the DSP Board

Recording of Coincidence Signals in a Software Medium

VIDEO MATRIX SWITCHES HDMI 2.0

ex 800 Series ematrix System

PiMPro Portable Analyzer PiMPro Classic 1821

Lab 1 Introduction to the Software Development Environment and Signal Sampling

AC334A. VGA-Video Ultimate BLACK BOX Remote Control. Back Panel View. Side View MOUSE DC IN BLACK BOX ZOOM/FREEZE POWER

National Park Service Photo. Utah 400 Series 1. Digital Routing Switcher.

DPD80 Visible Datasheet

DT9834 Series High-Performance Multifunction USB Data Acquisition Modules

Hardware Guide BrightSign, LLC Version:.1 Los Gatos, CA, USA. MODELS: XD Product Line

Digital Strobe Tuner. w/ On stage Display

PiMPro Rack Mount Analyzer

Multiband Noise Reduction Component for PurePath Studio Portable Audio Devices

Integrated Circuit for Musical Instrument Tuners

LabView Exercises: Part III

LM/TM-30xx, 31xx Series LCD Monitor User s Manual Rev. A0

North America, Inc. AFFICHER. a true cloud digital signage system. Copyright PDC Co.,Ltd. All Rights Reserved.

2 MHz Lock-In Amplifier

Integration of Virtual Instrumentation into a Compressed Electricity and Electronic Curriculum

Getting Started with the LabVIEW Sound and Vibration Toolkit

DSA-1. The Prism Sound DSA-1 is a hand-held AES/EBU Signal Analyzer and Generator.

Signal Stability Analyser

Fig. 1. The Front Panel (Graphical User Interface)

System Interface Unit SIU-100/100T

EEM Digital Systems II

Pinewood Derby Finish Line Detection System

Data Acquisition Using LabVIEW

AC335A. VGA-Video Ultimate Plus BLACK BOX Back Panel View. Remote Control. Side View MOUSE DC IN OVERLAY

VXI RF Measurement Analyzer

ENGR 1000, Introduction to Engineering Design

Ensemble QLAB. Stand-Alone, 1-4 Axes Piezo Motion Controller. Control 1 to 4 axes of piezo nanopositioning stages in open- or closed-loop operation

Research of Intelligent Traffic Light Control System Design Based on the NI ELVIS II Platform Yuan Wang a, Mi Zhou b

Super-Doubler Device for Improved Classic Videogame Console Output

DPD80 Infrared Datasheet

LMH0340/LMH0341 SerDes EVK User Guide

DM1624, DM1612, DM812

Modular Video Wall Controller

DH400. Digital Phone Hybrid. The most advanced Digital Hybrid with DSP echo canceller and VQR technology.

DT3162. Ideal Applications Machine Vision Medical Imaging/Diagnostics Scientific Imaging

ANALOG RADIO MIXER. Flexible. Affordable. Built To Last.

EECS145M 2000 Midterm #1 Page 1 Derenzo

LAUREL ELECTRONICS, INC.

SignalTap Plus System Analyzer

Vocia VI-6. Operation Manual

Design and Implementation of an AHB VGA Peripheral

VOB - data over Video Overlay Box

CMN-91. Multiformat Signal Analyzer FEATURES

Signal Conditioners. Highlights. Battery powered. Line powered. Multi-purpose. Modular-style. Multi-channel. Charge & impedance converters

Operating Instructions

Triple RTD. On-board Digital Signal Processor. Linearization RTDs 20 Hz averaged outputs 16-bit precision comparator function.

DT9857E. Key Features: Dynamic Signal Analyzer for Sound and Vibration Analysis Expandable to 64 Channels

Design and Implementation of SOC VGA Controller Using Spartan-3E FPGA

FCPM-6000RC. Mini-Circuits P.O. Box , Brooklyn, NY (718)

LadyBug Technologies, LLC LB5908A True-RMS Power Sensor

SCALE & WEIGHT DISPLAYS

DSP Laboratory: Analog to Digital and Digital to Analog Conversion *

INSTRUCTIONS FOR USE Pro-Ject A/D Phono Box S

DRAFT RELEASE FOR BETA EVALUATION ONLY

Video & Audio Transmission

USB Smart Power Sensor

G4500. Portable Power Quality Analyser. Energy Efficiency through power quality

Chapter 1. Introduction to Digital Signal Processing

DIGITAL SPEAKER MANAGEMENT UK

innovative technology to keep you a step ahead Tailored to Simplify Installation and Troubleshooting of RF Signals

innovative technology to keep you a step ahead Tailored to Simplify Installation and Troubleshooting of RF Signals

Major Differences Between the DT9847 Series Modules

Lab experience 1: Introduction to LabView

Omega 4K/UHD Three-Input Switcher. Introduction. Applications. for HDMI and USB-C with HDBaseT and HDMI Outputs

AD16-64(LPCI)LA. Non-isolated high precision analog input board for Low Profile PCI AD16-64(LPCI)LA 1. Ver.1.01

DSP in Communications and Signal Processing

SONy BID SPECIFICATION FOR POWERED MIXER MODEL NUMBER SRP-X500P

AI-1204Z-PCI. Features. 10MSPS, 12-bit Analog Input Board for PCI AI-1204Z-PCI 1. Ver.1.04

The aim is to design a next generation real time karaoke device which would be a stereo type equalizer by efficient

Sensor Development for the imote2 Smart Sensor Platform

MODEL NUMBER SRP-X700P

DT9837 Series. High Performance, USB Powered Modules for Sound & Vibration Analysis. Key Features:

Silicon PhotoMultiplier Kits

F M1SDI 1 Ch Tx & Rx. HD SDI Fiber Optic Link with RS 485. User Manual

OWNERS MANUAL LUNATEC V3 MICROPHONE PREAMPLIFIER AND A/D CONVERTER

DXP HD 4K Series. Reliable, High Performance Switching of HDMI Video and Audio Signals 4K HDMI MATRIX SWITCHERS WITH AUDIO DE-EMBEDDING

LAUREL. Laureate Digital Panel Meter for Load Cell & Microvolt Input ELECTRONICS, INC. Features. Description

Sound and Vibration Data Acquisition

NTB-500A. Medium Speed Network Terminal Box. Supports dynamic measurement at medium-speed synchronous sampling!

PROFESSIONAL 2-CHANNEL MIXER WITH EFFECTS LOOP

CDM10: Channel USB Mixer. Item ref: UK User Manual

AES-404 Digital Audio Switcher/DA/Digital to Analog Converter

OPTICAL POWER METER WITH SMART DETECTOR HEAD

Telephony Training Systems

WaveDriver 20 Potentiostat/Galvanostat System

AI-1616L-LPE. Features. High-precision Analog input board (Low Profile size) for PCI Express AI-1616L-LPE 1. Ver.1.02 Ver.1.01

Micro-DCI 53ML5100 Manual Loader

Chapter 60 Development of the Remote Instrumentation Systems Based on Embedded Web to Support Remote Laboratory

Digital Effects Pedal Description Ross Jongeward 10 December 2014

ENGR 1000, Introduction to Engineering Design

USB Smart Power Sensor

SCM820 Digital IntelliMix Automatic Mixer SEAMLESS MIXING. ADVANCED CONTROL.

DESIGN PHILOSOPHY We had a Dream...

Search Platform Design Based On WSN

EdgeConnect Module Quick Start Guide ITERIS INNOVATION FOR BETTER MOBILITY

Transcription:

Journal of Automation and Control, 2017, Vol. 5, No. 2, 41-45 Available online at http://pubs.sciepub.com/automation/5/2/2 Science and Education Publishing DOI:10.12691/automation-5-2-2 Design and Realization of the Guitar Tuner Using MyRIO Patrik Šarga *, Daniel Demečko Technical University of Košice, Faculty of Mechanical Engineering, Letná 9, 042 00 Košice, Slovak republic *Corresponding author: patrik.sarga@tuke.sk Abstract The digital tuner converts the continuous analog audio signal recorded by the microphone into the sampled digital discrete signal. The digital signal is converted to the frequency using the functions and the nearest tone is determined [1]. Many digital tuners, after sampling the analogue signal, filter out noise and accept sound from a certain level of volume. The result is displayed on the output device, which can be a LED indicator, a display, or a monitor. As a digital tuner can also serve a computer, tablet, or mobile. Our goal was to design and create a digital tuner with myrio and use the LabVIEW programming environment. Keywords: digital tuner, myrio, LabVIEW Cite This Article: Patrik Šarga, and Daniel Demečko, Design and Realization of the Guitar Tuner Using MyRIO. Journal of Automation and Control, vol. 5, no. 2 (2017): 41-45. doi: 10.12691/automation-5-2-2. 1. Principle of Functioning of Digital Tuner In The principle of functioning of digital tuner consists of recording the sound and its digital conversion. Based on the digital signal, the tuner determines the measured frequency and its deviation from the required frequency of the tuned string [1]. This deviation along with the measured frequency is then displayed using the UI. Figure 1 illustrates this process. Our solution for a digital guitar tuner is based on the usage of myrio. A microphone is attached to the device to record the frequency of individual strings of the guitar. For the functionality of this device, we need to design a program in LabVIEW. 1.1. Microphone Selection The most suitable type of microphone for sound measurement is a condenser microphone with a narrow directional characteristic that does not record noise and tones emitted by another source. Its frequency characteristic should exhibit minimum deviations within the frequency range of the guitar strings, from 82Hz to 330Hz. The microphone will be connected by a 3.5mm jack connector. This parameter complies with the HAMA 57153 microphone with a frequency range from 30 Hz to 16 000 Hz, impedance of 1.4 kω and sensitivity of 62 ± 3 db [2,3]. 1.2. Conversion of the Analog Signal to Digital A device that converts the analog signal to digital is called the A/D (analog-to-digital) converter (Figure 2). The A/D converter works at the sampling rate fs (e.g., 44.1kHz) and converts the analog signal to a known bit resolution (e.g., 16bit). These parameters indicate the resulting quality of the record. The sampling frequency indicates the sampling rate, or how many times per second, the instantaneous value of the analogue signal will be recorded. By digitizing we can never imitate the analog signal perfectly, it is only possible to get closer to it as much as possible. Digitalization of a simple audio signal is more accurate than digitalization of the complex signals [1]. For our solution, it will not be necessary to use an external A/D converter because myrio analog inputs are connected to a FPGA chip of a microcomputer that is working as an A/D converter and will be programmed in LabVIEW [4,5,6]. Figure 1. Principle of functioning of digital tuner Figure 2. Scheme of A/D converter [7]

42 Journal of Automation and Control 1.3. myrio Embedded Device The National Instruments myrio-1900 is a portable reconfigurable I/O (RIO) device that students can use to design control, robotics, and mechatronics systems. (Figure 3). The NI myrio-1900 provides analog input (AI), analog output (AO), digital input and output (DIO), audio, and power output in a compact embedded device. The NI myrio-1900 connects to a host computer over USB and wireless 802.11b.g.n. [5]. A Description of Figure 3: 1. NI myrio 1900, 2. myrio Expansion Port (MXP) Breakouts, 3. Power Input Cable, 4. USB Device Cable, 5. USB Host Cable, 6. LEDs, 7. Mini System Port (MSP) Screw-Terminal Connector, 8. Audio In/Out Cables, 9. Button. Figure 3. Description of NI myrio-1900 [5] The Figure 4 shows the arrangement and functions of NI myrio-1900 components. MyRIO will be programmed by the LabVIEW programming environment. The advantage of programming in LabVIEW is that after simple modification of the Figure 4. NI myrio-1900 Hardware Block Diagram [5] software created for myrio, it can also be used on PLCs or microcontrollers. This advantage reduces the time needed to put the application prototype into operation. [5]

Journal of Automation and Control 43 2. Realization of a Digital Tuner with myrio For myrio operation, power supply from 7-12 VDC is required. The adapter provided with the device was used during the installation. The microphone was connected to the myrio via a 3.5 mm standard JACK connector. Analog input to device A1 was used. PC with LabVIEW is connected to myrio through USB Type B connector. The connection of the individual components is shown in Figure 5. threads. However, the programmer does not have to deal with them, the development environment suggests and optimizes them when creating a program. The program can be distributed and assembled for a variety of devices [4]. The resulting software records the analog audio signal captured by the microphone and converts it into digital form. Based on the frequency, it determines the closest desired guitar string tone frequency and its deviation from the measured value. This deviation is displayed in the graphical interface. The measurement is repeated in the endless loop of the program. In Figure 6 shows a flowchart showing the principle of the tuning operation. Figure 5. Block scheme 2.1. Creating a Software in LabVIEW The benefits of creating of software in LabVIEW include the short time required for design, high reliability and optimization of the resulting software. Programs designed in LabVIEW support asynchronous programming and parallel run of the program on multiple processor Figure 6. Flowchart Figure 7. LabVIEW enviroment for myrio

44 Journal of Automation and Control Figure 7 shows the LabVIEW environment used to activate and verify myrio functionality after hardware connection. 2.2. User Interface and Programming Environment The resulting software consists of three tabs: Tuning, Settings, and Graph. In Figure 8 shows the main window for tuning. The dial on the meter shows a deviation from the desired frequency of the tuned string. The range of the meter is within ± 5Hz of the desired frequency, one main scale step is 1Hz. The center of the meter is a zero deviation from the desired tuned frequency. When zero deviation is reached, we consider the string to be tuned, which also indicates the background color that changes to green. In addition to the meter, the current numerical value of the frequency and the desired frequency of the tuned string are displayed along with its music label for easier understanding. The Graph tab is informative, showing the change of frequency real-time throughout tuning (Figure 9). In Figure 10 and Figure 11 show part of the block diagram of the final software for a digital guitar tuner. Figure 10. Block diagram in LabVIEW Figure 8. Tuning tab On the Settings tab, the user has the option to change the sampling rate. After making some changes in the software, the programmer can set the tuner to allow for multiple musical instruments to be tuned. These changes must be made in the Settings tab. Figure 11. Block diagram for detecting of a tuned string After completing the software, we have verified it. We verified the tuner with the sound of the desired frequency generated in the smartphone application. This verification was followed by a practical guitar tuning test that confirmed the functionality of our solution. 3. Conclusions Figure 9. The Graph tab The aim was to demonstrate myrio's capabilities in conjunction with the LabVIEW development environment. This is demonstrated by the example of creating a digital tuner. The software converts the analog signal into a digital form. Subsequently, the digital signal adjusts to user-friendly information displayed in the graphical interface of the program. Designed digital tuner can be expanded for tuning several types of musical instruments. The solution could also be used for other types of problems. By modifying the input device and the software, it would be possible to process other physical quantities whose analysis could bring a high utility value, for example, in the modal analysis of technical constructions.

Journal of Automation and Control 45 Acknowledgements This work was supported by grant projects VEGA No. 1/0393/14. References [1] Brüel & Kjær. - Measuring sound. [online]. 1984. http://www.bksv.com/doc/br0047.pdf. [2] BRANDSTEIN, Michael - Microphone arrays: signal processing techniques and applications. Berlin: Springer, 2001, ISBN 3-540- 41953-5. [3] Brüel & Kjær. - Microphone Handbook vol.1. [online]. 1996, http://www.bksv.com/doc/be1447.pdf. [4] LARSEN R. LabVIEW for Engineers, Boston: Prentice Hall, 2011, ISBN 978-0-13-609429-6. [5] NATIONAL INSTRUMENTS NI myrio-1900 User guide and specifications [online]. http://www.ni.com/pdf/manuals/376047a.pdf. [6] NATIONAL INSTRUMENTS NI myrio Project Essentials Guide [online].http://www.ni.com/myrio/project-guide [7] TAN, Li. - Digital Signal Processing - Fundamentals and Applications. [online]. http://app.knovel.com/hotlink/toc/id:kpdspfa003/digital-signalprocessing-2/digital-signal-processing-2.