Skip to content

armgit / flix

Public Imported from GitHub
0

Making an ESP32-based quadcopter from scratch

Increase motors PWM resolution to 12 bits

Oleg Kalachev72033cdd757d
diff --git a/flix/motors.ino b/flix/motors.ino
index 770a0fb..c7fdc5f 100644
--- a/flix/motors.ino
+++ b/flix/motors.ino
@@ -10,7 +10,7 @@
#define MOTOR_3_PIN 15 // front left
#define PWM_FREQUENCY 500
-#define PWM_RESOLUTION 8
+#define PWM_RESOLUTION 12
#define PWM_MIN 0
#define PWM_MAX 1000000 / PWM_FREQUENCY