#include <Arduino.h>
const int MOTOR_COUNT = 3; // We're using 3 motors (X, Y, Z)
// Pin definitions for motor control
const int EN[MOTOR_COUNT] = {13, 10, 7}; // Enable pins
const int STEP[MOTOR_COUNT] = {12, 9, 6}; // Step pins
const int DIR[MOTOR_COUNT] = {11, 8, 5}; // Direction pins
// Pin definitions for limit switches
#define LIMITX 22
#define LIMITY 24
#define LIMITZ 26
// Pin definition for stop button
#define STOP 23
#define PRINT 25
// Motor movement parameters
const int stepDelay = 800; // Microseconds between steps (controls speed)
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
+X
-X
-Y
+Y
-Z
+Z
X-axis
Y-axis
Z-axis
STOP
Print
Limit SW -X
Limit SW -Y
Limit SW -Z
10mm
10mm
10mm
1mm
Extruder