A fluid delivery system includes an electric motor, a pump driven by the electric motor, and a control system. The control system is programmed to supply a variable voltage to the electric motor, to sense a response of a current of the electric motor to the variable voltage, and to obtain frequency domain information about the response of the current of the electric motor.