Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > Electronic Projects Design/Ideas/Reviews


Electronic Projects Design/Ideas/Reviews Are you building an electronic project or want to? Maybe you need some assistance? Come and submit your electronic questions here and let our experienced members find a solution.

Reply
 
LinkBack Thread Tools Display Modes
Old 11th July 2008, 08:22 AM   (permalink)
Default

I also came across another design, the schematic was hard to read so I redrew it, the values might be incorrect. If they seem out of place please let me know. Is this the kind of filter + comparator combo, I should be going for??
Attached Images
File Type: jpg SKfilter+comparator.jpg (32.3 KB, 20 views)
__________________
transistance is futile...
transistance is offline  
Old 11th July 2008, 09:33 AM   (permalink)
Default

That certainly looks a lot more plausible, with an input suitable for a guitar.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 11th July 2008, 09:52 AM   (permalink)
Default

do all values in the pspice schematic above look easily obtainable?

As in are the values of resistors and capacitors that are available in electronics stores?

For the 2.5v power supply-I think feedback?- connecting to U4 opamp, can i just use any value R's for a voltage divider on 5V to achieve 2.5V, or would the resistors screw up the response of the last opamp - which i think is functioning as a comparator? - ?

I think I should also move to a quad opamp to save some space since this is supposed to fit inside a guitar.
__________________
transistance is futile...

Last edited by transistance; 11th July 2008 at 09:53 AM.
transistance is offline  
Old 11th July 2008, 11:07 PM   (permalink)
Default

Tour schematic was saved as a fuzzy JPG file type instead of as a very clear GIF or PNG file type.
Your batteries are drawn with backwards polarity.

You changed everything:
1) The original circuit has a 1M input impedance. Yours is 500k.
2) The original circuit uses a 1uF capacitor in the gain setting parts for the 1st opamp for a low cutoff frequency of 16Hz. Your 50nF capacitor for C2 has a low cutoff frequency of 320Hz. It will have a flat response down to 1.6khz.
3) The original circuit has C4 double the value of C3 to make a sharp Butterworth response on its lowpass filter. Yours has equal values which makes a droopy Bessel filter.
4) The original circuit uses 100nF for C5. Yours has only 10nF.
__________________
Uncle $crooge
audioguru is offline  
Old 14th July 2008, 02:25 PM   (permalink)
Lightbulb Self Intervention

I did some calculations on my own this time to create my filters. The real important one is the low pass. I think the capacitors I have chosen will make a sharper curve. The high pass filter is there as a precaution and serves as a barrier to only pass through the frequencies I am interested in. The rest of the circuit has been taken from 5-string bass tuner from electricdesign that u can find at the bottom of the first page of this thread.

I hope that this will be an effective design, I took care to have high input impedance and to choose the right sized capacitors for my low pass filter to get a sharper curve.

What I learned from this project is that one is better off understanding the filter concept and creating his own; makes everything so much clearer. Also, boxing and labeling separate parts of your design helps you understand the flow mechanism.

Now, I am TRULY ready for your already appreciated inputs.

thanks in advance,
Attached Images
File Type: jpg Completed Circuit Design.jpg (78.3 KB, 16 views)
__________________
transistance is futile...

Last edited by transistance; 14th July 2008 at 02:26 PM.
transistance is offline  
Old 14th July 2008, 04:16 PM   (permalink)
Default

Your filters are not correct. A Butterworth filter has a flat response then a drop off as sharp as the number of poles. Your filters are not Butterworth and have only two poles.

A second order filter has two poles and drops off at the rate of 12dB per octave.

Your lowpass filter has capacitor values ratio that causes a peak at about 400hz instead of a flat response. For an opamp with a gain of 1 the capacitor ratio should be 2:1 for a Butterworth flat response.

Your highpass filter has a droopy cutoff since its resistors do not have the 2:1 ratio needed for a Butterworth flat response. The 1uf capacitors are huge and expensive and could be smaller and less expensive if the resistors have higher values.

The TL084 has noise. The TL074 is low noise and costs the same. They have a minimum supply voltage of 7V so your 5V supply is too low.

You have two bias voltage circuits when only one is needed. The junction of the three 1M resistors should have a 1uF filter capacitor to ground. The resistir in the highpass filter must connect to the bias voltage, not to ground.

The input capacitor cuts frequencies below about 80Hz and should be 0.022uF (22nF).

