Welcome! Log In Create A New Profile

Advanced

Help using Repetier Firmware with RAMPS 1.4

Posted by wednesday 
Help using Repetier Firmware with RAMPS 1.4
November 23, 2014 01:47AM
I have originally built a repstrap printer using another control board and had it dialed in beautifully. That is until I snapped its mini-USB port clean off. I'm working on fixing the issue with that board but in the mean time I bought a RAMPS/Mega set as a back-up.

I'm trying to use Repetier FW as on the first board but am not having a good time getting it to work. So far all I can get to happen is the hot end will heat up. I'm pretty sure the issue is in the firmware just not sure where yet and am asking for any help. If anyone using Rep FW with RAMPS would take a look at these config H clips and verify or clarify it would be greatly appreciated. Also if you could provide a view of your pins H settings for me to pick through it would be very helpful.

My set up (if it helps at all) is a cartesian style; X axis = 301mm, Y = 226mm, Z = 181mm. Facing the front of the machine X homes to the left side, Y homes to the back, and Z to the top. Minimum hardware endstops on X and Y and maximum hardware endstop on Z with software endstops on the alternatives.

Many thanks,

MC

Quote


#define DRIVE_SYSTEM 0
#define XAXIS_STEPS_PER_MM 160
#define YAXIS_STEPS_PER_MM 162
#define ZAXIS_STEPS_PER_MM 6000
#define EXTRUDER_FAN_COOL_TEMP 50
#define EXT0_X_OFFSET 474
#define EXT0_Y_OFFSET 80960
#define EXT0_STEPS_PER_MM 214
#define EXT0_TEMPSENSOR_TYPE 1
#define EXT0_TEMPSENSOR_PIN TEMP_0_PIN
#define EXT0_HEATER_PIN HEATER_0_PIN
#define EXT0_STEP_PIN ORIG_E0_STEP_PIN
#define EXT0_DIR_PIN ORIG_E0_DIR_PIN
#define EXT0_INVERSE 0
#define EXT0_ENABLE_PIN E0_ENABLE_PIN
#define EXT0_ENABLE_ON 0
#define EXT0_MAX_FEEDRATE 50
#define EXT0_MAX_START_FEEDRATE 15
#define EXT0_MAX_ACCELERATION 10000
#define EXT0_HEAT_MANAGER 3
#define EXT0_WATCHPERIOD 1
#define EXT0_PID_INTEGRAL_DRIVE_MAX 230
#define EXT0_PID_INTEGRAL_DRIVE_MIN 40
#define EXT0_PID_P 6.32
#define EXT0_PID_I .40
#define EXT0_PID_D 25.04
#define EXT0_PID_MAX 255
#define EXT0_ADVANCE_K 0
#define EXT0_ADVANCE_L 0
#define EXT0_ADVANCE_BACKLASH_STEPS 0
#define EXT0_WAIT_RETRACT_TEMP 150
#define EXT0_WAIT_RETRACT_UNITS 0
#define EXT0_SELECT_COMMANDS ""
#define EXT0_DESELECT_COMMANDS ""
#define EXT0_EXTRUDER_COOLER_PIN -1
#define EXT0_EXTRUDER_COOLER_SPEED 128


Quote

// ################ Endstop configuration #####################

#define ENDSTOP_PULLUP_X_MIN true
#define ENDSTOP_X_MIN_INVERTING true
#define MIN_HARDWARE_ENDSTOP_X true
#define ENDSTOP_PULLUP_Y_MIN true
#define ENDSTOP_Y_MIN_INVERTING true
#define MIN_HARDWARE_ENDSTOP_Y true
#define ENDSTOP_PULLUP_Z_MIN true
#define ENDSTOP_Z_MIN_INVERTING false
#define MIN_HARDWARE_ENDSTOP_Z false
#define ENDSTOP_PULLUP_X_MAX true
#define ENDSTOP_X_MAX_INVERTING false
#define MAX_HARDWARE_ENDSTOP_X false
#define ENDSTOP_PULLUP_Y_MAX true
#define ENDSTOP_Y_MAX_INVERTING false
#define MAX_HARDWARE_ENDSTOP_Y false
#define ENDSTOP_PULLUP_Z_MAX true
#define ENDSTOP_Z_MAX_INVERTING true
#define MAX_HARDWARE_ENDSTOP_Z true
#define max_software_endstop_r true

#define min_software_endstop_x false
#define min_software_endstop_y false
#define min_software_endstop_z true
#define max_software_endstop_x true
#define max_software_endstop_y true
#define max_software_endstop_z false
#define ENDSTOP_X_BACK_MOVE 5
#define ENDSTOP_Y_BACK_MOVE 5
#define ENDSTOP_Z_BACK_MOVE 2
#define ENDSTOP_X_RETEST_REDUCTION_FACTOR 3
#define ENDSTOP_Y_RETEST_REDUCTION_FACTOR 3
#define ENDSTOP_Z_RETEST_REDUCTION_FACTOR 3
#define ENDSTOP_X_BACK_ON_HOME 1
#define ENDSTOP_Y_BACK_ON_HOME 1
#define ENDSTOP_Z_BACK_ON_HOME 1
#define ALWAYS_CHECK_ENDSTOPS 1

// ################# XYZ movements ###################

#define X_ENABLE_ON 0
#define Y_ENABLE_ON 0
#define Z_ENABLE_ON 0
#define DISABLE_X 0
#define DISABLE_Y 0
#define DISABLE_Z 0
#define DISABLE_E 0
#define INVERT_X_DIR 0
#define INVERT_Y_DIR 1
#define INVERT_Z_DIR 0
#define X_HOME_DIR -1
#define Y_HOME_DIR -1
#define Z_HOME_DIR 1
#define X_MAX_LENGTH 301
#define Y_MAX_LENGTH 226
#define Z_MAX_LENGTH 181
#define X_MIN_POS 0
#define Y_MIN_POS 0
#define Z_MIN_POS 0

Re: Help using Repetier Firmware with RAMPS 1.4
November 24, 2014 10:44PM
Are you sure the endstop settings are correct? Try inverting. If the endstops are triggered, you're not going to see any movement. I don't have a config to share; I'm still working on my Delta printer.
Re: Help using Repetier Firmware with RAMPS 1.4
December 03, 2014 06:12PM
Ok I have gone over my endstop settings again and again. They should be correct. I'm still not getting anything out of the steppers tho, not even a buzz or a hiss.

I'm willing to bet it is something very basic and obvious to someone. Probably a matter of having the enable stepper feature in the config H wrong. Can anyone educate me on this section of code please?

Quote

#define X_ENABLE_ON 0
#define Y_ENABLE_ON 0
#define Z_ENABLE_ON 0
#define DISABLE_X 0
#define DISABLE_Y 0
#define DISABLE_Z 0
#define DISABLE_E 0
#define INVERT_X_DIR 0
#define INVERT_Y_DIR 1
#define INVERT_Z_DIR 0
#define X_HOME_DIR -1
#define Y_HOME_DIR -1
#define Z_HOME_DIR 1

Also on this particular setup I want to disable any LCD screen or SD card functions, I'm sure my settings are not correct for that either.

Quote


#ifndef SDSUPPORT  // Some boards have sd support on board. These define the values already in pins.h
#define SDSUPPORT 0
#define SDCARDDETECT 0
#define SDCARDDETECTINVERTED 0
#endif
#define SD_EXTENDED_DIR 1 /** Show extended directory including file length. Don't use this with Pronterface! */
#define ARC_SUPPORT 1
#define FEATURE_MEMORY_POSITION 1
#define FEATURE_CHECKSUM_FORCED 0
#define FEATURE_FAN_CONTROL 1
#define FEATURE_CONTROLLER 0
#define UI_LANGUAGE 0
#define UI_PRINTER_NAME "RepRap"
#define UI_PRINTER_COMPANY "Home made"
#define UI_PAGES_DURATION 4000
#define UI_ANIMATION 1
#define UI_SPEEDDEPENDENT_POSITIONING 0
#define UI_DISABLE_AUTO_PAGESWITCH 1
#define UI_AUTORETURN_TO_MENU_AFTER 30000
#define FEATURE_UI_KEYS 0
#define UI_ENCODER_SPEED 1
#define UI_KEY_BOUNCETIME 10
#define UI_KEY_FIRST_REPEAT 500
#define UI_KEY_REDUCE_REPEAT 50
#define UI_KEY_MIN_REPEAT 50
#define FEATURE_BEEPER 0
#define CASE_LIGHTS_PIN -1
#define CASE_LIGHT_DEFAULT_ON 1
#define UI_START_SCREEN_DELAY 1000

Again thanks in advance for any and all help. I really want my printer back in running condition!


{[www.bearcnc.com]} {[www.facebook.com]}
Re: Help using Repetier Firmware with RAMPS 1.4
December 04, 2014 04:07AM
Quote
wednesday
Ok I have gone over my endstop settings again and again. They should be correct. I'm still not getting anything out of the steppers tho, not even a buzz or a hiss.

I'm willing to bet it is something very basic and obvious to someone. Probably a matter of having the enable stepper feature in the config H wrong. Can anyone educate me on this section of code please?

Quote

#define X_ENABLE_ON 0
#define Y_ENABLE_ON 0
#define Z_ENABLE_ON 0
#define DISABLE_X 0
#define DISABLE_Y 0
#define DISABLE_Z 0
#define DISABLE_E 0
#define INVERT_X_DIR 0
#define INVERT_Y_DIR 1
#define INVERT_Z_DIR 0
#define X_HOME_DIR -1
#define Y_HOME_DIR -1
#define Z_HOME_DIR 1

Also on this particular setup I want to disable any LCD screen or SD card functions, I'm sure my settings are not correct for that either.

Quote


