Modelica.Electrical.Analog.Examples.OpAmps

Examples with operational amplifiers

Information

Extends from Modelica.Icons.ExamplesPackage (Icon for packages containing runnable examples).

Package Content

Name Description
Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp InvertingAmp Inverting amplifier
Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmp NonInvertingAmp Non-inverting amplifier
Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower VoltageFollower Reproduce input voltage
Modelica.Electrical.Analog.Examples.OpAmps.Differentiator Differentiator Differentiating amplifier
Modelica.Electrical.Analog.Examples.OpAmps.Integrator Integrator Integrating amplifier
Modelica.Electrical.Analog.Examples.OpAmps.LowPass LowPass Low-pass filter
Modelica.Electrical.Analog.Examples.OpAmps.HighPass HighPass High-pass filter
Modelica.Electrical.Analog.Examples.OpAmps.Comparator Comparator Comparator
Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger InvertingSchmittTrigger Inverting Schmitt trigger with hysteresis
Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger SchmittTrigger Schmitt trigger with hysteresis
Modelica.Electrical.Analog.Examples.OpAmps.Multivibrator Multivibrator Multivibrator with Schmitt trigger
Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator SignalGenerator Rectangle-Triangle generator
Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator LCOscillator LC oscillator

Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp

Inverting amplifier

Information

This is an inverting amplifier. Resistance R1 can be chosen, R2 is defined by the desired amplification k.

Extends from Modelica.Icons.Example (Icon for runnable examples).

Parameters

NameDescription
VpsPositive supply [V]
VnsNegative supply [V]
VinAmplitude of input voltage [V]
fFrequency of input voltage [Hz]
kDesired amplification
R1Arbitrary resistance [Ohm]
R2Calculated resistance to reach desired amplification k [Ohm]

Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmp Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmp

Non-inverting amplifier

Information

This is a non inverting amplifier. Resistance R1 can be chosen, R2 is defined by the desired amplification k.

Extends from Modelica.Icons.Example (Icon for runnable examples).

Parameters

NameDescription
VpsPositive supply [V]
VnsNegative supply [V]
VinAmplitude of input voltage [V]
fFrequency of input voltage [Hz]
kDesired amplification
R1Arbitrary resistance [Ohm]
R2Calculated resistance to reach desired amplification k [Ohm]

Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower

Reproduce input voltage

Information

This is a voltage follower. It reproduces the input voltage at the output without loading the input voltage source with a stiff output.

Extends from Modelica.Icons.Example (Icon for runnable examples).

Parameters

NameDescription
VpsPositive supply [V]
VnsNegative supply [V]
VinAmplitude of input voltage [V]
fFrequency of input voltage [Hz]
RiInner resistance of input voltage source [Ohm]
RlLoad resistance [Ohm]

Modelica.Electrical.Analog.Examples.OpAmps.Differentiator Modelica.Electrical.Analog.Examples.OpAmps.Differentiator

Differentiating amplifier

Information

This is a (inverting) differentiating amplifier. Resistance R can be chosen, capacitance C is defined by the desired time constant resp. frequency.

Extends from Modelica.Icons.Example (Icon for runnable examples).

Parameters

NameDescription
VpsPositive supply [V]
VnsNegative supply [V]
VinAmplitude of input voltage [V]
fFrequency of input voltage [Hz]
kDesired amplification
RArbitrary resistance [Ohm]
CCalculated capacitance to reach desired amplification k [F]

Modelica.Electrical.Analog.Examples.OpAmps.Integrator Modelica.Electrical.Analog.Examples.OpAmps.Integrator

Integrating amplifier

Information

This is an (inverting) integrating amplifier. Resistance R can be chosen, capacitance C is defined by the desired time constant resp. frequency.

Extends from Modelica.Icons.Example (Icon for runnable examples).

Parameters

NameDescription
VpsPositive supply [V]
VnsNegative supply [V]
VinAmplitude of input voltage [V]
fFrequency of input voltage [Hz]
kDesired amplification
RArbitrary resistance [Ohm]
CCalculated capacitance to reach desired amplification k [F]

Modelica.Electrical.Analog.Examples.OpAmps.LowPass Modelica.Electrical.Analog.Examples.OpAmps.LowPass

Low-pass filter

Information

This is a (inverting) low pass filter. Resistance R1 can be chosen, resistance R2 is defined by the desired amplification k, capacitance C is defined by the desired cut-off frequency.

The example is taken from: U. Tietze and C. Schenk, Halbleiter-Schaltungstechnik (German), 11th edition, Springer 1999, Chapter 13.3

Extends from Modelica.Icons.Example (Icon for runnable examples).

Parameters

NameDescription
VpsPositive supply [V]
VnsNegative supply [V]
VinAmplitude of input voltage [V]
fFrequency of input voltage [Hz]
kDesired amplification
R1Arbitrary resistance [Ohm]
R2Calculated resistance to reach k [Ohm]
fGLimiting frequency, as an example coupled to f [Hz]
CCalculated capacitance to reach fG [F]

Modelica.Electrical.Analog.Examples.OpAmps.HighPass Modelica.Electrical.Analog.Examples.OpAmps.HighPass

High-pass filter

Information

This is a (inverting) high pass filter. Resistance R1 can be chosen, resistance R2 is defined by the desired amplification k, capacitance C is defined by the desired cut-off frequency.

The example is taken from: U. Tietze and C. Schenk, Halbleiter-Schaltungstechnik (German), 11th edition, Springer 1999, Chapter 13.3

Extends from Modelica.Icons.Example (Icon for runnable examples).

Parameters

