From e43aee9b13881493bc05575b773a9f9d64adb978 Mon Sep 17 00:00:00 2001 From: BinarySandia04 Date: Wed, 22 Apr 2026 12:51:31 +0200 Subject: [PATCH] Wrong direction and also not enabled on boot --- backend/main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/backend/main.py b/backend/main.py index d58a7c9..ee21435 100644 --- a/backend/main.py +++ b/backend/main.py @@ -18,7 +18,8 @@ GPIO.setup(STEP, GPIO.OUT) GPIO.setup(DIR, GPIO.OUT) GPIO.setup(EN, GPIO.OUT) -GPIO.output(EN, GPIO.LOW) +GPIO.output(EN, GPIO.HIGH) + motor_thread = None @@ -35,7 +36,7 @@ def motor_step(): GPIO.output(EN, GPIO.LOW) # enable driver print("Motor running...") - step_motor(400, GPIO.HIGH, 0.001) + step_motor(400, GPIO.LOW, 0.001) GPIO.output(EN, GPIO.HIGH) # disable driver