Hall-Effect Rotary Encoder
Four-element rotation angle sensor based on the Hall effect.
blockType: AcausalElectricPowerSystems.Sensors.HallEffectRotaryEncoder
Path in the library:
|
Description
Block Hall-Effect Rotary Encoder Simulates a 360-degree rotation angle sensor using four Hall sensors evenly positioned under a rotating magnet. The sensors generate four sine waves.
The equations
The voltages between the elements of the rotation angle sensor are described by the equations:
where
-
— tension between the elements and ;
-
— tension between the elements and ;
-
and — voltage amplitudes for the axes and reflecting sensitivity mismatch;
-
and — voltage offsets for the axes and ;
-
— quadrature error.
The angle of rotation is calculated using the formula:
Variables
Use the parameter group Initial Targets to set the priority and initial target values for the block parameter variables before modeling. For more information, see Configuring physical blocks using target values.
Ports
Conserving
#
R
—
sensor shaft
rotational mechanics
Details
A mechanical rotary port corresponding to the positive connection of the sensor.
| Program usage name |
|
#
C
—
sensor housing
rotational mechanics
Details
A mechanical rotary port corresponding to a negative (support) connection.
| Program usage name |
|
#
yp
—
the positive terminal associated with the Hall voltage occurring along the axis
electricity
Details
A positive electrical port connected to the output of the Hall sensor in the positive direction of the axis .
Dependencies
To use this port, set the parameter Output interface meaning Electrical connections.
| Program usage name |
|
#
yn
—
the negative terminal is connected to the Hall voltage that occurs along the axis
electricity
Details
A negative electrical port connected to the output of the Hall sensor in the negative direction of the axis .
Dependencies
To use this port, set the parameter Output interface meaning Electrical connections.
| Program usage name |
|
#
xp
—
the positive terminal associated with the Hall voltage occurring along the axis
electricity
Details
A positive electrical port connected to the output of the Hall sensor in the positive direction of the axis .
Dependencies
To use this port, set the parameter Output interface meaning Electrical connections.
| Program usage name |
|
#
xn
—
the negative terminal associated with the Hall voltage occurring along the x-axis
electricity
Details
A negative electrical port connected to the output of the Hall sensor in the negative direction of the axis .
Dependencies
To use this port, set the parameter Output interface meaning Electrical connections.
| Program usage name |
|
Output
#
Angle
—
angle of rotation, rad
scalar
Details
The decoded angle of rotation of the magnetic field in the plane - , is returned as a scalar in the range of 0 before 2π.
Dependencies
To use this port, set the parameter Output interface meaning Decoded angular position.
| Data types |
|
| Complex numbers support |
No |
Parameters
Parameters
#
X-axis voltage amplitude —
tension along the axis
V | uV | mV | kV | MV
Details
Voltage amplitude along the axis .
| Units |
|
| Default value |
|
| Program usage name |
|
| Evaluatable |
Yes |
#
Y-axis voltage amplitude —
tension along the axis
V | uV | mV | kV | MV
Details
Voltage amplitude along the axis .
| Units |
|
| Default value |
|
| Program usage name |
|
| Evaluatable |
Yes |
#
X-axis voltage offset —
voltage shift along the axis
V | uV | mV | kV | MV
Details
Potential difference when an electric current flows through a conductor in the absence of an external magnetic field along the axis .
| Units |
|
| Default value |
|
| Program usage name |
|
| Evaluatable |
Yes |
#
Y-axis voltage offset —
voltage shift along the axis
V | uV | mV | kV | MV
Details
Potential difference when an electric current flows through a conductor in the absence of an external magnetic field along the axis .
| Units |
|
| Default value |
|
| Program usage name |
|
| Evaluatable |
Yes |
#
Quadrature error —
quadrature error
rad | deg | rev | mrad | arcsec | arcmin | gon
Details
The magnitude of the quadrature error. Quadrature switching can reduce bias errors.
| Units |
|
| Default value |
|
| Program usage name |
|
| Evaluatable |
Yes |
#
Output interface —
interface for decoded information
Electrical connections | Decoded angular position
Details
Interface for decoded information, available values:
-
Electrical connections; -
Decoded angular position.
| Values |
|
| Default value |
|
| Program usage name |
|
| Evaluatable |
No |