()blivion
Active Member
Looking good ()blivion.
Thanks, I practice... like..... a lot. LOL
Did I put the capacitors in the right spot, see attachment, option 1 or 2 (maybe it doesn't matter)? Also, what about the logic circuit Op-Amps, should I put capacitors there too (I know U1 is actually a comparitor).
Nice try, but sadly you have it wired wrong.
One pin of the capacitor goes on the positive rail of the OP amp, and the other goes on the GND rail. You have it inserted in between the positive power and the positive pin for the Op-Amp, this won't work as a capacitor looks like a cut in the circuit to DC power, in series it won't let the chip get power. You want it to be in parallel with the Op-Amp IC's power, right up next to the chip.
Also, the LM358 Op-Amps are *DUAL* Op-Amp chips. This means that there are TWO(2) Op-Amp circuits (triangle things in the schematic) per 8 pin package. You only need to put one(1) capacitor per Op-Amp *PACKAGE*, for a total of five(5) packages and five(5) capacitors, but ten(10) Op-Amps. They do this to save space, and it helps quite a lot, at the cost of confusing the crap out of people some times. And to top it off.... they make packages with four(4) circuits in them too.
Look at page 9 of this datasheet and notice that there are two triangle things in the picture.
https://www.electro-tech-online.com/custompdfs/2012/08/lm158-n-1.pdf
Or just look at this picture of a different Op-Amp with about the same internal configuration...
View attachment 66661
Bottom Line
All IC's should have a capacitor on their power pins/rail, it removes power supply noise and prevents hiccups from making the chip act funny. As you guessed, you should use the extras to do this to all of the chips. So total, you should have seven(7) IC's to put capacitors on. The one(1) LM339, and six(6) LM358's. And they should all go as close as possible to the power pins of the chips. You may ignore the temperature sensor I believe. It may not actually act like it should if you add one to it, but I don't know the part very well.... So.... :shrug:
Why do we do this?
Capacitors act like little rechargeable batteries. We put them on the power wires of the IC's because they will power things for a brief moment if the power sags. And they absorb power spikes some what also. In this configuration they are called "decoupling capacitors" because they "decouple" the IC from the power supply and it's noise. Often times they are not needed and you will see no ill effects without them. But when do screw up you may never be able to figure out what or why problems are happening. Better to have them than to not.
Last edited: