Welcome
Username or Email:

Password:


Missing Code




[ ]
[ ]
Online
  • Guests: 60
  • Members: 0
  • Newest Member: omjtest
  • Most ever online: 396
    Guests: 396, Members: 0 on 12 Jan : 12:51
Members Birthdays:
All today's birthdays', congrats!
Download (31)
ScottH (37)


Next birthdays
11/03 Electroguy (94)
11/04 nitromarsjipan (2024)
11/04 mb (31)
Contact
If you need assistance, please send an email to forum at 4hv dot org. To ensure your email is not marked as spam, please include the phrase "4hv help" in the subject line. You can also find assistance via IRC, at irc.shadowworld.net, room #hvcomm.
Support 4hv.org!
Donate:
4hv.org is hosted on a dedicated server. Unfortunately, this server costs and we rely on the help of site members to keep 4hv.org running. Please consider donating. We will place your name on the thanks list and you'll be helping to keep 4hv.org alive and free for everyone. Members whose names appear in red bold have donated recently. Green bold denotes those who have recently donated to keep the server carbon neutral.


Special Thanks To:
  • Aaron Holmes
  • Aaron Wheeler
  • Adam Horden
  • Alan Scrimgeour
  • Andre
  • Andrew Haynes
  • Anonymous000
  • asabase
  • Austin Weil
  • barney
  • Barry
  • Bert Hickman
  • Bill Kukowski
  • Blitzorn
  • Brandon Paradelas
  • Bruce Bowling
  • BubeeMike
  • Byong Park
  • Cesiumsponge
  • Chris F.
  • Chris Hooper
  • Corey Worthington
  • Derek Woodroffe
  • Dalus
  • Dan Strother
  • Daniel Davis
  • Daniel Uhrenholt
  • datasheetarchive
  • Dave Billington
  • Dave Marshall
  • David F.
  • Dennis Rogers
  • drelectrix
  • Dr. John Gudenas
  • Dr. Spark
  • E.TexasTesla
  • eastvoltresearch
  • Eirik Taylor
  • Erik Dyakov
  • Erlend^SE
  • Finn Hammer
  • Firebug24k
  • GalliumMan
  • Gary Peterson
  • George Slade
  • GhostNull
  • Gordon Mcknight
  • Graham Armitage
  • Grant
  • GreySoul
  • Henry H
  • IamSmooth
  • In memory of Leo Powning
  • Jacob Cash
  • James Howells
  • James Pawson
  • Jeff Greenfield
  • Jeff Thomas
  • Jesse Frost
  • Jim Mitchell
  • jlr134
  • Joe Mastroianni
  • John Forcina
  • John Oberg
  • John Willcutt
  • Jon Newcomb
  • klugesmith
  • Leslie Wright
  • Lutz Hoffman
  • Mads Barnkob
  • Martin King
  • Mats Karlsson
  • Matt Gibson
  • Matthew Guidry
  • mbd
  • Michael D'Angelo
  • Mikkel
  • mileswaldron
  • mister_rf
  • Neil Foster
  • Nick de Smith
  • Nick Soroka
  • nicklenorp
  • Nik
  • Norman Stanley
  • Patrick Coleman
  • Paul Brodie
  • Paul Jordan
  • Paul Montgomery
  • Ped
  • Peter Krogen
  • Peter Terren
  • PhilGood
  • Richard Feldman
  • Robert Bush
  • Royce Bailey
  • Scott Fusare
  • Scott Newman
  • smiffy
  • Stella
  • Steven Busic
  • Steve Conner
  • Steve Jones
  • Steve Ward
  • Sulaiman
  • Thomas Coyle
  • Thomas A. Wallace
  • Thomas W
  • Timo
  • Torch
  • Ulf Jonsson
  • vasil
  • Vaxian
  • vladi mazzilli
  • wastehl
  • Weston
  • William Kim
  • William N.
  • William Stehl
  • Wesley Venis
The aforementioned have contributed financially to the continuing triumph of 4hv.org. They are deserving of my most heartfelt thanks.
Forums
4hv.org :: Forums :: General Science and Electronics
« Previous topic | Next topic »   

Help with comparator

Move Thread LAN_403
IamSmooth
Sat Feb 13 2010, 11:15PM Print
IamSmooth Registered Member #190 Joined: Fri Feb 17 2006, 12:00AM
Location:
Posts: 1567
I have a 311 comparator. I connected Vc to 10v, gnd to gnd. I connected Vee to gnd.

