Skip to content

armgit / flix

Public Imported from GitHub
0

Making an ESP32-based quadcopter from scratch

Increase motors PWM frequency to 1000 To match the main loop frequency

Oleg Kalachevf456e10177b5
diff --git a/flix/motors.ino b/flix/motors.ino
index a2ef586..aea72e8 100644
--- a/flix/motors.ino
+++ b/flix/motors.ino
@@ -11,7 +11,7 @@
#define MOTOR_2_PIN 14 // front right
#define MOTOR_3_PIN 15 // front left
-#define PWM_FREQUENCY 500
+#define PWM_FREQUENCY 1000
#define PWM_RESOLUTION 12
#define PWM_STOP 0
#define PWM_MIN 0