All About Circuits Forum  

Go Back   All About Circuits Forum > Electronics Forums > The Projects Forum

The Projects Forum Working on an electronics project and would like some suggestions, help or critiques? If you would like to comment or assist others with their projects, this is the place to do it.

Reply   Post New Thread
 
Thread Tools Display Modes
  #1  
Old 11-07-2009, 09:54 AM
axeman22 axeman22 is offline
Junior Member
 
Join Date: Jun 2009
Location: Melbourne, Australia - GMT+10
Posts: 28
Default Schmit trigger help

Hi,

After a little advice on Schmit trigger IC's. I have a SN74LS14N chip. I've got a signal which is relatively square wave at about 100mV Peak to Peak. I want to take this circuit and make it bounce nice and hard with solid levels in accordance with the input voltage. So a +50mV input would equate to around +5v and a =50mV would equate to -5V. So I'm thinking this is ideal for a schmit trigger circuit?

I understand(perhaps incorrectly) that a schmit trigger will take the input to either the Vcc voltage or to ground depending on the input. - is that correct..? with the IC I hve, what are the trigger voltages which will result in the schmit trigger transitioning from state to state on the output. I read the data sheet but it's a bit complex for simple old me.. here it is : http://www.datasheetcatalog.com/data...N74LS14N.shtml

appreciate if anyone could confirm my understanding of the schmit trigger.. and if anyone has other ideas on how to achieve the desired output based on the inputs - a fluctuating AC signal (decoded POCSAG code actually) of around 100mVp-p. I'm trying to take this small signal and drive it up to RS-232 levels, whilst cleaning it a little at the same time.

Thanks!
Reply With Quote
  #2  
Old 11-07-2009, 10:25 AM
Bill_Marsden's Avatar
Bill_Marsden Bill_Marsden is offline
E-book Developer
 
Join Date: Mar 2008
Location: Dallas, TX (GMT-5 w/ DST)
Posts: 5,810
Blog Entries: 5
Default

What is the max frequency?
__________________
"Good enough is enemy of the best." An old engineering saying, Author unknown.
Reply With Quote
  #3  
Old 11-07-2009, 04:20 PM
SgtWookie's Avatar
SgtWookie SgtWookie is online now
Senior Member
 
Join Date: Jul 2007
Location: Orlando, FL USA
Posts: 8,378
Default

I'm afraid that your 100mV p-p signal is not of sufficient amplitude to trigger a 74LS14.

You really need to use a comparator with hysteresis; which is basically a Schmitt trigger.

Have a look at the attached schematic & simulation. The title is somewhat misleading; with Vcc=5v, hysteresis is actually about 25mV. To increase hysteresis to 50mV, decrease the value of R5 from 470k Ohms to around 240k Ohms. If you're going to be using a Vcc of 10v, then leave it at 470k.

C1 blocks the DC level of your 100v p-p signal (A), shown on the simulated O-scope on the bottom as the cyan trace.
R1/R2 are a voltage divider that centers your signal at Vcc/2; in this case 2.5v.

R3/R4 centers the voltage reference at Vcc/2. In actual practice, R3/R4 should be about 4.3k Ohms, and there should be a 1k pot between them to allow for adjustment; real-world resistors are not exactly their specified value.

R5 provides negative feedback to the reference input for hysteresis. This also keeps the circuit from oscillating on it's own.

R6 is a pull-up resistor; this is necessary because the LM339 has open-collector outputs. It can sink current, but it cannot source current. R6 provides a current source.
Attached Images
File Type: png 339 50mV Hysteresis.PNG (60.5 KB, 14 views)
Reply With Quote
  #4  
Old 11-07-2009, 10:46 PM
axeman22 axeman22 is offline
Junior Member
 
Join Date: Jun 2009
Location: Melbourne, Australia - GMT+10
Posts: 28
Default

my god.. that little program just makes it look too easy! Circuit Maker.. I just had a look and it's no longer supported.. ?

I had been using SuperSpice.. seems very powerful but I find to tooo complex for simple stuff like this.

what would the advice be for a person like me who is just playing around with circuits for the fun of it and the learning - as far as a electronics sim program like this goes? I had done little research but ti seemed to me there was no clear leader in the field. if possible I'd like also to be able to have a Picaxe micro in there - do any of these circuit sims handle having a microprocessor in there well?
Reply With Quote
  #5  
Old 11-07-2009, 11:15 PM
SgtWookie's Avatar
SgtWookie SgtWookie is online now
Senior Member
 
Join Date: Jul 2007
Location: Orlando, FL USA
Posts: 8,378
Default

Quote:
Originally Posted by axeman22 View Post
my god.. that little program just makes it look too easy! Circuit Maker.. I just had a look and it's no longer supported.. ?
Correct. I just use it for "quick and dirty" schematics/simulations for this site; the interface is pretty intuitive, and I can throw together a simulation more quickly using it than other simulators. The library has most components that a typical hobbyist would use. But it's at least 12 years old, and can't be updated; you can't add to the library, use macros, or use more than 50 components in a schematic.

Quote:
I had been using SuperSpice.. seems very powerful but I find to tooo complex for simple stuff like this.
Hadn't heard of it. There are quite a number of simulators available, costing anywhere from nothing (freeware) to tens of thousands of dollars per installation.