I tried the setup with and without a pull-up resistor of 40k on pin 7, yet I could not get the comparator to work. I tried it with V- connected to ground, and then I tried it with V+ connected to ground. I tried toggling the other input to the 10v or the ground to see what would happen.

My ultimate goal is to take a floating ac signal and feed it into a comparator or a non-inverting opamp with a large gain to convert a sinusoidal wave into a clean square-wave for a PLL.

EDIT:

I seemed to make some progress. Am I suppose to have a resistor going into the V+ or V- input? I got it to work with one, and found I must have fried the other chips. I also noticed that at high frequencies the chip can not reproduce a clean square wave, and instead starts to make a ramp.

Edit:

Well, it seems I had some bad connection within the breadboard. The 311 chips were not blown. I also found that I could get a cleaner square-wave at high frequencies by dropping the value of the pull-up resistor on pin 7 to 1k. I does seem that I need some amount of resistance going to pin 2 (V+) in order to get a good square-wave; otherwise, my 50% duty wave becomes a 95% duty wave. Why is this?
Back to top
Russell Haley
Sun Feb 14 2010, 04:28AM
Russell Haley Registered Member #2478 Joined: Mon Nov 23 2009, 03:24AM
Location: Texas A&M University
Posts: 47
It's possible that the 311 doesn't like it's inputs at Vss. You're coupling the signal in with a capacitor, right?

Try this: Connect the - input to a voltage divider to put it halfway between Vdd and gnd, and connect the + input to a high impedance divider. Couple you signal in with a capacitor at the midpoint of the second divider (same node as + input).
Back to top
IamSmooth
Sun Feb 14 2010, 06:30AM
IamSmooth Registered Member #190 Joined: Fri Feb 17 2006, 12:00AM
Location:
Posts: 1567
Thanks Russell, but the problem turned out to be bad connections on the breadboard. I have gotten the 311 to work fine with the initial setup.
Back to top
MinorityCarrier
Sun Feb 14 2010, 07:53AM
MinorityCarrier Registered Member #2123 Joined: Sat May 16 2009, 03:10AM
Location: Bend, Oregon
Posts: 312
You need a pullup resistor on the output. Fast comparators like the 311 can go into oscillation so have a .1uf decoupling capacitor across the supply as physically close to the IC as possible.

I have worked a lot with the 311. You may wish to use a high-value feedback resistor to put some hysteresis into your circuit. Also, a 100 to 1000pF cap across the inputs can help with response/minimize output oscillation.
Back to top
IamSmooth
Sun Feb 14 2010, 11:20PM
IamSmooth Registered Member #190 Joined: Fri Feb 17 2006, 12:00AM
Location:
Posts: 1567
MinorityCarrier wrote ...

I have worked a lot with the 311. You may wish to use a high-value feedback resistor to put some hysteresis into your circuit. Also, a 100 to 1000pF cap across the inputs can help with response/minimize output oscillation.

You mean put it across V- and V+ ? How does this reduce output oscillations?

What is the quad equivalent for the 311 for a fast comparator? Is it the 339?
Back to top
Steve Conner
Sun Feb 14 2010, 11:23PM
Steve Conner Registered Member #30 Joined: Fri Feb 03 2006, 10:52AM
Location: Glasgow, Scotland
Posts: 6706
The LM339 is a fastish quad comparator that I've used in many SSTC and power electronic projects.
Back to top
Hernan
Mon Feb 15 2010, 01:35AM
Hernan Registered Member #1614 Joined: Wed Jul 30 2008, 03:08PM
Location: Argentina
Posts: 52
Hi Iam, I've used LM393 with an output pull up resistor . the response time is 1.3us and it accepts single or dual supplies

Back to top

Moderator(s): Chris Russell, Noelle, Alex, Tesladownunder, Dave Marshall, Dave Billington, Bjørn, Steve Conner, Wolfram, Kizmo, Mads Barnkob

Go to:

Powered by e107 Forum System
 
Legal Information
This site is powered by e107, which is released under the GNU GPL License. All work on this site, except where otherwise noted, is licensed under a Creative Commons Attribution-ShareAlike 2.5 License. By submitting any information to this site, you agree that anything submitted will be so licensed. Please read our Disclaimer and Policies page for information on your rights and responsibilities regarding this site.