A device for controlling an armature solenoid for generating a predefined force to be exerted by the armature solenoid for use in a vehicle operating unit with haptic feedback, which armature solenoid has a potentially changed air gap width in an idle state, wherein the device is provided with - a DC voltage source for supplying an exciter coil of an armature solenoid , - at least one buffer capacitor connected in parallel to the DC voltage source and having a known capacitance (C), - a first switch arranged between the DC voltage source and the buffer capacitor , - the exciter coil of the armature solenoid and a second switch arranged in series therewith being connected in parallel to the buffer capacitor , and - a control and evaluation unit for controlling the first switch , as well as the second switch and for evaluating a measurement voltage dropping over the exciter coil , - the control and evaluation unit , when the buffer capacitor is in a charged state, opening the first switch and closing the second switch and determining, from the measurement voltage , the frequency of the resonant circuit having the capacitance (C) of the buffer capacitor and the inductance (L) of the armature solenoid , - the inductance (L) of the armature solenoid being determinable by the control and evaluation unit based on the determined frequency, - the air gap width (h) of the armature solenoid being determinable by the control and evaluation unit based on the determined inductance (L) of the armature solenoid , - on the basis of a look-up table or a mathematical modelling of the electromagnetic behavior of the armature solenoid , the control and evaluation unit can apply to the second switch the PWM control signal with which, with consideration to the air gap width (h) determined, the armature solenoid is operable to generate a predefined force to be applied by the armature solenoid . - a DC voltage source for supplying an exciter coil of an armature solenoid , - at least one buffer capacitor connected in parallel to the DC voltage source and having a known capacitance (C), - a first switch arranged between the DC voltage source and the buffer capacitor , - the exciter coil of the armature solenoid and a second switch arranged in series therewith being connected in parallel to the buffer capacitor , and - a control and evaluation unit for controlling the first switch , as well as the second switch and for evaluating a measurement voltage dropping over the exciter coil , - the control and evaluation unit , when the buffer capacitor is in a charged state, opening the first switch and closing the second switch and determining, from the measurement voltage , the frequency of the resonant circuit having the capacitance (C) of the buffer capacitor and the inductance (L) of the armature solenoid , - the inductance (L) of the armature solenoid being determinable by the control and evaluation unit based on the determined frequency, - the air gap width (h) of the armature solenoid being determinable by the control and evaluation unit based on the determined inductance (L) of the armature solenoid , - on the basis of a look-up table or a mathematical modelling of the electromagnetic behavior of the armature solenoid , the control and evaluation unit can apply to the second switch the PWM control signal with which, with consideration to the air gap width (h) determined, the armature solenoid is operable to generate a predefined force to be applied by the armature solenoid . <EOS>