2020-04-15, 10:49 AM
(2020-04-08, 11:19 PM)ironman Wrote: 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.
Nice! I'll give it a try, I thought that changing it in one line would be enough not realizing that the value is repeated in other lines. Maybe a variable in this case would be nice. Anyway, as soon as I am on the boat I'll give it a try.