I'm working on an Arduino-based audio visualisation project where I run an audio signal into the Arduino, using an FFT to calculate the intensities at different frequencies and then using that to power various servo motors depending on the intensities.
When I just had audio running into the Arduino everything worked well and the FFT calcuated the expected values.
When I connected the servo motor, however, I got large amounts of noise in the audio signal cable and the resultant values from the FFT were all over the place.
Fixing the Issue
From doing research on the internet I found that I most likely need to use a filter to remove this noise. I have a few questions:
- Would I need to use a high-pass filter or a low-pass filter?
- How would I know what capacitance to use?
- Would I need to apply the filter on the signal cable or on the cables to the servo (in case of the servo would I be filtering the power cable or the PWM control cable)?
If there is a another method for removing noise that I have not considered, please let me know :)