electronics forum

Rules | Recent posts | topic RSS | Search | Register  | Log in

guitar tuner


Post new topic  Reply to topic    EDAboard.com Forum Index -> Hobby Circuits and Small Projects Problems -> guitar tuner
Author Message
david90



Joined: 05 May 2004
Posts: 384
Helped: 1


Post29 Jan 2006 7:25   

schmitt trigger guitar tuner


how should I design the microphone circuit of the tuner? Is it a good idea to use a schmitt trigger inverter to convert the analog wave from the mic into pulses so that a uC can process the signal?
Back to top
hermin



Joined: 19 Apr 2005
Posts: 135
Helped: 9


Post29 Jan 2006 8:27   

guitar tuner


that is not a bad idea, but i would prefer to use an ADC to be processed by the uC,

the only thing is when you use a schmitt trigger, all the sine waves will be converted to a pulse, and that is when you are using a sine wave, but tones may come with two sine waves or multiple, and if i imagine it right, it may render the pulse inaccurate to the frequency or tone reading that you'll get...but i stand corrected, anyone who thinks other ways?
Back to top
Google
AdSense
Google Adsense




Post29 Jan 2006 8:27   

Ads




Back to top
david90



Joined: 05 May 2004
Posts: 384
Helped: 1


Post29 Jan 2006 16:31   

Re: guitar tuner


Will the signal from the mic swing from negative voltage to positive voltage like AC or just positive?
Back to top
Buriedcode



Joined: 06 May 2004
Posts: 327
Helped: 34
Location: London


Post29 Jan 2006 16:48   

Re: guitar tuner


hi.

Quote:
Will the signal from the mic swing from negative voltage to positive voltage like AC or just positive?


Generally, all audio to electrical signals are AC, they swing above and below 0v. Capacitors are in nearly all audio equipment, and these block any DC component.
Theres a simple solution though, add a DC bias before you sample the signal with an ADC.

Say your ADC can measure voltages from 0-5v. Get your audio signal, and amplify it (or attenuate it) so that you have 5v p-p. This means the lowest voltage will be -2.5v, and the highest +2.5v. Then simply connect this through a voltage divider, that provides 2.5v. So, the lowest voltage now becomes -2.5 + 2.5 = 0v. And the highest 2.5 + 2.5v = 5v. With the centre being your 2.5v from the bias.

A schmitt trigger wouldn't help with your design. You would lose all the information from the audio signal, as hermin said. Sure, if you were trying to measure the frequency of a single sine wave, then you probably could use a schmitt trigger, and your uC simply as a counter. But guitar signals are rich in harmonics, otherwise all guitars would sound very dull, like a dead hum.

Even plucking a single string will produce many harmonics of the fundamental (like the tones you get from frets 5,7 and 12), so the signal you'll be looking at will be messy. Even the fundemental (the note of the string you pluck) isn't always the most promenant frequency in the signal. But....when you tune, you only need to 'detect' 6 frequencies, for E, A, D, G, B, E. I'm sure others have done this before, use google.

Hope this helps,

BuriedCode.
Back to top
david90



Joined: 05 May 2004
Posts: 384
Helped: 1


Post29 Jan 2006 20:18   

guitar tuner


How does the mic produce a negative voltage when the only power I supply is 5V?

Also, I connected a 1k resistor to 5v, then to the mic then from the mic to ground. When I measure the voltage at the resistor & and mic node, the voltage stays pretty much the same. Shouldn't the voltage oscillate when sound hit it??

I'm kinda new to condensor mic.
Back to top
Buriedcode



Joined: 06 May 2004
Posts: 327
Helped: 34
Location: London


Post29 Jan 2006 21:16   

Re: guitar tuner


hi again,

Quote:
Shouldn't the voltage oscillate when sound hit it??


Yes. But, the signal direct from a microphone is generally quite weak. Also, if you used a voltmeter, that generally measures DC, or at least a very slowly changing voltage. Mic's can pickup from 20-20Khz (if they're any good) so, could our voltmeter measure a signal changing 20 times a second by a few mV?

Is this an electret microphone? The little 7-10mm mic insterts with 2 solder pads?
They have a small FET built inside, which is why they require power. This acts as a small preamp, since the voltage produced from a raw condesor mic element is extremely weak. That fet is just to get it up to a level where standard preamplifers can amplify it even further (so it can be plugged into a power amplifier for the speakers).

