diff --git a/feeder.ino b/feeder.ino index a35c034..2fb2200 100644 --- a/feeder.ino +++ b/feeder.ino @@ -16,10 +16,10 @@ bgp, 2023 #define RELAY 10 // d10 ключ для отключения терминала и двигателя в ночное время #define BTN_PIN2 11 // кнопка настройки -#define STEPPER_SPEED 10 * 21 -#define STEPPER_REV 200 * 4 +#define STEPPER_SPEED 100 * 1 +#define STEPPER_REV 200 * 4 * 1 #define STEPPER_DELAY 1000 -#define GROOVE_COUNT 3 +#define GROOVE_COUNT 1 #define GEAR 4 // ========================================================= @@ -213,7 +213,7 @@ void feed() digitalWrite(SLEEP, HIGH); delayMicroseconds(STEPPER_DELAY); for (int i = 0; i < feedAmount; i++) - myStepper.step((STEPPER_REV * 1/GEAR) / GROOVE_COUNT); + myStepper.step((STEPPER_REV * GEAR) / GROOVE_COUNT); delayMicroseconds(STEPPER_DELAY); // oneRev(); disableMotor();