Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /** \brief Delta drive type: 0 - belts and pulleys, 1 - filament drive */
- #define DELTA_DRIVE_TYPE 0
- #if DELTA_DRIVE_TYPE == 2
- /** \brief Pitch in mm of drive belt. GT2 = 2mm */
- #define BELT_PITCH 2
- /** \brief Number of teeth on X, Y and Z tower pulleys */
- #define PULLEY_TEETH 20
- #define PULLEY_CIRCUMFERENCE (BELT_PITCH * PULLEY_TEETH)
- #elif DELTA_DRIVE_TYPE == 1
- /** \brief Filament pulley diameter in milimeters */
- #define PULLEY_DIAMETER 10
- #define PULLEY_CIRCUMFERENCE (PULLEY_DIAMETER * 3.1415927)
- #endif
- /** \brief Steps per rotation of stepper motor */
- #define STEPS_PER_ROTATION 200
- /** \brief Micro stepping rate of X, Y and Y tower stepper drivers */
- #define MICRO_STEPS 0
- /** \brief Number of delta moves in each line. Moves that exceed this figure will be split into multiple lines.
- Increasing this figure can use a lot of memory since 7 bytes * size of line buffer * MAX_SELTA_SEGMENTS_PER_LINE
- will be allocated for the delta buffer. With defaults 7 * 16 * 30 = 3360 bytes. This leaves ~1K free RAM on an Arduino
- Mega. */
- #define MAX_DELTA_SEGMENTS_PER_LINE 22
- // Calculations
- #define AXIS_STEPS_PER_MM ((float)(MICRO_STEPS * STEPS_PER_ROTATION) / PULLEY_CIRCUMFERENCE)
- #define XAXIS_STEPS_PER_MM AXIS_STEPS_PER_MM
- #define YAXIS_STEPS_PER_MM AXIS_STEPS_PER_MM
- #define ZAXIS_STEPS_PER_MM AXIS_STEPS_PER_MM
- #else
- // *******************************************************
- // *** These parameter are for all other printer types ***
- // *******************************************************
- /** Drive settings for printers with cartesian drive systems */
- /** \brief Number of steps for a 1mm move in x direction.
- For xy gantry use 2*belt moved!
- Overridden if EEPROM activated. */
- ///////////////////***********set to pretect or smart upload firmware.
- #if PiBotMachine==true
- #if PI_PR_I3==true
- #define XAXIS_STEPS_PER_MM 80 ///****80
- /** \brief Number of steps for a 1mm move in y direction.
- For xy gantry use 2*belt moved!
- Overridden if EEPROM activated.*/
- #define YAXIS_STEPS_PER_MM 80
- /** \brief Number of steps for a 1mm move in z direction Overridden if EEPROM activated.*/
- #define ZAXIS_STEPS_PER_MM 4000 /////****M5-0.8 screw
- #else
- #define XAXIS_STEPS_PER_MM 62.992 ///////****98.425196->62.992
- /** \brief Number of steps for a 1mm move in y direction.
- For xy gantry use 2*belt moved!
- Overridden if EEPROM activated.*/
- #define YAXIS_STEPS_PER_MM 62.992 ///////****98.425196->62.992
- /** \brief Number of steps for a 1mm move in z direction Overridden if EEPROM activated.*/
- #define ZAXIS_STEPS_PER_MM 2133.333 ////////*** 2560->2133.333 ///**T12-3
- #endif
- #else
- #define XAXIS_STEPS_PER_MM 320 ////***for your config
- /** \brief Number of steps for a 1mm move in y direction.
- For xy gantry use 2*belt moved!
- Overridden if EEPROM activated.*/
- #define YAXIS_STEPS_PER_MM 320 ////***for your config
- /** \brief Number of steps for a 1mm move in z direction Overridden if EEPROM activated.*/
- #define ZAXIS_STEPS_PER_MM 320 ////***for your config
- #undef UPLOAD_TIMES
- #define UPLOAD_TIMES 1
- #endif
- #endif
Advertisement
Add Comment
Please, Sign In to add comment