1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- #ifndef _CONFIG_H_
- #define _CONFIG_H_
-
- #define FIRMWARE_VERSION "0.1"
-
- #define LED_BLINK_INTERVAL 500
- #define DEBOUNCE_DELAY 50
-
- #define ENCODER_CLICK_BEEP_FREQ 2000
- #define ENCODER_CLICK_BEEP_TIME 50
-
- #define XY_BELT_PITCH 2.0
- #define XY_PULLEY_TEETH 40.0
- #define XY_MICRO_STEPS 16.0
- #define XY_MOTOR_STEPS_PER_REV (200.0 * XY_MICRO_STEPS)
- #define XY_STEPS_PER_MM (XY_MOTOR_STEPS_PER_REV / XY_PULLEY_TEETH / XY_BELT_PITCH)
-
- #define Z_ROD_PITCH 2.0
- #define Z_MICRO_STEPS 16.0
- #define Z_MOTOR_STEPS_PER_REV (200.0 * Z_MICRO_STEPS)
- #define Z_STEPS_PER_MM (Z_MOTOR_STEPS_PER_REV / Z_ROD_PITCH)
-
- #define E_MICRO_STEPS 16.0
- #define E_MOTOR_STEPS_PER_REV (200.0 * E_MICRO_STEPS)
- #define E_STEPS_PER_MM (E_MOTOR_STEPS_PER_REV / 42) // TODO
-
- #define XY_MAX_SPEED 50.0 // in mm/s
- #define Z_MAX_SPEED 20.0 // in mm/s
- #define E_MAX_SPEED 10.0 // in mm/s
-
- #define XY_MAX_ACCEL 100.0 // in mm/s^2
- #define Z_MAX_ACCEL 50.0 // in mm/s^2
- #define E_MAX_ACCEL 20.0 // in mm/s^2
-
- #define X_AXIS_MIN -5.0 // in mm
- #define X_AXIS_MAX 260.0 // in mm
- #define Y_AXIS_MIN -5.0 // in mm
- #define Y_AXIS_MAX 360.0 // in mm
- #define Z_AXIS_MIN 0.0 // TODO in mm
- #define Z_AXIS_MAX 100.0 // TODO in mm
- #define E_AXIS_MIN 0.0 // in mm
- #define E_AXIS_MAX 6.0 // in mm
-
- #endif // _CONFIG_H_
|