groove count
This commit is contained in:
parent
c6c50ff882
commit
416fc2cddc
|
@ -21,9 +21,10 @@ bgp, 2023
|
|||
#define STEPS_FRW 258 // шаги вперёд
|
||||
#define STEPS_BKW 0 // шаги назад
|
||||
|
||||
#define STEPPER_SPEED 30 * 2
|
||||
#define STEPPER_SPEED 10 * 21
|
||||
#define STEPPER_REV 200 * 4
|
||||
#define STEPPER_DELAY 1000
|
||||
#define GROOVE_COUNT 3
|
||||
|
||||
// =========================================================
|
||||
#include <EEPROM.h>
|
||||
|
@ -216,7 +217,7 @@ void feed()
|
|||
digitalWrite(SLEEP, HIGH);
|
||||
delayMicroseconds(STEPPER_DELAY);
|
||||
for (int i = 0; i < feedAmount; i++)
|
||||
myStepper.step(STEPPER_REV);
|
||||
myStepper.step(STEPPER_REV / GROOVE_COUNT);
|
||||
delayMicroseconds(STEPPER_DELAY);
|
||||
// oneRev();
|
||||
disableMotor();
|
||||
|
|
Loading…
Reference in New Issue