EveryCircuit
Contact
Reviews
Home
eekee
modified 6 years ago

BJT Comparator

2
14
183
02:08:00
I was trying to make an op-amp, but it turned out to be no good. Instead, it has a high slew rate (switches fast), and works well with positive feedback, making it a fairly good comparator -- I think! Criticism welcome. :) I didn't test it as much as I wanted to, testing was mind-numbing. Published with positive feedback. Switch the SPDT in the lower middle to see it simply compare voltages. The other two switches just mark the inputs. SPST switch marks the inverting input, NC pushbutton marks the non-inverting input. Despite the fast switching it's not very quick overall, having a high propagation delay. Don't use negative feedback, it'll oscillate because of the slow propagation and fast slew rate. It may have an offset problem. The junk in the bottom right corner is for decoupling AC. It responds much faster than a normal C-R decoupling, making it better for simulation. ~ Comparator Stats ~~~~~~~~~~~~~~~~~~~~~~ offset voltage 35 +-1μV (now dubious) gain: more than 1.8MV/V with 40V supply slew rate: ??? delay: up to 6μs Other good points: * Almost rail to rail output * Single rail operation, balanced supply not needed ~ Construction Notes ~~~~~~~~~~~~~~~~~~~~~~ 2μV source: oh dear... 0V source: positive max. :) offset voltage: +in +35.5 +-0.5μV -in -35 +-1μV >> does this even apply now power is switched? i saw offset going to over 4mV in the op-amp. -- oops: i wired -v wrong from the relay. finding slew rate with 2vpp square wave source. looks perfect at 1ms period, horrible at 10us. it's reasonable at 20us, apart from he propagation delay. it's a long delay, maybe near 5us, and then a sharp switch. that's +in. -in has a much longer positive-going delay, but shorter negative-going. (may have swapped inputs.)
published 6 years ago
jason9
6 years ago
If you swap the inputs, then it sure does oscillate, but it also acts as a pulse width modulator. I turned it into a class-D amp just by swapping the inputs and adding a filter. http://everycircuit.com/circuit/5012557420298240
jason9
6 years ago
By the way, it can be made to not oscillate by using fewer stages, stages with less delay, or lower slew rate. I just made a discrete (not to be confused with discreet) op-amp that was based off of the 741 op-amp and it doesn’t oscillate.
jason9
6 years ago
No response?
eekee
6 years ago
@jason9: responses may be slow while brain is processing data. ;) been to a convention these last 3 days. -- i know fewer stages or a slower output would reduce oscillation, but then it would be a poorer comparator and still not a great op-amp. -- i like your 741-like, i plan to study it.
jason9
6 years ago
High gain is very easy to obtain even with few stages. I’ll post an example now.
jason9
6 years ago
See “Non-Oscillating High-Gain Differential Amplifier with Few Stages”.
eekee
6 years ago
Yup, studying it. -- I think I must have been in a strange mood when I made this, what with all the negative feedback.
eekee
6 years ago
@jason9: Actually, I'm not seeing a circuit with that name. Is it Discrete OP-Amp or Non-Differential OP-Amp?
jason9
6 years ago
Did you spell it correctly? Try looking through my circuits. It should be near the top. I made it just yesterday or so, but that non-differential thing is pretty much ancient as far as I’m concerned. The discrete op-amp should be near the top too. It’s not that.
jason9
6 years ago
Make sure you look in the recent section, not the popular section. It should be second from the top, just under “Magic Oscillator”.
eekee
6 years ago
@jason9: got it now, thanks. i needed to change it to 'recent' as you said
eekee
6 years ago
@jason9: yours certainly makes a better op-amp, but mine makes a better comparator: the output of yours doesn't get close to the power rails. :3
jason9
6 years ago
I made a rail-to-rail version, but the inputs constantly push out ~2uA of current, it has a slight offset between the inputs of about 1mV, and about 1/300 of the gain (15.3mA/mV).
jason9
6 years ago
Hello?

EveryCircuit is an easy to use, highly interactive circuit simulator and schematic capture tool. Real-time circuit simulation, interactivity, and dynamic visualization make it a must have application for professionals and academia. EveryCircuit user community has collaboratively created the largest searchable library of circuit designs. EveryCircuit app runs online in popular browsers and on mobile phones and tablets, enabling you to capture design ideas and learn electronics on the go.

Copyright © 2023 by MuseMaze, Inc.     Terms of use     Privacy policy