Quote:
How does the mic produce a negative voltage when the only power I supply is 5V?


Believe it or not, this is actually a tough question Smile

Sound, by deffinition is a wave of pressure, oscillating between 20Hz and 20Khz (actually beyond this range, but this is the range of frequencies we can hear/detect). When the microphone receives sound, it converts this rapid changing air pressure to an electrical signal. This signal oscillates according to the sound. So, say, for example, you're providing a 20Hz hum to the mic, and the mic is powered by 5v. Assuming the output of the mic is 1v p-p (these are just made-up values) then the output of the microphone would vary between 4 and 5 v. Now, that signal is really made up of two 'components'. A DC component (power) and a 'transient' component (audio signal). When this is passed though a capcitor, the DC ocmponent is blocked, and the AC/transient signal is allowed to pass. How much the AC signal is attenuated depends on the value of the capcitor. So, our DC component was 4.5V, and our AC component was 1v p-p (-0.5v to +0.5v).

Without the DC component we are simply left with the -0.5v to +0.5v audio signal.

When you measured the voltage of the microphone, did you connect a capacitor between the mic and the voltmeter?? I still doubt you'll see any change in voltage, but it should read '0v' and might jump around when you smack the mic element......which by the way, is inadvisable, as the little electret/condensor mics are quite fragile.

Heres some links to get you started........although....google is quite easy to use.

http://www.myplace.nu/avr/gtuner/ - exactly what you want.

http://www.ektopia.co.uk/ektopia/archives/2005/01/03/strobopick-guitar-tuner - wicked idea!!

http://www.acoustics.salford.ac.uk/acoustics_world/id/Microphones/Microphones.htm
http://audacity.fuchsi.de/forum.php?req=download&path=.%2Fedgar%2Felectric%2F

http://members.optusnet.com.au/~eseychell/mic_preamplifier/mic_preamplifier.html

http://www.sa-eastcape.co.za/brc/Tech/Electret_Mic_Circuits.gif

http://www.members.cox.net/xsamo/common/theory2.gif
http://www.kingstate.com.tw/9-5.htm

hope some of these links help. The internet is a wonderful place.

BuriedCode.

ps: if the links come up '404 not found', copy and paste them into your browser.
Back to top
_



Joined: 18 Jan 2006
Posts: 15


Post30 Jan 2006 10:46   

Re: guitar tuner


Just an idea, instead of using a mic why not amplify the guitar signal with op amps follow by a hi Q adjustable frequency cutoff point bandpass filter eg. a state variable filter which selects the note that you are looking to tune.

After that, rectify the signal to DC and use LEDs to indicate the level of the signal. That way you can monitor the LEDs to see if the guitar is in tune to the frequency you have selected.
Back to top
the_risk_master



Joined: 12 Aug 2005
Posts: 688
Helped: 59
Location: UE+MIT, Philippines, (14°N , 120°E )


Post30 Jan 2006 12:58   

Re: guitar tuner


Hi I'll just butt-in here (is it okay?),

Do anyone of you know the discrete circuit for ADC0820? because this chip is already phased out in my country and have to build a discrete circuit (op-amp circuit may be) to replace this ADC chip. Any help?
Back to top
nikifena



Joined: 11 Dec 2003
Posts: 115
Helped: 8
Location: Bulgaria


Post30 Jan 2006 17:43   

Re: guitar tuner


I don't like to make any advertisement but I have small korg (ca-30) tunner. I think that this tuner is the best. Verry fast reading and no problem if your guitar or bass have some effect. Verry good.
Before 2 years I like to make guitar tunner but I take korg.
Back to top
Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
Post new topic  Reply to topic    EDAboard.com Forum Index -> Hobby Circuits and Small Projects Problems -> guitar tuner
Page 1 of 1 All times are GMT + 1 Hour
Similar topics:
Need guitar tuner design (3)
Questions about op-amp of guitar tuner (1)
HELP PLEASE - Guitar Tuner in MATLAB (1)
PC Reads the Guitar nodes from Guitar (1)
Guitar Effects .. (3)
GUITAR AMPLIFIER (7)
wireless guitar (1)
guitar overdrive (5)
Guitar Circuit needed (5)
Guitar Amp Selector (2)


Abuse || Administrator || Moderators || Support us || sitemap
topic RSS