From 32c4875ca13f22c2d630367db5248bd2317df18d Mon Sep 17 00:00:00 2001 From: Oleg Kalachev Date: Fri, 28 Feb 2025 22:22:39 +0300 Subject: [PATCH] Increase pwm frequency and resolution --- flix/motors.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flix/motors.ino b/flix/motors.ino index babfa51..ac442b0 100644 --- a/flix/motors.ino +++ b/flix/motors.ino @@ -12,8 +12,8 @@ #define MOTOR_2_PIN 14 // front right #define MOTOR_3_PIN 15 // front left -#define PWM_FREQUENCY 500 -#define PWM_RESOLUTION 8 +#define PWM_FREQUENCY 1000 +#define PWM_RESOLUTION 12 // Motors array indexes: const int MOTOR_REAR_LEFT = 0;