Hi all,
i'm using two BTS7960 Motordriver on Pin 9/10 and Pin 3/11 (see Schematic Arduino_FFB_Yoke/Schematics.jpg at main · gagagu/Arduino_FFB_Yoke · GitHub)
and i've added two lines to the Setup() to speed up the PWN Frequency because of loud noise of the motors and they need more frequency to work better. I've got the two lines everywhere from the internet and it seems to work fine.
// timer 1B: pin 9 & 10
TCCR1B = _BV(CS00); // change the PWM frequencey to 31.25kHz - pins 9 & 10
// timer 0B : pin 3 & 11
TCCR0B = _BV(CS00); // change the PWM frequencey to 31.25 kHz - pin 3 & 11
Now, i've found out that the function millis() will not work correctly anymore. It's too fast. I know the reason for this is to change the Timer configuration and i guess i can live with that but i want to ask if there is a better way to speed up the PWM frequency for the BTS7960 or do i something wrong?
Thx forward.