Gyro
Dynamic model of the MEMS gyroscope.
blockType: AcausalElectricPowerSystems.Sensors.Gyro
Path in the library:
|
Description
Block Gyro Implements a dynamic model of a microelectromechanical systems gyroscope (MEMS). The gyroscope outputs an output voltage proportional to the angular velocity applied to the R port. The output voltage is limited by the maximum and minimum output voltage values you set.
If desired, you can simulate the dynamics of the sensor by setting the parameter Dynamics meaning Model sensor bandwidth. Turning on the speaker adds a first-order delay between the angular velocity displayed on the R port and the corresponding voltage applied to the + and − ports.
When running simulations using a fixed-step solver or when generating code for software and hardware testing, it is recommended to set the parameter Dynamics meaning No dynamics - Situable for HIL because this avoids the need to use a small step in simulation time at high sensor throughput.
Ports
Conserving
#
R
—
rotary port
mechanics
Details
A non-directional port connected to the gyroscope’s rotational port.
| Program usage name |
|
#
+
—
positive port
electricity
Details
A non-directional electrical port connected to the positive terminal of the gyroscope.
| Program usage name |
|
#
−
—
negative port
electricity
Details
A non-directional electrical port connected to the negative terminal of the gyroscope.
| Program usage name |
|
Parameters
Parameters
#
Sensitivity —
sensitivity
V/rpm | V/(rad/s) | mV/(deg/s)
Details
The change in the output voltage level per unit of rotation speed change when the output signal is not limited.
| Units |
|
| Default value |
|
| Program usage name |
|
| Evaluatable |
Yes |
#
Output voltage for zero rotation —
output voltage at zero rotation
V | uV | mV | kV | MV
Details
The output voltage of the sensor at zero rotation speed.
| Units |
|
| Default value |
|
| Program usage name |
|
| Evaluatable |
Yes |
#
Maximum output voltage —
Maximum output voltage
V | uV | mV | kV | MV
Details
The maximum output voltage of the sensor, which determines the maximum rotational speed measured by the sensor.
| Units |
|
| Default value |
|
| Program usage name |
|
| Evaluatable |
Yes |
#
Minimum output voltage —
Minimum output voltage
V | uV | mV | kV | MV
Details
The minimum output voltage of the sensor, which determines the minimum rotational speed measured by the sensor.
| Units |
|
| Default value |
|
| Program usage name |
|
| Evaluatable |
Yes |
#
Dynamics —
a variant of dynamics modeling
No dynamics - Situable for HIL | Model sensor bandwidth
Details
Select one of the following options for modeling sensor dynamics:
-
No dynamics - Situable for HIL– do not simulate sensor dynamics. Use this value when running a simulation with a fixed step or when generating code for software and hardware testing, since this avoids the need for a small simulation step with high sensor throughput. This value is used by default. -
Model sensor bandwidth– simulate the dynamics of the sensor using a first-order delay approximation based on the parameter value Bandwidth. You can control the initial delay condition by specifying the target value of the variable Measured angular rate.
| Values |
|
| Default value |
|
| Program usage name |
|
| Evaluatable |
Yes |
#
Bandwidth —
bandwidth
Hz | kHz | MHz | GHz
Details
Defines the bandwidth by level 3 dB for the measured rotational speed, assuming a first-order time constant.
Dependencies
To use this parameter, set for the parameter Dynamics value Model sensor bandwidth.
| Units |
|
| Default value |
|
| Program usage name |
|
| Evaluatable |
Yes |