craiyon logo

A glowing holographic screen displays lines of code in a futuristic, dark environment with robotic arms and circuit patterns.

A glowing holographic screen displays lines of code in a futuristic, dark environment with robotic arms and circuit patterns.

// Update 28.01.2026 - Optimierte Sicherheit & Homing-Timeout #include <AccelStepper.h> // ================================================= // EINSTELLUNGEN // ================================================= // --- ZEITEN & DELAYS (ms) --- const unsigned long DAUER_SCHNEIDEN = 1800; const unsigned long DAUER_KLEMMUNG = 1500; const unsigned long PAUSE_NACH_SCHNITT = 1000; const unsigned long PAUSE_NACH_KLEMME_LOW = 1500; const unsigned long LED_NACHLAUF_ZEIT = 1000; const unsigned long PAUSE_ZWISCHEN_NACHLAUF = 500; const unsigned long HOMING_TIMEOUT = 30000; // Max. 10 Sek für Homing pro Achse // --- GESCHWINDIGKEITEN & BESCHLEUNIGUNG --- const int SPEED_MAGAZIN = 6000; const int ACCEL_MAGAZIN = 6000; const int SPEED_VORSCHUB = 4000; const int ACCEL_VORSCHUB = 6000; // --- REFERENZFAHRT (HOMING) --- const float HOMING_SPEED_SUCHE = 600; const float HOMING_SPEED_NULL = -800; // --- POSITIONEN & SCHRITTE --- const int maxMagazinPos = 6; const int maxVorschubZyklen = 8; const long VORSCHUB_NACHLAUF = 650; const long magazinPositionen[] = { 800, 1600, 2400, 3200, 4000, 4800, 5400, 6200, 7000, 7800 }; const long vorschubSchritte[] = { 3020, 1340, 1340, 1340, 1340, 1340, 1340, 1340 }; // --- PIN DEFINITIONEN --- const int STEP_MAGAZIN = 2; const int DIR_MAGAZIN = 3; const int ENA_MAGAZIN = 4; const int HOME_MAGAZIN = A4; const int STEP_VORSCHUB = 5; const int DIR_VORSCHUB = 6; const int ENA_VORSCHUB = 7; const int HOME_VORSCHUB = A5; const int PIN_KLEMMUNG = 8; const int Mehr sehen