Hi,
I need to get the Frequency of a guitar. The Amplitude must be 0V and 5V, i need to get the changes low to high with a Microcontroller to calculate the frequency.
My Problem is now, how to get the Guitar Frequency to Volotage, I used to do it with a bc547 Transistor, but the highest Voltage is about 2-3V, that is not enough.
Hi,
I need to get the Frequency of a guitar. The Amplitude must be 0V and 5V, i need to get the changes low to high with a Microcontroller to calculate the frequency.
My Problem is now, how to get the Guitar Frequency to Volotage, I used to do it with a bc547 Transistor, but the highest Voltage is about 2-3V, that is not enough.
Just provide more amplification - an extra BC547 would do, or you could use an opamp. With a twin opamp you could use one half as an amplifier, and the second half as a comparator - this would give a really nice squarewave output.
You could try duplicating C3, R1, R2, R3 and T1 - placing it before the existing C3 - if that gives too much gain, you can lower it by inserting a resistor from the emitter to ground on the new transistor.
You could also try replacing the BC547 with a BC549, which has higher gain and lower noise - but you might need to alter resistor values.
Presumably you have a scope?, and that's how you know the signal is too low.
Your subject is a bit misleading. It reads as if you want to convert the frequency to voltage. But it appears that you want to amplify the signal so the micro can count the pulses and thus calculate the frequency
Your subject is a bit misleading. It reads as if you want to convert the frequency to voltage. But it appears that you want to amplify the signal so the micro can count the pulses and thus calculate the frequency
I suggest you take Nigel's advice. Put a transistor amp in front of the existing one. Decrease R1 (in the new stage) to 220 k and insert a 470 Ohm resistor between the emitter and gnd.
This will give a gain of about 10 and this should be more than enough to give you a 5 Volt signal at the collector of the second transistor.
You will need a capacitor between the collector of the new transistor and the base of the second one (ie. the existing one) to block DC.
Yes, that's looking OK - as already suggested, you may have too much gain now - you can reduce it (if required) by fitting a resistor in the emitter of the first transistor.
No you did not misunderstand me - except that you did not include the emitter resistor (between the emitter of Q1 and gnd) in the first stage (call it R7)
R1 = 220k, R2 = 56k, R7 = 470R will make the gain of the first stage about 10.
R7 will both reduce the gain and increase the input resistance - both are desirable.