Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > General Electronics Chat


General Electronics Chat This forum is for general chat about electronics, eg: Dont know what a part does? Dont know how to read a circuit? Want to get an opinion?

Reply
 
Thread Tools Display Modes
Old 22nd January 2008, 03:47 PM   (permalink)
Default Help, Schmitt trigger

Hi guys,

Anyone know any links to where I can find the formula/expressions for an Op Amp Schmitt Trigger ? Meaning to calculate the UTP and LTP values. Or if any of you know the formula, please reply, this is giving me a headache !

I understand the theory but I just can't get the calculations. I've googled everywhere and I cannot find any .. There are formulas for BJT Schmitt triggers though.

Thanks.
rngd is offline   Reply With Quote
Old 22nd January 2008, 04:03 PM   (permalink)
Default

You are problably looking for a window detector. A dual comparator with open collectors would probably work just fine, by tying the output collectors together and a resistor from the collectors to Vcc. I think the LM2903 would work.
__________________
The great thing about electronics is unlimited ways to do the job. The only limit is one\'s imagination. I generally think my way is best.
Show me a different way. I have an open mind.
k7elp60 is online now   Reply With Quote
Old 22nd January 2008, 04:10 PM   (permalink)
Default

Actually I'm just copying an already designed circuit using a TLC339. I'm trying to analyze the circuit and modify the UTP and LTP values. Do you know where I can get that info ?

The circuit is attached below just in case.
Attached Images
File Type: jpg chargercircuit.JPG (34.7 KB, 49 views)

Last edited by rngd; 22nd January 2008 at 04:12 PM.
rngd is offline   Reply With Quote
Old 22nd January 2008, 06:22 PM   (permalink)
Default

Quote:
Anyone know any links to where I can find the formula/expressions for an Op Amp Schmitt Trigger ? Meaning to calculate the UTP and LTP values. Or if any of you know the formula, please reply, this is giving me a headache !
OK, guess I need to define R1 and R2 first:
R1 connected from output to non-inverting input. R2 connected from non-inverting input to ground. Vin is inverting input.
VupperTH = R2/R1+R2(+Vout-max)
VlowerTH = R2/R1+R2(-Vout-max)

Hope you can make sense of this.
BeeBop is offline   Reply With Quote
Old 23rd January 2008, 06:38 AM   (permalink)
Default

Quote:
Originally Posted by BeeBop
OK, guess I need to define R1 and R2 first:
R1 connected from output to non-inverting input. R2 connected from non-inverting input to ground. Vin is inverting input.
VupperTH = R2/R1+R2(+Vout-max)
VlowerTH = R2/R1+R2(-Vout-max)

Hope you can make sense of this.
It's not quite that simple. see below.
Attached Images
File Type: png Schmitt trigger calcs.PNG (31.4 KB, 64 views)
__________________
Ron

Roff is offline   Reply With Quote
Old 23rd January 2008, 08:19 AM   (permalink)
Default

Thanks, Roff ! Exactly what I was looking for !
But I have a few questions for you,

1. I did not know we need to take Vcc into account.. My circuit does not have the RL resistor between the output and Vcc, so I can just leave RL out of the eq. and replace with a short between output and Vcc ?

2. What about when the Schmitt trigger is non-inverting ?

I will try out the calculations and simulate it and see what I can get.
Thanks for your time.
rngd is offline   Reply With Quote
Old 23rd January 2008, 03:42 PM   (permalink)
Default

Quote:
Originally Posted by rngd
Thanks, Roff ! Exactly what I was looking for !
But I have a few questions for you,

1. I did not know we need to take Vcc into account.. My circuit does not have the RL resistor between the output and Vcc, so I can just leave RL out of the eq. and replace with a short between output and Vcc ?
What IC are you using for a comparator?

Quote:
2. What about when the Schmitt trigger is non-inverting ?
Do you mean like in the circuit below?

Quote:
I will try out the calculations and simulate it and see what I can get.
Thanks for your time.
Attached Images
File Type: png schmitt noninv.PNG (3.6 KB, 24 views)
__________________
Ron

Roff is offline   Reply With Quote
Old 23rd January 2008, 04:48 PM   (permalink)
Default

Quote:
What IC are you using for a comparator?
I am using a TLC339.

Please help, I have been going over this since I posted and I still can't get it ! The connections are different than your diagram. Can you please have a look at the circuit I posted above and tell me how I should do the calculations ?
It doesn't have voltage dividers, its replaced with a 2.5V reference.
Vcc does not appear to be connected to any of the op amp resistors, just the power supply for the IC.



Quote:
Do you mean like in the circuit below?
Yes
rngd is offline   Reply With Quote
Old 23rd January 2008, 04:59 PM   (permalink)
Default

Quote:
Originally Posted by rngd
I am using a TLC339.

Please help, I have been going over this since I posted and I still can't get it ! The connections are different than your diagram. Can you please have a look at the circuit I posted above and tell me how I should do the calculations ?
It doesn't have voltage dividers, its replaced with a 2.5V reference.
Vcc does not appear to be connected to any of the op amp resistors, just the power supply for the IC.





Yes
This is the Schmitt from your schematic. If your schematic is different, then post it.
EDIT: I just noticed the other Schmitt in your schematic. Hang on for a while so I can look at it.
Attached Images
File Type: png Schmitt.PNG (9.3 KB, 25 views)
__________________
Ron

Roff is offline   Reply With Quote
Old 23rd January 2008, 05:15 PM   (permalink)
Default

