2020-04-08, 11:19 PM
I got it to work making a few more changes, at around lines 439, 448, 458, 618 and 636 of motor.ino; on these linesĀ I changed the factor 16000 to 8000 and finally got a 2kHz cycle. This was trial and error on my part because I have still no classical understanding of this piece of code.
I wanted to check this out because I am also planning to use pwm_style=2 and I don't want to run into a noisy motor then.
I wanted to check this out because I am also planning to use pwm_style=2 and I don't want to run into a noisy motor then.