Well if you could explain a bit their role , i can use them why not
? i was always having headaches with operational amplifiers and comparators .
Hi again,
Comparators are quite easy to understand. They have two inputs and one output. One input is inverting (minus) and the other is non inverting (plus). We just use (+) and (-) for the two inputs.
The simple operation is that when the (+) terminal goes above the (-) terminal, the output goes high. But if the (+) terminal is lower than the (-) terminal then the output goes low. That's the basic operation.
The op amp has similar terminals, (+) and (-), except for this the output is an amplification of the DIFFERENCE between the (+) terminal and the (-) terminal. The amplification is considered very high, like 100000.
With a raw op amp (no resistors) this means you'd get quite a high output even from very small input differences. Say we have the plus terminal equal to 1.001 volts and the minus terminal equal to 1.000 volts. The difference is:
Diff=1.001-1.000=0.001 volts, and that amplified by 100000 equals 1000 volts. That would be the output if we had an op amp that could actually go that high, but normally we work around 15v or less. What we usually do is add some feedback resistors and this limits the gain to more acceptable levels like 2, 5, 10 or 100 for example.
If this makes sense so far, i'll continue, otherwise if you have questions i'll try to answer them first.