OK, here's the analysis for the other Schmitt trigger. You do have RL, it's the 100k from the output to the battery. Your LM339 is powered by the 15V zener circuit at the bottom of your schematic. LM339 is a quad comparator, so they only show the power supply connections on one of the sections.
Attached Images
File Type: png Schmitt trigger calcs1.PNG (26.6 KB, 26 views)
__________________
Ron

Roff is offline   Reply With Quote
Old 24th January 2008, 03:04 PM   (permalink)
Default

OK, much thanks Ron, its all less confusing now. After calculating, the results I got for the UTP is approx. 2.5V and LTP 0V. Simulation seems to work ok too.

But how does the LTP get triggered when it is at 0V ? In this circuit the Vin cannot possibly become negative, right ?

Also, how do I find the Vout(max) of the opamp ?

Can you elaborate on 'Out(low) = approx 0V' ? Do you mean -Vout(max) =approx 0V and why do you set it that way?

Is the analysis for the non-inverting opamp similar, using the Vcc to feedback to ground branch? The circuit is something like this :
Attached Images
File Type: jpg untitled.JPG (77.1 KB, 17 views)
rngd is offline   Reply With Quote
Old 24th January 2008, 04:34 PM   (permalink)
Default

Quote:
Originally Posted by rngd
OK, much thanks Ron, its all less confusing now. After calculating, the results I got for the UTP is approx. 2.5V and LTP 0V. Simulation seems to work ok too.
V(ltp)=Vref*RH/(RH+Rth)
V(ltp)=2.5*1Meg/(1Meg+5k)
V(ltp)=2.488
How did you get zero?

Quote:
But how does the LTP get triggered when it is at 0V ? In this circuit the Vin cannot possibly become negative, right ?

Also, how do I find the Vout(max) of the opamp?
Vout(max)=Vref+(Vcc-Vbatt)*(RH+Rth)/(RH+Rth+RL), where RL=100k (the resistor from the output to the battery).
I don't know what your battery voltage (Vcc) is, but if it were, for example, 9V, Vout=2.5+(9-2.5)*(1Meg+5k)/(1Meg+100k+5k)=8.13V
Quote:
Can you elaborate on 'Out(low) = approx 0V' ? Do you mean -Vout(max) =approx 0V and why do you set it that way?
The TLC339 has an open drain output, with the source grounded (see p.2 of the datasheet). When the output is low, that transistor is like a closed switch to ground. When the output is high, that transistor is off, so the output voltage is determined by whatever is connected to the output. Hence the equation above for Vout(max).
Quote:
Is the analysis for the non-inverting opamp similar, using the Vcc to feedback to ground branch? The circuit is something like this :
If Vin is a voltage source, R1 (RL in my terminology) is the only resistor that does anything in that circuit.
__________________
Ron


Last edited by Roff; 24th January 2008 at 04:36 PM.
Roff is offline   Reply With Quote
Old 27th January 2008, 06:34 PM   (permalink)
Default

Hey Ron, sorry for the late reply.

For the non-inverting one, why do you say RL the is the only resistor that does anything ? I thought adjusting the pots would adjust the UTP/LTP ?

Looking at the attached pic, is the UTP calculated using the blue path ? If not, can you please tell me how it should be.

Also, how does the 2.5V reference in the negative input affect things ?


Thank you.
Attached Images
File Type: png Schmitt.PNG (9.3 KB, 14 views)
File Type: jpg untitled.JPG (14.3 KB, 11 views)
rngd is offline   Reply With Quote
Old 27th January 2008, 08:35 PM   (permalink)
Default

Quote:
Originally Posted by rngd
Hey Ron, sorry for the late reply.

For the non-inverting one, why do you say RL the is the only resistor that does anything ? I thought adjusting the pots would adjust the UTP/LTP ?

Looking at the attached pic, is the UTP calculated using the blue path ? If not, can you please tell me how it should be.

Also, how does the 2.5V reference in the negative input affect things ?


Thank you.
When your Vin is where you show it in the right-hand schematic, and Vin is a zero impedance source, the R2-R3 voltage divider and the hysteresis resistor R4 have no effect, because Vin is Vin, regardless of the value of those resistors. Imagine Vin is a 3 volt battery. You can adjust R2, R3, and R4 until the cows come home, but Vin will still be 3V. If you want those resistors to have some effect, Vin has to have some series resistance.
EDIT: have you posted what you are trying to do with a Schmitt trigger, or are you making the study of Schmitts your life's work?
I don't want to have to calculate the equations for every possible permutation of a Schmitt trigger.
__________________
Ron


Last edited by Roff; 27th January 2008 at 08:38 PM.
Roff is offline   Reply With Quote
Old 28th January 2008, 05:07 PM   (permalink)
Default

Actually, the main circuit is someone else's and I'm just trying to figure out how hysteresis adjustments are made.

OK sorry, forget the equations, can you just tell me what the reference voltage at the negative input does ?

When it is at the positive it affects the Vin, what about at the negative ? I cant find anything about it either online or in books...
rngd is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Latest
Need help with Schmitt trigger application! whirlwindz General Electronics Chat 8 23rd May 2007 12:05 PM
Schmitt Trigger for 'counting' the time Odysseas General Electronics Chat 24 24th September 2006 03:49 PM
PIC – RB0 Interrupt pin Schmitt Trigger input elexhobby Micro Controllers 5 9th October 2005 09:31 AM
Calculating Schmitt Trigger Wbdsgnr General Electronics Chat 1 29th March 2005 05:04 PM
diffferences between a TTL and a ST (Schmitt Trigger) I/O ?? foosm Micro Controllers 2 27th August 2003 06:27 PM



All times are GMT. The time now is 02:05 PM.


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