I have an ArduPilot Legacy board. It has been made a PCB for it, and it's using the the third timer for generating frequencies (pins 3 and 11). The idea is that when I made the PCB, I tought that the non-exactly frequency the Arduino is giving won't make my motors work abnormally.
What I need is an exact frequency of 10kHz (for my motor controllers).
The question is how do I set them to this fixed frequency? Plus, I need to send the pulse at a certain duty cycle. For example 30%, or 21%. Do I have to use another function than analogWrite(), just because is a particular frequency? How?
Unfortunately, I'm a beginner in terms of timers, so sorry me for this question which might be trivial.
Thank you, RobertEagle