Examples with operational amplifiers
Extends from Modelica.Icons.ExamplesPackage (Icon for packages containing runnable examples).
| Name | Description |
|---|---|
| Inverting amplifier | |
| Non-inverting amplifier | |
| Reproduce input voltage | |
| Differentiating amplifier | |
| Integrating amplifier | |
| Low-pass filter | |
| High-pass filter | |
| Comparator | |
| Inverting Schmitt trigger with hysteresis | |
| Schmitt trigger with hysteresis | |
| Multivibrator with Schmitt trigger | |
| Rectangle-Triangle generator | |
| LC oscillator |
Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmpInverting amplifier
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).
| Name | Description |
|---|---|
| Vps | Positive supply [V] |
| Vns | Negative supply [V] |
| Vin | Amplitude of input voltage [V] |
| f | Frequency of input voltage [Hz] |
| k | Desired amplification |
| R1 | Arbitrary resistance [Ohm] |
| R2 | Calculated resistance to reach desired amplification k [Ohm] |
Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmpNon-inverting amplifier
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).
| Name | Description |
|---|---|
| Vps | Positive supply [V] |
| Vns | Negative supply [V] |
| Vin | Amplitude of input voltage [V] |
| f | Frequency of input voltage [Hz] |
| k | Desired amplification |
| R1 | Arbitrary resistance [Ohm] |
| R2 | Calculated resistance to reach desired amplification k [Ohm] |
Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollowerReproduce input voltage
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).
| Name | Description |
|---|---|
| Vps | Positive supply [V] |
| Vns | Negative supply [V] |
| Vin | Amplitude of input voltage [V] |
| f | Frequency of input voltage [Hz] |
| Ri | Inner resistance of input voltage source [Ohm] |
| Rl | Load resistance [Ohm] |
Modelica.Electrical.Analog.Examples.OpAmps.DifferentiatorDifferentiating amplifier
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).
| Name | Description |
|---|---|
| Vps | Positive supply [V] |
| Vns | Negative supply [V] |
| Vin | Amplitude of input voltage [V] |
| f | Frequency of input voltage [Hz] |
| k | Desired amplification |
| R | Arbitrary resistance [Ohm] |
| C | Calculated capacitance to reach desired amplification k [F] |
Modelica.Electrical.Analog.Examples.OpAmps.IntegratorIntegrating amplifier
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).
| Name | Description |
|---|---|
| Vps | Positive supply [V] |
| Vns | Negative supply [V] |
| Vin | Amplitude of input voltage [V] |
| f | Frequency of input voltage [Hz] |
| k | Desired amplification |
| R | Arbitrary resistance [Ohm] |
| C | Calculated capacitance to reach desired amplification k [F] |
Modelica.Electrical.Analog.Examples.OpAmps.LowPassLow-pass filter
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).
| Name | Description |
|---|---|
| Vps | Positive supply [V] |
| Vns | Negative supply [V] |
| Vin | Amplitude of input voltage [V] |
| f | Frequency of input voltage [Hz] |
| k | Desired amplification |
| R1 | Arbitrary resistance [Ohm] |
| R2 | Calculated resistance to reach k [Ohm] |
| fG | Limiting frequency, as an example coupled to f [Hz] |
| C | Calculated capacitance to reach fG [F] |
Modelica.Electrical.Analog.Examples.OpAmps.HighPassHigh-pass filter
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).
| Name | Description |
|---|---|
| Vps | Positive supply [V] |
| Vns | Negative supply [V] |
| Vin | Amplitude of input voltage [V] |
| f | Frequency of input voltage [Hz] |
| k | Desired amplification |
| R1 | Arbitrary resistance [Ohm] |
| R2 | Calculated resistance to reach k [Ohm] |
| fG | Limiting frequency, as an example coupled to f [Hz] |
| C | Calculated capacitance to reach fG [F] |
Modelica.Electrical.Analog.Examples.OpAmps.ComparatorComparator
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).
| Name | Description |
|---|---|
| Vps | Positive supply [V] |
| Vns | Negative supply [V] |
| Vin | Amplitude of input voltage [V] |
| f | Frequency of input voltage [Hz] |
| Vref | Reference voltage [V] |
| k | Calculated potentiometer ratio to reach Vref |
| R | Resistance of potentiometer [Ohm] |
Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTriggerInverting Schmitt trigger with hysteresis
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).
| Name | Description |
|---|---|
| Vps | Positive supply [V] |
| Vns | Negative supply [V] |
| Vin | Amplitude of input voltage [V] |
| f | Frequency of input voltage [Hz] |
| vHys | (positive) hysteresis voltage [V] |
| k | Auxiliary calculated parameter to be used in R2 calculation |
| R1 | Arbitrary resistance [Ohm] |
| R2 | Calculated resistance to reach hysteresis voltage [Ohm] |
Modelica.Electrical.Analog.Examples.OpAmps.SchmittTriggerSchmitt trigger with hysteresis
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).
| Name | Description |
|---|---|
| Vps | Positive supply [V] |
| Vns | Negative supply [V] |
| Vin | Amplitude of input voltage [V] |
| f | Frequency of input voltage [Hz] |
| vHys | (positive) hysteresis voltage [V] |
| k | Auxiliary calculated parameter to be used in R2 calculation |
| R1 | Arbitrary resistance [Ohm] |
| R2 | Calculated resistance to reach hysteresis voltage [Ohm] |
Modelica.Electrical.Analog.Examples.OpAmps.MultivibratorMultivibrator with Schmitt trigger
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).
| Name | Description |
|---|---|
| Vps | Positive supply [V] |
| Vns | Negative supply [V] |
| f | Desired frequency [Hz] |
| R1 | Resistance 1 for adjusting the Schmitt trigger voltage level [Ohm] |
| R2 | Resistance 2 for adjusting the Schmitt trigger voltage level [Ohm] |
| R | Arbitrary resistance [Ohm] |
| C | Calculated capacitance to reach the desired frequency f [F] |
Modelica.Electrical.Analog.Examples.OpAmps.SignalGeneratorRectangle-Triangle generator
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).
| Name | Description |
|---|---|
| Vps | Positive supply [V] |
| Vns | Negative supply [V] |
| VAmp | Desired amplitude of output [V] |
| R1 | Arbitrary resistance for Schmitt trigger part [Ohm] |
| R2 | Calculated resistance for Schmitt trigger to reach VAmp [Ohm] |
| f | Desired frequency [Hz] |
| R | Arbitrary resistance of integrator part [Ohm] |
| C | Calculated capacitance of integrator part to reach f [F] |
Modelica.Electrical.Analog.Examples.OpAmps.LCOscillatorLC oscillator
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).
| Name | Description |
|---|---|
| VAmp | Amplitude of output [V] |
| f | Desired frequency [Hz] |
| A | Amplification constant: A > 1 amplification, A = 1 pure sinusoidal oscillation, A < 0 damping |
| L | Arbitrary inductance > 0 [H] |
| C | Calculated capacitance to reach frequency f [F] |
| R | Damping resistance [Ohm] |
| R1 | Arbitrary high resistance [Ohm] |
| R2 | Calculated resistance to reach amplification A [Ohm] |
| gamma | Calculated characteristical parameter |