Method of calibrating a magnetic-field sensor of a magnetic-field sensor arrangement, wherein the magnetic-field sensor arrangement comprises an excitation-conductor array comprising a multitude of selectively driveable excitation conductors arranged at a distance from the magnetic-field sensor, the method comprising:
- selectively driving the excitation conductors so as to generate different magnetic test fields in the magnetic-field sensor in different drive states by driving a different excitation conductor, and so as to generate a set of detected output signal values of the magnetic-field sensor in accordance with the different drive states;
- and
- providing different parameter sets comprising comparison output signal values for the different drive states, the parameter sets representing variations of the architecture of the magnetic-field sensor comprising the excitation-conductor array, and
- determining, on the basis of the set of detected output signal values of the magnetic-field sensor, that parameter set whose comparison output signal values exhibit a best match with the set of detected output signal values.