Quote:
what would the advice be for a person like me who is just playing around with circuits for the fun of it and the learning - as far as a electronics sim program like this goes? I had done little research but ti seemed to me there was no clear leader in the field. if possible I'd like also to be able to have a Picaxe micro in there - do any of these circuit sims handle having a microprocessor in there well?
Some do.
Circuit maker was superseded by Altium Designer. Circuit Maker Student is/was a freeware download. Altium Designer cost around $10,000 per installation a few years ago.

Microchip's MPLAB IDE has a built-in emulator for various PIC uC's. You could test out a program in it to see how it'll work. You could use another PSPICE program to test out the linear portions of the circuit.

Linear Techology's LTSpice is a very good (and free) PSPICE and schematic capture program. The interface is just a little bit quirky, and the library contains mainly just Linear Technology's components. However, you can add as many components to the library as you wish.
Reply With Quote
  #6  
Old 11-07-2009, 11:18 PM
SgtWookie's Avatar
SgtWookie SgtWookie is online now
Senior Member
 
Join Date: Jul 2007
Location: Orlando, FL USA
Posts: 8,378
Default

Oh, one more thing - I used an LM339 quad comparator because you can find them at your local Radio Shack. There are 3 other comparators in that IC; if you aren't going to use them, you should ground their inputs, otherwise you may have stability problems.
Reply With Quote
  #7  
Old 11-07-2009, 11:28 PM
axeman22 axeman22 is offline
Junior Member
 
Join Date: Jun 2009
Location: Melbourne, Australia - GMT+10
Posts: 28
Default

well I found a download of Circuit Maker... but it won;t install under W7! .. I've just spent 20 minutes trying to find out hwo to get it working.. but it seems no go :-(

having a play with a program called MicroCap at the moment.. hmm... wish I just could just pay $29.95 once of and get a 'real good' program that solves all my needs.. this is a new area to me(sims), there seems so many options.. I just want to build circuits and get going.

if I may ask..SgtWookie how would you take the circuit you made and make it trigger on 100mVp-p fluctuating about zero V and make the output around 5Vp-p fluctuating about zero V also..? (being a bit lazy here but you're so damn quick!)
Reply With Quote
  #8  
Old 11-07-2009, 11:43 PM
SgtWookie's Avatar
SgtWookie SgtWookie is online now
Senior Member
 
Join Date: Jul 2007
Location: Orlando, FL USA
Posts: 8,378
Default

Quote:
Originally Posted by axeman22 View Post
well I found a download of Circuit Maker... but it won;t install under W7! .. I've just spent 20 minutes trying to find out hwo to get it working.. but it seems no go :-(
I am NO fan of Vista/W7! I like W XP Pro just fine, thxvrymch.

Quote:
having a play with a program called MicroCap at the moment.. hmm... wish I just could just pay $29.95 once of and get a 'real good' program that solves all my needs..
Don't say that too loudly - the Chinese may just do that!
Quote:
this is a new area to me(sims), there seems so many options.. I just want to build circuits and get going.
There certainly are quite a few options out there.
Have a look at Tina-TI over at Texas Instruments' website. http://www.ti.com It's a free download. It's a somewhat stripped-down version of Tina.

Quote:
if I may ask..SgtWookie how would you take the circuit you made and make it trigger on 100mVp-p fluctuating about zero V and make the output around 5Vp-p fluctuating about zero V also..? (being a bit lazy here but you're so damn quick!)
Almost like I sorta knew how to fake it pretty well?

OK, do you have a -5v rail source?
Reply With Quote
  #9  
Old 11-07-2009, 11:46 PM
axeman22 axeman22 is offline
Junior Member
 
Join Date: Jun 2009
Location: Melbourne, Australia - GMT+10
Posts: 28
Default

No.. I think for the moment in testing I'll just use batteries.. so it will be +4.5 and -4.5V rails actually. I need to drive RS-232 ok and the RS-232 spec says that between 3-15 volts is ok so 4.5 should be fine I'm thinking, and easy enough to get a hold of .. going to download and try that program now.
Reply With Quote
  #10  
Old 11-08-2009, 12:23 AM
SgtWookie's Avatar
SgtWookie SgtWookie is online now
Senior Member
 
Join Date: Jul 2007
Location: Orlando, FL USA
Posts: 8,378
Default

OK, I put in a -4.5v Vee, some Zener diodes in the output to limit the output voltage swing to around +/-2.5v, and the cap/resistors on the input were no longer necessary. The Zeners really aren't necessary, as RS232 could swing to +/-12v.

Note that the output polarity is opposite from the input.
Attached Images
File Type: png 339 50mV Hysteresis2.PNG (59.1 KB, 9 views)
Reply With Quote
Reply   Post New Thread

Bookmarks

Tags
,

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
IR camera trigger design AdamM The Projects Forum 4 09-28-2009 06:47 AM
trigger circuit for comparator devalvyas General Electronics Chat 2 08-11-2009 06:47 AM
schmit trigger delidou General Electronics Chat 2 07-08-2008 01:06 AM
Submission in progress, 555 Schmitt Trigger Bill_Marsden Feedback and Suggestions 30 06-05-2008 01:28 PM
555 timer trigger question skinner927 General Electronics Chat 31 01-31-2008 05:15 PM


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


User-posted content, unless source quoted, is licensed under a Creative Commons Public Domain License.
Copyright © 2009, All About Circuits. All Rights Reserved.