I have a Parallax Propeller kit and was wondering if there can be a way to input a microphone to measure the frequency of the sound wave coming from a guitar string (eg. guitar tuner)
if pluck a string from my guitar the string oscillates at a specific freq... if i wanted to make sure the string was in "tune" i want to compare it to the freq i am aiming for.
even if i was deaf, the guitar string can still be out of tune.
There is always the time and place for "just buy one". If you really want to do this project, we will gladly help you. It's little things like this that give the biggest kick sometimes
yes, actually im in an introduction to microprocessors class. we started out by learning assembly language (which i hate) and now we've moved on to this Parallax Propeller uC.
We will then move on to the PIC Kit 3.
i wanted to try to make a guitar tuner for the end of the semester project. other people in class are making a motion detection light switch (too plain).
Frequency to voltage IC's are available. You may need to amplify the signal from the guitar to the F/V converter. For which you could probably use an op amp. Then run the output from the opamp to the F/V converter. The output from the F/V converter will need to be 0 - 5 volts for the uController so you would have to design for that. Then you will need to map an analog input on your uController and calibrate it to be able to convert 0 -5 volts into a number you read as frequency. So you would need an output like and LCD for that.
The other option is to use a voltage to frequency converter and output a tone to tune to using the ucontroller to set the voltage.
On second thought you could set an led on a pwm output and have it get brighter the closer you are in tune, might be simpler than an lcd. you would need to be able to instruct the ucontroller which freq you are looking for eg: Switch in pos 1 tells ucontoller to look for the A which you set in code as whatever voltage 440 Hz is output from your F/V converter.
Frequency to voltage IC's are available. You may need to amplify the signal from the guitar to the F/V converter. For which you could probably use an op amp. Then run the output from the opamp to the F/V converter. The output from the F/V converter will need to be 0 - 5 volts for the uController so you would have to design for that.
Well, ideas are the point of forums. Please elaborate on processing small signals with the pic input, I am interested as well I am sure as is D.M. How accurate do we need to be?
You don't process it inside the PIC, you process it externally - just as you would have to if trying to use a F to V converter. Basically amplify it and filter it, guitar notes aren't pure, and it's the fundamental frequency you want, not the harmonics.
The EPE example I mentioned used filters controlled by the PIC to do this.
Commercial guitar tuners (at a fraction of what building one would cost) use DSP's to do the job.
I agree with everything your are saying. Sometimes finding an expensive poor way to do something is more fun than buying the off the shelf solution though.