Guest User

Untitled

a guest
Aug 6th, 2014
293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.30 KB | None | 0 0
  1. /** \brief Delta drive type: 0 - belts and pulleys, 1 - filament drive */
  2. #define DELTA_DRIVE_TYPE 0
  3.  
  4. #if DELTA_DRIVE_TYPE == 2
  5. /** \brief Pitch in mm of drive belt. GT2 = 2mm */
  6. #define BELT_PITCH 2
  7. /** \brief Number of teeth on X, Y and Z tower pulleys */
  8. #define PULLEY_TEETH 20
  9. #define PULLEY_CIRCUMFERENCE (BELT_PITCH * PULLEY_TEETH)
  10. #elif DELTA_DRIVE_TYPE == 1
  11. /** \brief Filament pulley diameter in milimeters */
  12. #define PULLEY_DIAMETER 10
  13. #define PULLEY_CIRCUMFERENCE (PULLEY_DIAMETER * 3.1415927)
  14. #endif
  15.  
  16. /** \brief Steps per rotation of stepper motor */
  17. #define STEPS_PER_ROTATION 200
  18.  
  19. /** \brief Micro stepping rate of X, Y and Y tower stepper drivers */
  20. #define MICRO_STEPS 0
  21.  
  22. /** \brief Number of delta moves in each line. Moves that exceed this figure will be split into multiple lines.
  23. Increasing this figure can use a lot of memory since 7 bytes * size of line buffer * MAX_SELTA_SEGMENTS_PER_LINE
  24. will be allocated for the delta buffer. With defaults 7 * 16 * 30 = 3360 bytes. This leaves ~1K free RAM on an Arduino
  25. Mega. */
  26. #define MAX_DELTA_SEGMENTS_PER_LINE 22
  27.  
  28. // Calculations
  29. #define AXIS_STEPS_PER_MM ((float)(MICRO_STEPS * STEPS_PER_ROTATION) / PULLEY_CIRCUMFERENCE)
  30. #define XAXIS_STEPS_PER_MM AXIS_STEPS_PER_MM
  31. #define YAXIS_STEPS_PER_MM AXIS_STEPS_PER_MM
  32. #define ZAXIS_STEPS_PER_MM AXIS_STEPS_PER_MM
  33. #else
  34. // *******************************************************
  35. // *** These parameter are for all other printer types ***
  36. // *******************************************************
  37.  
  38. /** Drive settings for printers with cartesian drive systems */
  39. /** \brief Number of steps for a 1mm move in x direction.
  40. For xy gantry use 2*belt moved!
  41. Overridden if EEPROM activated. */
  42. ///////////////////***********set to pretect or smart upload firmware.
  43. #if PiBotMachine==true
  44. #if PI_PR_I3==true
  45. #define XAXIS_STEPS_PER_MM 80 ///****80
  46. /** \brief Number of steps for a 1mm move in y direction.
  47. For xy gantry use 2*belt moved!
  48. Overridden if EEPROM activated.*/
  49. #define YAXIS_STEPS_PER_MM 80
  50. /** \brief Number of steps for a 1mm move in z direction Overridden if EEPROM activated.*/
  51. #define ZAXIS_STEPS_PER_MM 4000 /////****M5-0.8 screw
  52. #else
  53. #define XAXIS_STEPS_PER_MM 62.992 ///////****98.425196->62.992
  54. /** \brief Number of steps for a 1mm move in y direction.
  55. For xy gantry use 2*belt moved!
  56. Overridden if EEPROM activated.*/
  57. #define YAXIS_STEPS_PER_MM 62.992 ///////****98.425196->62.992
  58. /** \brief Number of steps for a 1mm move in z direction Overridden if EEPROM activated.*/
  59. #define ZAXIS_STEPS_PER_MM 2133.333 ////////*** 2560->2133.333 ///**T12-3
  60. #endif
  61. #else
  62. #define XAXIS_STEPS_PER_MM 320 ////***for your config
  63. /** \brief Number of steps for a 1mm move in y direction.
  64. For xy gantry use 2*belt moved!
  65. Overridden if EEPROM activated.*/
  66. #define YAXIS_STEPS_PER_MM 320 ////***for your config
  67. /** \brief Number of steps for a 1mm move in z direction Overridden if EEPROM activated.*/
  68. #define ZAXIS_STEPS_PER_MM 320 ////***for your config
  69. #undef UPLOAD_TIMES
  70. #define UPLOAD_TIMES 1
  71. #endif
  72. #endif
Advertisement
Add Comment
Please, Sign In to add comment