LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Is possible to build a tone detector that can display the tone with a Arduino uno R3?

Ok, so I have a class project where I’m asked to write a code that will detect a tone similar to a guitar tuner. Its not required that I actually build something that does this. I could just use my computer but I thought it would give me a chance to get my hands dirty and get some experience programing AND building circuits.  I bought the Arduino uno R3 hoping to do just that. This is my first experience with microprocessors and was wondering if I got the right one for the job and if so where is a good place to start?

0 Kudos
Message 1 of 3
(4,085 Views)

Hey,

I'll assume you want to do this mainly in software.  This is going to be hard to do with an Arduino.

You'll need to get a microhphone (probably with an amplifier) and connect it to an anlog input.  Then sample as fast as you can and perform and FFT on the input signal to extract the major frequencies.  Getting an FFT to run on Arduino is gonig to be diffuclt and super slow.  LabVIEW makes it really easy to do an FFT, but LIFA will be too slow on the sampling side.  I'm not sure what your budget is but a myDAQ or myRIO would make this really easy (they even have audio jack inputs).

Let us know if you have more questions.

Thanks!

-Sam K

LabVIEW Hacker

Join / Follow the LabVIEW Hacker Group on google+

0 Kudos
Message 2 of 3
(3,371 Views)

If you need to detect multiple frequencies in a tone then as Sammy says the best way is a FFT  Although the Arduino Uno isn't suitable for running a FFT you could use an Arduino Due.

If the tone only has one frequency you could use an Arduino Uno.  Frequency counter sketches are available for the Arduino Uno.

0 Kudos
Message 3 of 3
(3,371 Views)