Hello 3D folks!
While I am building my 3D printer I thought it would be nice to have a more functional test code. So, here it is for you to try out.
The code is similar to Ramps 1.4 test code and it basically cycles thru all steppers automatically and reacts to end stops. Features are:
1) End stop test. End stop hits are indicated by LED flashes. MIN endstop is 2 flashes, MAX endstop is 1 flash. While a motor is running hitting an endstop reverses the current motor, meaning, you can leave the thing running if you have endstops installed. If a motor is running, code will only react to endstop towards which it moves. If you need to test both end stops, use STOP mode.
2) LCD, keyboard and beeper support (if you have the LCD board). Stop button pauses/resumes (in stop mode you can test the end stops too); rotating encoder knob changes direction of current motor; encoder knob press changes motor to the next one; encoder knob press and hold changes speed/feedrate (1-16).
3) PS_ON signal is supported if you need it to turn on your ATX power supply.
4) Heaters, fan - same as in Ramps 1.4 test code previously posted.
I tested the code with mechanical endstops and I'm not sure if optical endstops need the same code.
Please, enjoy!
While I am building my 3D printer I thought it would be nice to have a more functional test code. So, here it is for you to try out.
The code is similar to Ramps 1.4 test code and it basically cycles thru all steppers automatically and reacts to end stops. Features are:
1) End stop test. End stop hits are indicated by LED flashes. MIN endstop is 2 flashes, MAX endstop is 1 flash. While a motor is running hitting an endstop reverses the current motor, meaning, you can leave the thing running if you have endstops installed. If a motor is running, code will only react to endstop towards which it moves. If you need to test both end stops, use STOP mode.
2) LCD, keyboard and beeper support (if you have the LCD board). Stop button pauses/resumes (in stop mode you can test the end stops too); rotating encoder knob changes direction of current motor; encoder knob press changes motor to the next one; encoder knob press and hold changes speed/feedrate (1-16).
3) PS_ON signal is supported if you need it to turn on your ATX power supply.
4) Heaters, fan - same as in Ramps 1.4 test code previously posted.
I tested the code with mechanical endstops and I'm not sure if optical endstops need the same code.
Please, enjoy!