No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

config.h 1.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. #ifndef _CONFIG_H_
  2. #define _CONFIG_H_
  3. /***************************************
  4. ********** Firmware Settings **********
  5. ***************************************/
  6. #define FIRMWARE_VERSION "0.1"
  7. #define LED_BLINK_INTERVAL 500
  8. #define DEBOUNCE_DELAY 50
  9. #define ENCODER_CLICK_BEEP_FREQ 2000
  10. #define ENCODER_CLICK_BEEP_TIME 50
  11. /***************************************
  12. ********** Hardware Settings **********
  13. ***************************************/
  14. #define USE_20X4_TEXT_LCD
  15. //#define USE_FULL_GRAPHIC_LCD
  16. #define XY_BELT_PITCH 2.0
  17. #define XY_PULLEY_TEETH 40.0
  18. #define XY_MICRO_STEPS 16.0
  19. #define XY_MOTOR_STEPS_PER_REV (200.0 * XY_MICRO_STEPS)
  20. #define XY_STEPS_PER_MM (XY_MOTOR_STEPS_PER_REV / XY_PULLEY_TEETH / XY_BELT_PITCH)
  21. #define Z_ROD_PITCH 2.0
  22. #define Z_MICRO_STEPS 16.0
  23. #define Z_MOTOR_STEPS_PER_REV (200.0 * Z_MICRO_STEPS)
  24. #define Z_STEPS_PER_MM (Z_MOTOR_STEPS_PER_REV / Z_ROD_PITCH)
  25. #define E_MICRO_STEPS 16.0
  26. #define E_MOTOR_STEPS_PER_REV (200.0 * E_MICRO_STEPS)
  27. #define E_STEPS_PER_MM (E_MOTOR_STEPS_PER_REV / 42) // TODO
  28. #define XY_MAX_SPEED 50.0 // in mm/s
  29. #define Z_MAX_SPEED 20.0 // in mm/s
  30. #define E_MAX_SPEED 10.0 // in mm/s
  31. #define XY_MAX_ACCEL 100.0 // in mm/s^2
  32. #define Z_MAX_ACCEL 50.0 // in mm/s^2
  33. #define E_MAX_ACCEL 20.0 // in mm/s^2
  34. #define X_AXIS_MIN -5.0 // in mm
  35. #define X_AXIS_MAX 260.0 // in mm
  36. #define Y_AXIS_MIN -5.0 // in mm
  37. #define Y_AXIS_MAX 360.0 // in mm
  38. #define Z_AXIS_MIN 0.0 // TODO in mm
  39. #define Z_AXIS_MAX 100.0 // TODO in mm
  40. #define E_AXIS_MIN 0.0 // in mm
  41. #define E_AXIS_MAX 6.0 // in mm
  42. #endif // _CONFIG_H_