NameDescription
VpsPositive supply [V]
VnsNegative supply [V]
VinAmplitude of input voltage [V]
fFrequency of input voltage [Hz]
kDesired amplification
R1Arbitrary resistance [Ohm]
R2Calculated resistance to reach k [Ohm]
fGLimiting frequency, as an example coupled to f [Hz]
CCalculated capacitance to reach fG [F]

Modelica.Electrical.Analog.Examples.OpAmps.Comparator Modelica.Electrical.Analog.Examples.OpAmps.Comparator

Comparator

Information

This is a comparator. Resistance R1 can be chosen, resistance R2 is defined by the desired reference voltage Vref (between Vn and Vp). The output switches between Vn for input voltage < Vref and Vp for input voltage > Vref.

Extends from Modelica.Icons.Example (Icon for runnable examples).

Parameters

NameDescription
VpsPositive supply [V]
VnsNegative supply [V]
VinAmplitude of input voltage [V]
fFrequency of input voltage [Hz]
VrefReference voltage [V]
kCalculated potentiometer ratio to reach Vref
RResistance of potentiometer [Ohm]

Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger

Inverting Schmitt trigger with hysteresis

Information

This is a (inverting) Schmitt trigger. Resistance R1 can be chosen, resistance R2 is defined by the desired hysteresis. The output gets Vn for input voltage > 0 + vHys and Vp for input voltage < vHys*Vns/Vps.

The example is taken from: U. Tietze and C. Schenk, Halbleiter-Schaltungstechnik (German), 11th edition, Springer 1999, Chapter 6.5.2

Extends from Modelica.Icons.Example (Icon for runnable examples).

Parameters

NameDescription
VpsPositive supply [V]
VnsNegative supply [V]
VinAmplitude of input voltage [V]
fFrequency of input voltage [Hz]
vHys(positive) hysteresis voltage [V]
kAuxiliary calculated parameter to be used in R2 calculation
R1Arbitrary resistance [Ohm]
R2Calculated resistance to reach hysteresis voltage [Ohm]

Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger

Schmitt trigger with hysteresis

Information

This is a (non-inverting) Schmitt trigger. Resistance R1 can be chosen, resistance R2 is defined by the desired hysteresis. The output gets Vp for input voltage > vHys and Vn for input voltage < vHys*Vns/Vps.

The example is taken from: U. Tietze and C. Schenk, Halbleiter-Schaltungstechnik (German), 11th edition, Springer 1999, Chapter 6.5.2

Extends from Modelica.Icons.Example (Icon for runnable examples).

Parameters

NameDescription
VpsPositive supply [V]
VnsNegative supply [V]
VinAmplitude of input voltage [V]
fFrequency of input voltage [Hz]
vHys(positive) hysteresis voltage [V]
kAuxiliary calculated parameter to be used in R2 calculation
R1Arbitrary resistance [Ohm]
R2Calculated resistance to reach hysteresis voltage [Ohm]

Modelica.Electrical.Analog.Examples.OpAmps.Multivibrator Modelica.Electrical.Analog.Examples.OpAmps.Multivibrator

Multivibrator with Schmitt trigger

Information

This is a Multivibrator with Schmitt trigger according to:

U. Tietze and C. Schenk, Halbleiter-Schaltungstechnik (German), 11th edition, Springer 1999, Chapter 6.5.3

Extends from Modelica.Icons.Example (Icon for runnable examples).

Parameters

NameDescription
VpsPositive supply [V]
VnsNegative supply [V]
fDesired frequency [Hz]
R1Resistance 1 for adjusting the Schmitt trigger voltage level [Ohm]
R2Resistance 2 for adjusting the Schmitt trigger voltage level [Ohm]
RArbitrary resistance [Ohm]
CCalculated capacitance to reach the desired frequency f [F]

Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator

Rectangle-Triangle generator

Information

This signal generator consists of a Schmitt trigger and an integrator. The output of the Schmitt trigger part opamp (opAmp1) is a rectangular signal with the amplitude VAmp and the frequency f. The output of the integrator part opamp (opAmp2) is a triangular signal of also the amplitude Vamp and the frequency f.

Source:

U. Tietze and C. Schenk, Halbleiter-Schaltungstechnik (German), 11th edition, Springer 1999, Chapter 14.5.2

Extends from Modelica.Icons.Example (Icon for runnable examples).

Parameters

NameDescription
VpsPositive supply [V]
VnsNegative supply [V]
VAmpDesired amplitude of output [V]
R1Arbitrary resistance for Schmitt trigger part [Ohm]
R2Calculated resistance for Schmitt trigger to reach VAmp [Ohm]
fDesired frequency [Hz]
RArbitrary resistance of integrator part [Ohm]
CCalculated capacitance of integrator part to reach f [F]

Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator

LC oscillator

Information

This is an LC oscillator according to:

U. Tietze and C. Schenk, Halbleiter-Schaltungstechnik (German), 11th edition, Springer 1999, Chapter 14.1

Extends from Modelica.Icons.Example (Icon for runnable examples).

Parameters

NameDescription
VAmpAmplitude of output [V]
fDesired frequency [Hz]
AAmplification constant: A > 1 amplification, A = 1 pure sinusoidal oscillation, A < 0 damping
LArbitrary inductance > 0 [H]
CCalculated capacitance to reach frequency f [F]
RDamping resistance [Ohm]
R1Arbitrary high resistance [Ohm]
R2Calculated resistance to reach amplification A [Ohm]
gammaCalculated characteristical parameter
Automatically generated Thu Dec 19 17:19:53 2019.