I'm powering a motor from my Arduino Mega through a Pololu driver. When I send the signal, the motor makes a high-pitch noise which is very annoying, probably due to a low frequency PWM.
The driver supports up to 20kHz, so I'd like to change the frequency to that value. My programming experience is limited, so any help/advice would be super appreciated.
I was using pins 8 & 9 on the Mega, which supply a PMW output. But I can obviously change them if they interfere with those functions (I'm using them).
Is there a way of knowing which timer control which pins?
colabarris:
I was using pins 8 & 9 on the Mega, which supply a PMW output. But I can obviously change them if they interfere with those functions (I'm using them).
Is there a way of knowing which timer control which pins?
The Mega 2560 reference schematic, available from this site. In part: