![]() I modified the config.h file as noted earlier and flashed the Mini-Rambo. My goal is to replace the Marlin controller that came with the LowRider2 CNC (derived from the MPCNC design) with real CNC software. I have been trying to get grbl-Mega to run on a Mini-Rambo 1.3a board which is an Arduino Mega 2560 with on-board support for RAMPS 1.4. ![]() #define DEFAULT_HOMING_DEBOUNCE_DELAY 250 // msec (0-65k) #define DEFAULT_HOMING_SEEK_RATE 1000.0 // mm/min #define DEFAULT_HOMING_FEED_RATE 100.0 // mm/min #define DEFAULT_INVERT_PROBE_PIN 0 // false #define DEFAULT_HARD_LIMIT_ENABLE 0 // false #define DEFAULT_SOFT_LIMIT_ENABLE 1 // false #define DEFAULT_INVERT_LIMIT_PINS 0 // invert X&Y limit switches #define DEFAULT_INVERT_ST_ENABLE 0 // false #define DEFAULT_ARC_TOLERANCE 0.002 // mm #define DEFAULT_JUNCTION_DEVIATION 0.01 // mm #define DEFAULT_STATUS_REPORT_MASK 1 // MPos enabled #define DEFAULT_STEPPER_IDLE_LOCK_TIME 254 // msec (0-254, 255 keeps steppers enabled) #define DEFAULT_DIRECTION_INVERT_MASK ((0<<X_AXIS)|(1<<Y_AXIS)) #define DEFAULT_STEP_PULSE_MICROSECONDS 10 #define DEFAULT_SPINDLE_RPM_MIN 0.0 // rpm #define DEFAULT_SPINDLE_RPM_MAX 1000.0 // rpm #define DEFAULT_Z_MAX_RATE 300.0 // mm/min #define DEFAULT_Y_MAX_RATE 5000.0 // mm/min #define DEFAULT_X_MAX_RATE 5000.0 // mm/min ![]() Note that the definitions in cpu_map.h for RAMPS are towards the end, and use Arduino pin numbering (rather than the hardware registers, and thus a bit slow) I suggest you begin by looking at one of the older grbl ports for RAMPS, something like Īlthough this implementation may not be the best speed wise, it isn't too hard to follow This change will impact maximum step rate, especially if you want to drive more than the 3 axes for extruders. grbl code expects all STEP pins on the same port, and all DIR on the same port. Porting to RAMPS hardware requires some rather complex changes due to the fact that the STEP and DIR pins for the Z axis are on PORTL, and X an Y axis are on PORTF. Typically the PINA hardware register is for reading the pin inputs (and PORTA is used for writing), so it probably was defined there just in case but never got used. Yeah, STEP_PIN doesn't appear to be used.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |