I have a Hall effect sensor and an electric motor, with both the sensor and the motor powered from the same supply. I'd like to use PWM on the supply to vary the speed of the motor. The sensor and motor aren't separable.
However, I've been told that Hall effect sensors don't respond well to being supplied with a PWM-modulated supply, and its output might not allow reliable speed readings for the motor. I haven't been able to find anything online saying this, but the resources I have found on Hall effect sensors all say that the sensor should be given a "constant voltage supply."
Will using PWM to vary motor speed make the Hall effect sensor unreliable? If so, would using a high switching frequency and a filter on the sensor's output (to remove noise from the high switching frequency) solve the problem?