#ifndef SDSUPPORT  // Some boards have sd support on board. These define the values already in pins.h
#define SDSUPPORT 0
#define SDCARDDETECT 0
#define SDCARDDETECTINVERTED 0
#endif
#define SD_EXTENDED_DIR 1 /** Show extended directory including file length. Don't use this with Pronterface! */
#define ARC_SUPPORT 1
#define FEATURE_MEMORY_POSITION 1
#define FEATURE_CHECKSUM_FORCED 0
#define FEATURE_FAN_CONTROL 1
#define FEATURE_CONTROLLER 0
#define UI_LANGUAGE 0
#define UI_PRINTER_NAME "RepRap"
#define UI_PRINTER_COMPANY "Home made"
#define UI_PAGES_DURATION 4000
#define UI_ANIMATION 1
#define UI_SPEEDDEPENDENT_POSITIONING 0
#define UI_DISABLE_AUTO_PAGESWITCH 1
#define UI_AUTORETURN_TO_MENU_AFTER 30000
#define FEATURE_UI_KEYS 0
#define UI_ENCODER_SPEED 1
#define UI_KEY_BOUNCETIME 10
#define UI_KEY_FIRST_REPEAT 500
#define UI_KEY_REDUCE_REPEAT 50
#define UI_KEY_MIN_REPEAT 50
#define FEATURE_BEEPER 0
#define CASE_LIGHTS_PIN -1
#define CASE_LIGHT_DEFAULT_ON 1
#define UI_START_SCREEN_DELAY 1000

Again thanks in advance for any and all help. I really want my printer back in running condition!

Have you tried using the online configuration tool on the Repetier webpage this will generate the complete firmware for you just by you ticking the necessary boxes and selecting the hardware from the dropdowns.

Be aware mind of the EEprom settings you may need to do one with the eeprom set to mode 2 I think it is which will force the firmware load to overwrite the firmware (then set it to mode 1 so that any changes you make when calibrating the printer wont be lost on firmware upgrade).

HTH

Doug
Re: Help using Repetier Firmware with RAMPS 1.4
December 04, 2014 05:37PM
Thanks Doug. Yeah I had used the configuration tool and even uploaded the config H from my original Azteeg control board settings to speed things up. That's why this was so frustrating, no configuration changes made any difference and everything else appeared to check out too.

However, this afternoon at work I finally had my "Homer Simpson" moment. The endstops on my printer are dedicated NO to match the Azteeg X3 board. RAMPS of course run NC endstops. Not able to re-wire these switches tonight but I'll wager things will improve greatly this weekend when I can. (DOHP!!)

Thanks for the help folks.

MC


{[www.bearcnc.com]} {[www.facebook.com]}
Re: Help using Repetier Firmware with RAMPS 1.4
December 04, 2014 11:41PM
Ah! I am in the process of configuring my firmware for my RAMPS 1.4 and also having similar issues. I finally got my hotend and thermistor working. My motors are making a buzz sound but not rotating. I also believe it is just a configuration. Hopefully this thread will help us both.

Edited 1 time(s). Last edit at 12/04/2014 11:41PM by liquidnyquiz.
Re: Help using Repetier Firmware with RAMPS 1.4
December 05, 2014 05:01AM
Well if you're getting a hiss or a buzz out of your motors then you may only have to adjust the trim pot on the stepper driver boards ( the tiny screw head thingy on your stepper sticks). With the power off, use a small screwdriver to slowly rotate the trim pots counter clockwise till they stop. Then turn each back to clockwise a quarter turn and power up the system. If the trim pots just keep rotating without stopping you'll have to just power up and tune them as they are.

With everything powered on you should be able to slowly turn each trim pot to adjust the motors to the correct current. Be very careful to not touch anything else but the trim pot screw with the screwdriver or you could damage your driver or RAMPS/MEGA boards by causing a short.

Hopefully when I get my switches changed out I'll finally be right there with ya. Best of luck and low stress to you smiling smiley

MC


{[www.bearcnc.com]} {[www.facebook.com]}
Re: Help using Repetier Firmware with RAMPS 1.4
December 05, 2014 05:45AM
Quote
wednesday
Thanks Doug. Yeah I had used the configuration tool and even uploaded the config H from my original Azteeg control board settings to speed things up. That's why this was so frustrating, no configuration changes made any difference and everything else appeared to check out too.

However, this afternoon at work I finally had my "Homer Simpson" moment. The endstops on my printer are dedicated NO to match the Azteeg X3 board. RAMPS of course run NC endstops. Not able to re-wire these switches tonight but I'll wager things will improve greatly this weekend when I can. (DOHP!!)

Thanks for the help folks.

MC

You can invert the endstops in the firmware this will be much easier tho doesn't allow a failsafe in the event of one failing or becoming disconnected

HTH

Doug
Re: Help using Repetier Firmware with RAMPS 1.4
December 05, 2014 10:14PM
Well no go. Again inverting the endstops in the firmware made no difference. Physically changing out these endstops does nothing either and sending an M119 returns that all switches are Home. Still nothing. To top it off I accidently let the smoke out of yet another RAMPS board checking to make sure the stepper drivers were getting current..

So far in my experience, at least; RAMPS is a very poor choice for a [backup] controller no matter how inexpensive or good of a deal it seems to be. Wish I would have skipped this route months ago and bought a replacement Azteeg board from the start. It would have been cheaper in the long run and my printer may not have been down this freaking long.

MC


{[www.bearcnc.com]} {[www.facebook.com]}
Sorry, only registered users may post in this forum.

Click here to login