Engee documentation
Notebook

Operational amplifier in differentiation mode

Using this model as an example, you can study the operation of a differentiating operational amplifier, which can, for example, be part of a PID controller.

Model description

The differentiating amplifier model consists of block OperationalAmplifier (without settings) and blocks Resistor and Capacitor.

If the capacitor model does not set the parasitic series resistance (Series resistance), the model will run quite long and slow, so this parameter in the model is 1e-6.

image.png

Let's run the model and plot the graph:

In [ ]:
model_name = "op-amp-circuit-differentiator";
model_name in [m.name for m in engee.get_all_models()] ? engee.open(model_name) : engee.load( "$(@__DIR__)/$(model_name).engee");
res = engee.run( model_name );
In [ ]:
Vin = collect( res["Vin"] );
Vout = collect( res["Vout"] );
In [ ]:
plot( Vin.time, Vin.value )
plot!( Vout.time, Vout.value )
Out[0]:

The output signal of a differentiating amplifier is proportional to the derivative of its input signal, i.e., the rate of change of the input signal, as a first order high-pass filter.

Conclusion

By experimenting with different values of R and C different gain values can be achieved.