blockE2d

Calculate position from hall sensor signal

Information

Calculates the position of the magnet from the output of the hall effect sensor, using the known current. Additionally, the velocity of the magnet is determined by differentiating the position.

Parameters

TypeNameDefaultDescription
SI.Currenti0Initially measured coil current
SI.Voltagee0Initial Hall sensor signal
Hall effect sensor
SI.Voltagealfa2.48Coefficient 1 (constant)
Realbeta2.92E-4Coefficient 2 (distance)
SI.Resistancegamma0.48Coefficient 3 (current)

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealInpute
Modelica.Blocks.Interfaces.RealInputi
Modelica.Blocks.Interfaces.RealOutputd
Modelica.Blocks.Interfaces.RealOutputd_der