HallSensor

Hall sensor

    HallSensor

Library

Modelica/Electrical/Machines/Sensors

Description

Simple model of a hall sensor, i.e. measuring the angle of the flange (w.r.t. the optional support), multiplying by the number of phases p to obtain the electrical angle,and adding a correction term i.e. the initial angle of the flange phi0.

Note that phi0 has to be set that way, that in shaft position phi0 the flux linkage of phase 1 is a maximum.

Parameters

HallSensor_0

NameLabelDescriptionData TypeValid Values

mo_useSupport

useSupport

= true, if support flange enabled, otherwise implicitly grounded

Number

0
1

mo_p

p

Number of pole pairs

Scalar

mo_phi0

phi0

Initial mechanical angle

Scalar

HallSensor_1

NameLabelDescriptionData TypeValid Values

mo__nmodifiers

Number of Modifiers

Specifies the number of modifiers

Number

mo__modifiers

Modifiers

Add new modifier

Structure

mo__modifiers/varname

Variable name

Cell of strings

'phi_support'

mo__modifiers/attribute

Attribute

Cell of strings

'start'
'fixed'

mo__modifiers/value

Value

Ports

NameTypeDescriptionIO TypeNumber

flange

implicit

Flange of shaft

output

1

y

implicit

"Electrical angle"

output

2

Port 3

implicit

Support/housing of component

input

mo_useSupport