Angle sensor

Measures shaft angle in radians without loading the mechanical system.

  • signal
  • rotational
  • Gradara equations
  • 2 ports
BlockAngle sensorKindangleSensorLibraryRotational

Description

Measures the absolute angle of the flange, in radians, without loading it. Use it for position feedback in a servo loop.

Example

Resolver and Hall sensor A shaft turning at 10 rad/s read by a resolver, a Hall sensor, and an angle sensor.

Shaft 10 rad/sResolverHall sensorShaft angle
In Gradara, select a Angle sensor block and press F1, then choose Open example. It opens as a new model in My models, ready to run.

Also in this example:Constant speedElectrical angle sensorResolver

Ports

Outputs 1

  • y

    Absolute angle, in radians. It is not wrapped to one revolution.

Conserving terminals 1

  • shaftflange

    Measured flange. No torque is exchanged.

Equations

Modelica
y = flange.phi
flange.tau = 0

Assumptions and limitations

  • Ideal: no quantization, noise, or delay, unlike a real encoder.

Used in

These larger examples use it too. Open them from Examples in the app.

  • Servo position control

See also

Select a block in Gradara and press F1 to open its page offline.