Here is how the filters should be:
Attached Images
File Type: png guitar filters.PNG (5.6 KB, 18 views)
__________________
Uncle $crooge
audioguru is offline  
Old 15th July 2008, 12:37 PM   (permalink)
Default

First of all thanks for your fixes.. they do feel like a slap in the face sometimes but if it helps me learn something then it's good...

So is my low-pass a second order unity gain filter? and with your mods it has a butterworth response? Is it a general rule to have the 2:1 ratio in butterworth? I thought the greater the ratio the flatter response and sharper curve at the end.

You mean to replace the 10nF named C5 to 22nF i assume? My circuit needs to analyze Drop D and Flat D tunings which should be closer to 50Hz. So I do not wanna block sub-80Hz frequencies. That's what you did refer to as input capacitor though right?

Should I bias with 3.5V now that I'm gonna be using TL074's? I have a vague memory that opamps referenced voltages of their own supplies? Will that be a better adjustment?

Why do I need to bias the high pass filter? Won't the amplified signal have enough input to drive the IC?
__________________
transistance is futile...

Last edited by transistance; 15th July 2008 at 01:25 PM.
transistance is offline  
Old 15th July 2008, 05:09 PM   (permalink)
Default

Quote:
Originally Posted by transistance View Post
So is my low-pass a second order unity gain filter? and with your mods it has a butterworth response? Is it a general rule to have the 2:1 ratio in butterworth? I thought the greater the ratio the flatter response and sharper curve at the end.
The ratio of the capacitor values in an active filter determines the sharpness of its corner:
1) With equal values then it has a droopy cutoff. It has a Bessel response.
2) With 2:1 capacitor volues then the negative feedback boosts the corner and makes it a sharp Butterworth response. A Bessel filter (equal values) with a gain of 1.6 is the same.
3) With a ratio higher than 2:1 or a Bessel filter with a gain higher than 1.6 then there is a peak in the response. A Bessel filter oscillates at the peak if the gain is higher than 3.

Quote:
You mean to replace the 10nF named C5 to 22nF i assume? My circuit needs to analyze Drop D and Flat D tunings which should be closer to 50Hz. So I do not wanna block sub-80Hz frequencies. That's what you did refer to as input capacitor though right?
Yes.
But my highpass filter has a cutoff frequency of 50Hz. Change its 220nF capacitors to 270nF for a 41Hz cutoff or to 330nF for a 33Hz cutoff.

Quote:
Should I bias with 3.5V now that I'm gonna be using TL074's? I have a vague memory that opamps referenced voltages of their own supplies? Will that be a better adjustment?
Bias the inputs of the opamps at half the supply voltage. 7V is an unusual supply voltage so use 9V, 10V or 12V. A 9V battery will be above 7V for 1/5th of its life.

Quote:
Why do I need to bias the high pass filter? Won't the amplified signal have enough input to drive the IC?
The input bias voltage of an opamp that has a single supply is half the supply voltage.
The minimum useable input voltage of most opamps is 2V to 3V when there is a single supply. Then the opamp works like a rectifier because its output cannot produce the negative-going swing of the signal.
__________________
Uncle $crooge

Last edited by audioguru; 15th July 2008 at 05:09 PM.
audioguru is offline  
Old 18th July 2008, 07:58 AM   (permalink)
Angry Power Problem

I moved my circuit to a new protoboard (seems less noisy). I have a 5V rail driving the LCD/PIC and a 9V rail for the dual TL074 filter. Both rails are powered by an adjustable-voltage DC power source at 12V.

The 5V side of the protoboard functions as intended when plugged in alone, the LCD is bright and the menu is fully functional. But when I plug in the power to 9V rail as well I lose the display on the LCD, and can not be sure if the PIC is functioning properly without that interface.

Is it possible that the 9V side of the protoboard drawing so much current that the power source can not deliver?
__________________
transistance is futile...
transistance is offline  
Old 18th July 2008, 08:07 AM   (permalink)
Default

Quote:
Originally Posted by transistance View Post
I moved my circuit to a new protoboard (seems less noisy). I have a 5V rail driving the LCD/PIC and a 9V rail for the dual TL074 filter. Both rails are powered by an adjustable-voltage DC power source at 12V.

The 5V side of the protoboard functions as intended when plugged in alone, the LCD is bright and the menu is fully functional. But when I plug in the power to 9V rail as well I lose the display on the LCD, and can not be sure if the PIC is functioning properly without that interface.

Is it possible that the 9V side of the protoboard drawing so much current that the power source can not deliver?
hi,
What happens when you plug in the supply for the filters [9v] without the LCD [5v].

