I am working with an Arduino Mega 2560. The problem I have currently is that the servo motor I'm using makes a slight noise in idle state. It's because it's not a pure signal. How do I generate PWM with interrupts for the microcontroller?
Does using interrupts place the counter at the exact same spot every time? If not, how do I deal with a high-resolution servo?
analogWrite()
does: it is a much cleaner way to do it than bit-banging to get PWM signal, which is what I think you are referring to. – angelatlarge