A method for contactless determination of the position of a driven moving portion of an electric motor by means of a plurality of magnetic field sensors, wherein the moving portion is movably arranged with respect to a stator and has a plurality of permanent magnets which generate a moving-portion magnetic field having a plurality of periodically spaced apart maxima, and wherein the plurality of magnetic field sensors are arranged along a movement path of the moving portion, the method comprising:
- determining, by means of the plurality of magnetic field sensors, a plurality of measured values for a momentary magnetic field that is generated by the plurality of permanent magnets and dependent on the position of the moving portion;
- selecting a subset of the plurality of measured values, wherein the subset of the plurality of measured values is taken from magnetic field sensors arranged adjacent each other;
- determining a specific spectral signal component from the subset of the plurality of measured values, the specific spectral signal component having a spatial frequency corresponding to the distance between adjacent like maxima of the moving-portion magnetic field;
- and
- determining the position of the driven moving portion by means of the specific spectral signal component, wherein said determining the position of the driven moving portion is performed by means of a phase angle of the specific spectral signal component, and wherein said determining the position of the driven moving portion comprises converting the phase angle of the specific spectral signal component into an offset of the driven moving portion with respect to a known position.