how to change pins configuration in firmware
Posted: Sat Jul 23, 2016 5:42 pm
Hi everyone,
I'm going to share you the method to change the pins in firmware, it's quite easy and helpful.
For example, someday you find that your extruder 0 slot doesn't work, and extruder 1 slot is normal, then just by changing the pins for extruder 0 to extruder 1,
you can use the extruder 1 slot as default and your printer will work again!
First, open your firmware, find the pins.h file, open it with the wordpad, find the ultimaker part, then swap the corresponding pins settings of E0 and E1
#define E0_STEP_PIN 43
#define E0_DIR_PIN 45
#define E0_ENABLE_PIN 41
#define E1_STEP_PIN 49
#define E1_DIR_PIN 47
#define E1_ENABLE_PIN 48
to this
#define E0_STEP_PIN 49
#define E0_DIR_PIN 47
#define E0_ENABLE_PIN 48
#define E1_STEP_PIN 43
#define E1_DIR_PIN 45
#define E1_ENABLE_PIN 41
Then save and reflash the firmware.
Then you can use the extruder 1 slot for the default extruder!
And here is the modified firmware for I3 ProB(to whose E0 slot on the board was broken): If you don't know where to find the firmware and how to install the firmware, please come here:
http://www.geeetech.com/forum/viewtopic ... 20&t=17046
Similarly, you can change the pins of endstop, thermistor, heaters ,etc.
Note that it's just for GT2560, if you use other board, you should find the corresponding part in pins.h for your board and then do the modifications.
I'm going to share you the method to change the pins in firmware, it's quite easy and helpful.
For example, someday you find that your extruder 0 slot doesn't work, and extruder 1 slot is normal, then just by changing the pins for extruder 0 to extruder 1,
you can use the extruder 1 slot as default and your printer will work again!
First, open your firmware, find the pins.h file, open it with the wordpad, find the ultimaker part, then swap the corresponding pins settings of E0 and E1
#define E0_STEP_PIN 43
#define E0_DIR_PIN 45
#define E0_ENABLE_PIN 41
#define E1_STEP_PIN 49
#define E1_DIR_PIN 47
#define E1_ENABLE_PIN 48
to this
#define E0_STEP_PIN 49
#define E0_DIR_PIN 47
#define E0_ENABLE_PIN 48
#define E1_STEP_PIN 43
#define E1_DIR_PIN 45
#define E1_ENABLE_PIN 41
Then save and reflash the firmware.
Then you can use the extruder 1 slot for the default extruder!
And here is the modified firmware for I3 ProB(to whose E0 slot on the board was broken): If you don't know where to find the firmware and how to install the firmware, please come here:
http://www.geeetech.com/forum/viewtopic ... 20&t=17046
Similarly, you can change the pins of endstop, thermistor, heaters ,etc.
Note that it's just for GT2560, if you use other board, you should find the corresponding part in pins.h for your board and then do the modifications.