Engee documentation

Hall-Effect Rotary Encoder

Four-element Hall-effect based rotary angle sensor.

hall effect rotary encoder

Description

The Hall-Effect Rotary Encoder unit simulates a 360-degree rotary angle sensor using four Hall sensors evenly spaced under a rotating magnet. The sensors generate four sine waves.

hall effect rotary encoder 1

The equations

The voltages between the elements of a steering angle sensor are described by the equations:

Where:

  • - voltage between elements and ,

  • - voltage between elements and ,

  • and - voltage amplitudes for axes and , reflecting the sensitivity mismatch,

  • and - voltage offsets for axes and ,

  • - quadrature error.

The rotation angle is calculated by the formula:

Variables

To set priority and initial target values for block variables before calculation, use the parameters in the Initial Targets section.

Ports

Non-directional

R - encoder shaft
`rotational mechanics

Mechanical rotational port corresponding to the positive connection of the transducer.

C - sensor housing
`rotational mechanics

Mechanical rotational port corresponding to the negative (reference) connection.

yp is the positive terminal associated with the Hall voltage occurring along the y-axis
electricity

Positive electrical port associated with the Hall sensor output in the positive direction of the y-axis.

Dependencies

To enable this port, set Output interface to `Electrical connections'.

yn is the negative terminal associated with the Hall voltage occurring along the y-axis
`electrical'

Negative electrical port associated with the Hall sensor output in the negative y-axis direction.

Dependencies

To enable this port, set Output interface to `Electrical connections'.

xp is the positive terminal associated with the Hall voltage occurring along the x-axis
electrical

Positive electrical port associated with the Hall sensor output in the positive direction of the x-axis.

Dependencies

To enable this port, set the Output interface parameter to Electrical connections.

xn is the negative terminal associated with the Hall voltage occurring along the x-axis
electrical

Negative electrical port associated with the Hall sensor output in the negative x-axis direction.

Dependencies

To enable this port, set the Output interface parameter to Electrical connections.

Output

Angle - angle of rotation, rad
scalar

Decoded rotation angle of the magnetic field in the plane - , returned as a scalar in the range from 0 to 2π.

Dependencies

To enable this port, set the Output interface parameter to Decoded angular position.

Parameters

X-axis voltage amplitude - x-axis voltage
`2.5 V (by default)

x-axis voltage amplitude.

Y-axis voltage amplitude - y-axis voltage amplitude
2.5 V (by default)

Y-axis voltage amplitude.

X-axis voltage offset - x-axis voltage offset
0 (By default)

Potential difference when an electric current flows through a conductor in the absence of an external magnetic field along the x-axis.

Y-axis voltage offset - y-axis voltage offset
0 (By default)

Potential difference when an electric current flows through a conductor in the absence of an external magnetic field along the y-axis.

Quadrature error - quadrature error
0 (by default) | scalar

The magnitude of the quadrature error. Quadrature switching can reduce offset errors.

Output interface - interface for decoded information
Electrical connections (by default) | Decoded angular position

Interface for decoded information, available values:

  • Electrical connections (by default).

  • Decoded angular position.