EveryCircuit
Contact
Reviews
Home
2ctiby
modified 7 years ago

Error Detection and Notification ... an article for interest

8
8
441
03:53:40
Imagine that you are driving a car and a temperature fault develops. Two main different detection methods come to mind (there are others, but not for now). 1: Have a detector which notifies you the instant anything different occurs (instant Volt change indicating that the sensor is too hot/cold). 2: Have a detector which notifies you only if there seems to be a gradual alteration from the usual expected Voltage. Both of the above two detectors have their advantages and disadvantages: In the first case, you are notified before further damage occurs, but it could be annoying if minor/one-off small volt changes keep bleeping at you or shutting the car down. In the second case, you are only notified if a fault (volt change) is on-going for a period of time, not at every instant. The trouble with this method is that damage may occur before it notifies you. An instant detection as in 1 here can be done by the mathematical process of calculus differentiation ... and that can be performed by an opamp which is set up as a Differentiator. A cumulative detection as in 2 here can be done by the mathematical process of calculus integration ... and that can be performed by an opamp which is set up as an Integrator. In the schematic above: The normal red wave (sine, before the fault introduction) at the far left supply is as expected. The orange wave from the differentiator opamp at top left is showing instant fault changes (introduced here by pulses at the left) and so flashing an LED. The green wave from the integrator opamp at top right is showing cumulative time (being different from the normal red expected), and so flashes its LED warning ... but not like the instant response of the differentiator. You can jab the button at the bottom left and introduce your own extra pulse faults if you wish.... Or hold that button closed, and watch the scope. This article introduces the basis of PID control, where the I is the Integrator D is the Differentiator (Please ignore the Mosfet settings etc for this article description... it is not for a board setup). You don't need to know calculus to set up the opamps described, but those who like that maths aspect may wish to read here: Integrator http://everycircuit.com/circuit/5780143762309120 This article is just a very basic introduction to the concept of PID (without the P ... proportional control). Not an authority ! The opamp error LED notifications can be adjusted as desired (resistor/cap) and forwarded to amplifier or permanent state / peak detector etc as reqd. Key points: Using a differentiator will give you an "Instant" rate of change of volts readout... see orange trace. Using an Integrator will give you a sum of all instants throughout your chosen period...see green trace. ...They are the reverse of each other. Here is the same setup (squashed in to fit in EC) but with peak output detection and selection. http://everycircuit.com/circuit/5351429400428544
published 7 years ago
lenzrulz
7 years ago
Well done...👍
sshsslfun
7 years ago
Done well...👎
2ctiby
7 years ago
Thanks guys. I wonder which one of you was an instant (differentiator) response and which one was a thoughts-gathered-together (integrator) response... lol . See also bottom link now added for peak output choice selection.
maxmax_66
7 years ago
Great article. Thanks for your interesting contributions.
2ctiby
7 years ago
Thanks @maxmax_66 ... much appreciated.
lenzrulz
7 years ago
Very descriptive, we’ll done...👍
kiani
6 years ago
[BLOCKED]
kiani
6 years ago
[BLOCKED]

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 © 2026 by MuseMaze, Inc.     Terms of use     Privacy policy