Have you checked for any shorts on the filter circuit.

Whats the current rating of the psu.?
__________________
Eric
"Good enough is Perfect"

PIC tutorials:
Gramo's: www.digital-diy.net/
Bill's: www.blueroomelectronics.com/
ericgibbs is offline  
Old 18th July 2008, 08:40 AM   (permalink)
Default

The 9V side of the circuit board is still in test phase, so I can not guarantee that it works on its own without the 5V rail powered up.

I have not noticed any shorts yet, although it's always a possibility - the filter(9V) side is very chaotic and crowded. I do get a complete circuit beep when I check between the +/- of the 9V rail, but I thought that is probably because of the voltage dividers right? Or i should not get a complete circuit when I test them?

I don't know the current rating of the PSU yet, it might be low - it was inexpensive. I'll have check when I get home.

The thing is no matter how cheap the PSU is; if this circuit can not be fed enough witha wall plug-in psu, can it at all be possible to feed it with a 9V battery?

This project is still incomplete. I still have to add a controller for 6 microservos. Not that all of them will draw current at the same time but PIC+LCD+filters(quad opamp)+ high input impedance amp (1 opamp)+1 servo will have to be powered all at once through most of the process.

All my digital, analog and psu grounds are common as well - which I think is the right thing to do-, you think that could be a problem?
__________________
transistance is futile...

Last edited by transistance; 18th July 2008 at 08:52 AM.
transistance is offline  
Old 18th July 2008, 08:54 AM   (permalink)
Default

hi,
Some plug in psu's are of a low spec and unregulated

If you get a 12Vdc regulated wall plug, say current rated at 500mA to 1000mA that would cover most small projects.
They are not expensive.

Use linear regs, 7809 for the +9V
[ have you checked your circuit to see if a +12V would be OK, instead of +9V .?]
and say a 7805 for the +5V logic.
__________________
Eric
"Good enough is Perfect"

PIC tutorials:
Gramo's: www.digital-diy.net/
Bill's: www.blueroomelectronics.com/
ericgibbs is offline  
Old 18th July 2008, 09:02 AM   (permalink)
Default

I'm already using LM7809 and LM7805 to regulate my power rails. The voltage dividers are for the bias voltage input to opamps.

The real question is would a 9V battery be able to support this circuit? If so, for how long?
__________________
transistance is futile...
transistance is offline  
Old 18th July 2008, 09:10 AM   (permalink)
Default

Quote:
Originally Posted by transistance View Post
I'm already using LM7809 and LM7805 to regulate my power rails. The voltage dividers are for the bias voltage input to opamps.

The real question is would a 9V battery be able to support this circuit? If so, for how long?
Thats a tough question.

As you know batteries have a specified AHr capacity, depending upon the battery type.
Not knowing the average current required by your circuit it would be hard to say.

Other factors are the battery voltage when its on load, maybe less than 9V.. you have to consider the overhead voltage required by the 7805 reg. Also how long at any one session the battery is being used will affect its life.

Batteries are not cheap and when you consider you may want to use this for a long time,
a mains psu would be a good investment.
__________________
Eric
"Good enough is Perfect"

PIC tutorials:
Gramo's: www.digital-diy.net/
Bill's: www.blueroomelectronics.com/

Last edited by ericgibbs; 18th July 2008 at 09:11 AM.
ericgibbs is offline  
Old 18th July 2008, 09:13 AM   (permalink)
Default

But this is supposed to be implemented into the body of a guitar.. ::cry::

Damn.. I don't even have a fully functional circuit yet and already planning how to implement phantom power...

bummer
__________________
transistance is futile...
transistance is offline  
Reply

Bookmarks

Thread Tools
Display Modes



Similar Threads
Title Starter Forum Replies Latest
Audio Frequency Detection transistance Electronic Projects Design/Ideas/Reviews 21 25th June 2008 03:31 PM
Frequency detection Nile_Team Micro Controllers 9 3rd April 2006 12:49 PM
Audio beat detection jrz126 Electronic Projects Design/Ideas/Reviews 21 12th May 2005 12:28 PM
active filter for digital guitar tuner swh General Electronics Chat 6 7th June 2004 06:52 PM
IR detection by band pass filter hasanaziz008 Electronic Projects Design/Ideas/Reviews 1 6th May 2004 03:14 AM



All times are GMT. The time now is 06:31 AM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

eXTReMe Tracker