Well wouldn't the input frequency from the guitar be a sine wave? Would I basically need to take the input and run that through an amplifier and then use an RC filter to keep the signal from 0v to 5v? Then I imagine I could use the frequency counter libraries or pulse count to log the frequency over a set period of time?The reason I want to use LEDs is just to have practice with writing code and routing the signals to the different pins on the Arduino.
I believe I understand the comparator idea. Basically the guitar input goes through a capacitor that gives will give an AC output. This output would be put into the comparator on the voltage input pin with some other voltage in the voltage reference pin. I suppose the voltage reference would have to be very close to the to the max amplitude of the guitar input?No, just some small stable voltage level above the noise level of a no signal condition. The comparitor will switch at each 'zero crossing + reference' as in this simplified circuit (also not showing the series connected coupling cap for the signal. Then it's simple a matter of counting the frequency in software which is much simpler then trying to extract the frequency using analog reading samples. http://www.piclist.com/images/www/hobby_elec/gif/dance2321.gif Or would I rather use the frequency counter/pulse counter function to recognize the rising edge each time the input voltage was higher than the reference voltage? I'm sorry if I'm not using correct termanology, but everyone is helping tremendously. Thank you!
Haha, I was just brushing my teeth and it dawned on me that that is how I would do it, then I come back and you've already answered the question! Thank you so much!Now all I really have to worry about is what the input wave is going to look like and how to retrieve the fundamental frequency of the wave. The code should be pretty simple as well. You, sir, are a genius!
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16