Increase pwm frequency and resolution

This commit is contained in:
Oleg Kalachev 2025-02-28 22:22:39 +03:00
parent 07c5ae19dd
commit 32c4875ca1

View File

@ -12,8 +12,8 @@
#define MOTOR_2_PIN 14 // front right #define MOTOR_2_PIN 14 // front right
#define MOTOR_3_PIN 15 // front left #define MOTOR_3_PIN 15 // front left
#define PWM_FREQUENCY 500 #define PWM_FREQUENCY 1000
#define PWM_RESOLUTION 8 #define PWM_RESOLUTION 12
// Motors array indexes: // Motors array indexes:
const int MOTOR_REAR_LEFT = 0; const int MOTOR_REAR_LEFT = 0;