there's no LM393 component, is there? If not, how can I simulate it, or any open collector opamp?
By simulate I mean design the circuit with the pull-up restor connected to the output. Do you see what I mean?
You can add an open collector buffer at the output of an opamp.
arcachofo wrote:1- Yes, a buffer with open drain.
And resistor at the output of the buffer.
2- I don't understand what you mean.
In any case all depends on what you are doing, another solution could be a diode or transistor at the output of the opamp.
Can you share your circuit?I've tried adding the resistor, as you suggested, after the buffer, but it won't work.
arcachofo likes this post
Defran wrote:In order to help a bit in this post, I am including a subcircuit for the LM339 (open collector) and several examples to use. you have to study them a bit and also the subcircuit in the data folder of the zip.
LM339 (4 OPAMS), LM393 (2 OPAMPS).
I hope they are useful to you.
Defran wrote:Well, here you have the same but with the LM393...
blitobyte wrote:Defran wrote:Well, here you have the same but with the LM393...
Hi Defran. Thanks for the 393. I was working on it. I was modifying your 339.
I have a few questios (excuse my ignorance):
- One of your examples, the one I'm sending you is the case I was looking for. You use a 100 ohms resistor, but that's not a pull-up resistor, is it? In your case the LED gets on when the Vin+ > Vin-, but if I put a 4K7 resistor it doesn't, or at least it does but very dimmly.
- In the creation of the component you use a buffer. Why?
- I've tried to register both components in my SimulIDE but when I drag and drop them I get a plain opamp but not the boards: 8 and 4 pins respectively. I get an opamp symbol inside a square.
- I thought the package and the circuit names should be the same.
Defran wrote:1.- The 100 ohms resistor in the output of the LM393 to 5v is a typical pullup, yes. Its function is to polarize the output transistor collector. In the case of your example the vaue of 100 ohms is to work the LED when the output transistor of the LM393 is in OFF. When this is in ON, the voltage in collector will be 0.8v maximum and the LED does not work, because the LEDS need 1.5v typically. Other higher pullup values will make the LED look less.
2.- In my LM393 subcircuit I add a buffer to convert the output of the Standard Primitive Opamp of Simulide in Open Collector (this means that the LM393 can only be used as comparator). See it in the buffer Properties.
3.- The file 0_INVIS.png in the data folder of my LM393 subcircuit is to make invisible its background.
4.- Yes it is needed, but the package file should typically be informative of its Pinout, NEVER for operational use. In the particular case of the multicircuits and obtaining its individualized use over the LS package (Logical Symbol) it is espetially necessary that the package file does not exist or that it has another extension. This is essential to avoid collisions between the two.
Defran wrote:1.- The value of the discrete components must be the one necessary for their function in a scheme.
2.- Simulide is the best tool to practice electronics, but the creation of subcircuits is not the best way to learn how to use it or to practice electronics. You should leave this part for when you know more.
3.- Due a bug in Simulide you cannot put the sign "-" in "Pin Id", replace it with a letter for example "m", and also in its corresponding tunnel.
Hi, there is a current source in the development branch:Hello,
Bouncing on this opamp/comp topic : I was trying to replicate the LM339 comparator block diagram with Simulide ; however I am "stumbling" on the different constant current sources and was wondering how it could be elegantly done with simulide ?
Permissions in this forum:
You cannot reply to topics in this forum