Different circuits with operational amplifiers
This package provides some fully connected operational amplifier circuits.
Extends from Modelica.Icons.VariantsPackage (Icon for package containing variants).
Name | Description |
---|---|
PartialOpAmp | Partial circuit of operational amplifiers |
Buffer | Non inverting operational amplifier circuit |
Gain | Inverting operational amplifier circuit |
Add | Adding operational amplifier circuit |
Feedback | Subtracting operational amplifier circuit |
Der | Differentiating operational amplifier circuit |
Integrator | Integrating operational amplifier circuit |
FirstOrder | Lowpass filter operational amplifier circuit |
Derivative | Lowpass filter operational amplifier circuit |
PI | PI controller operational amplifier circuit |
DifferentialAmplifierData | Data record for differential amplifier |
Partial circuit of operational amplifiers
Partial model for operational amplifier circuits, based on the IdealizedOpAmpLimited model. Different functionality is achieved by different circuits.
Extends from Modelica.Electrical.Analog.Interfaces.FourPin (Component with two pairs of each two electrical pins).
Name | Description |
---|---|
Vps | Positive supply [V] |
Vns | Negative supply [V] |
V0 | No-load amplification |
Name | Description |
---|---|
p1 | Positive electrical pin of port 1 |
n1 | Negative electrical pin of port 1 |
p2 | Positive electrical pin of port 2 |
n2 | Negative electrical pin of port 2 |
Non inverting operational amplifier circuit
Non-inverting amplifier = buffer, based on the IdealizedOpAmpLimited model.
vOut = k*vIn
Extends from PartialOpAmp (Partial circuit of operational amplifiers).
Name | Description |
---|---|
Vps | Positive supply [V] |
Vns | Negative supply [V] |
V0 | No-load amplification |
k | Desired amplification |
R1 | Resistance at negative pin(s) [Ohm] |
R2 | Calculated resistance to reach desired amplification k [Ohm] |
Name | Description |
---|---|
p1 | Positive electrical pin of port 1 |
n1 | Negative electrical pin of port 1 |
p2 | Positive electrical pin of port 2 |
n2 | Negative electrical pin of port 2 |
Inverting operational amplifier circuit
Inverting amplifier = gain, based on the IdealizedOpAmpLimited model.
vOut = -k*vIn
Extends from PartialOpAmp (Partial circuit of operational amplifiers).
Name | Description |
---|---|
Vps | Positive supply [V] |
Vns | Negative supply [V] |
V0 | No-load amplification |
k | Desired amplification |
R1 | Resistance at negative input of OpAmp [Ohm] |
R2 | Calculated resistance to reach desired amplification k [Ohm] |
Name | Description |
---|---|
p1 | Positive electrical pin of port 1 |
n1 | Negative electrical pin of port 1 |
p2 | Positive electrical pin of port 2 |
n2 | Negative electrical pin of port 2 |
Adding operational amplifier circuit
Inverting adder, based on the IdealizedOpAmpLimited model.
-vOut = k1*vIn1 + k2*vIn2
Extends from PartialOpAmp (Partial circuit of operational amplifiers).
Name | Description |
---|---|
Vps | Positive supply [V] |
Vns | Negative supply [V] |
V0 | No-load amplification |
k1 | Weight of input 1 |
k2 | Weight of input 2 |
R | Resistance at output of OpAmp [Ohm] |
R1 | Calculated resistance to reach desired weight 1 [Ohm] |
R2 | Calculated resistance to reach desired weight 2 [Ohm] |
Name | Description |
---|---|
p1 | Positive electrical pin of port 1 |
n1 | Negative electrical pin of port 1 |
p2 | Positive electrical pin of port 2 |
n2 | Negative electrical pin of port 2 |
p1_2 | Positive electrical pin 1.2 |
Subtracting operational amplifier circuit
Inverting subtracter = feedback, based on the IdealizedOpAmpLimited model.
vOut = -k*(vIn1 - vIn2)
Extends from PartialOpAmp (Partial circuit of operational amplifiers).
Name | Description |
---|---|
Vps | Positive supply [V] |
Vns | Negative supply [V] |
V0 | No-load amplification |
k | Desired amplification |
R1 | Resistance at inputs of OpAmp [Ohm] |
R3 | Calculated resistance to reach desired amplification k [Ohm] |
Name | Description |
---|---|
p1 | Positive electrical pin of port 1 |
n1 | Negative electrical pin of port 1 |
p2 | Positive electrical pin of port 2 |
n2 | Negative electrical pin of port 2 |
p1_2 | Positive electrical pin 1.2 |
Differentiating operational amplifier circuit
Inverting differentiator = der, based on the IdealizedOpAmpLimited model.
vOut = -k*der(vIn)
Extends from PartialOpAmp (Partial circuit of operational amplifiers).
Name | Description |
---|---|
Vps | Positive supply [V] |
Vns | Negative supply [V] |
V0 | No-load amplification |
k | Desired amplification at frequency f |
f | Frequency [Hz] |
R | Resistance at output of OpAmp [Ohm] |
C | Calculated capacitance to reach desired amplification k [F] |
Name | Description |
---|---|
p1 | Positive electrical pin of port 1 |
n1 | Negative electrical pin of port 1 |
p2 | Positive electrical pin of port 2 |
n2 | Negative electrical pin of port 2 |
Integrating operational amplifier circuit
Inverting integrator, based on the IdealizedOpAmpLimited model.
k*vin = -der(dvOut)
Extends from PartialOpAmp (Partial circuit of operational amplifiers).
Name | Description |
---|---|
Vps | Positive supply [V] |
Vns | Negative supply [V] |
V0 | No-load amplification |
k | Desired amplification at frequency f |
f | Frequency [Hz] |
R | Resistance at negative input of OpAmp [Ohm] |
C | Calculated capacitance to reach desired amplification k [F] |
Name | Description |
---|---|
p1 | Positive electrical pin of port 1 |
n1 | Negative electrical pin of port 1 |
p2 | Positive electrical pin of port 2 |
n2 | Negative electrical pin of port 2 |
Lowpass filter operational amplifier circuit
Inverting lowpass filter = first order, based on the IdealizedOpAmpLimited model.
Transfer function: vOut/vIn = -k/(1 + s*T)
Extends from PartialOpAmp (Partial circuit of operational amplifiers).
Name | Description |
---|---|
Vps | Positive supply [V] |
Vns | Negative supply [V] |
V0 | No-load amplification |
k | Desired amplification |
R1 | Resistance at negative input of OpAmp [Ohm] |
R2 | Calculated resistance to reach k [Ohm] |
T | Time constant [s] |
C | Calculated capacitance to reach T [F] |
Name | Description |
---|---|
p1 | Positive electrical pin of port 1 |
n1 | Negative electrical pin of port 1 |
p2 | Positive electrical pin of port 2 |
n2 | Negative electrical pin of port 2 |
Lowpass filter operational amplifier circuit
Inverting highpass filter = derivative, based on the IdealizedOpAmpLimited model.
Transfer function: vOut/vIn = -k*s/(1 + s*T)
Extends from PartialOpAmp (Partial circuit of operational amplifiers).
Name | Description |
---|---|
Vps | Positive supply [V] |
Vns | Negative supply [V] |
V0 | No-load amplification |
k | Desired amplification |
R1 | Resistance at negative input of OpAmp [Ohm] |
R2 | Calculated resistance to reach k [Ohm] |
T | Time constant [s] |
C | Calculated capacitance to reach T [F] |
Name | Description |
---|---|
p1 | Positive electrical pin of port 1 |
n1 | Negative electrical pin of port 1 |
p2 | Positive electrical pin of port 2 |
n2 | Negative electrical pin of port 2 |
PI controller operational amplifier circuit
Inverting proportional-integral controller = PI, based on the IdealizedOpAmpLimited model.
Transfer function: vOut/vIn = -k*s/(1 + s*T)
Extends from PartialOpAmp (Partial circuit of operational amplifiers).
Name | Description |
---|---|
Vps | Positive supply [V] |
Vns | Negative supply [V] |
V0 | No-load amplification |
k | Desired amplification |
R1 | Resistance at negative input of OpAmp [Ohm] |
R2 | Calculated resistance to reach k [Ohm] |
T | Time constant [s] |
C | Calculated capacitance to reach T [F] |
Name | Description |
---|---|
p1 | Positive electrical pin of port 1 |
n1 | Negative electrical pin of port 1 |
p2 | Positive electrical pin of port 2 |
n2 | Negative electrical pin of port 2 |
Data record for differential amplifier
Summarizes parameters for:
Extends from Modelica.Icons.Record (Icon for records).
Name | Description |
---|---|
Source | |
VSource | Source RMS voltage line-to-line [V] |
fSource | Source frequency [Hz] |
RLoad | Load resistance of source [Ohm] |
RGround | Resistance of ground connection [Ohm] |
OpAmp | |
V0 | No-load differential amplification |
VSupply | Supply voltage [V] |
k | Attenuation factor |
R1 | Resistor 1 [Ohm] |
R2 | Resistor 2 [Ohm] |
R3 | Resistor 3 [Ohm] |
R4 | Resistor 4 [Ohm] |
Measurement | |
RInstrument | Input resistance of instrument [Ohm] |