Rapid Prototyping Services, Professional manufacturer of CNC Prototyping and 3D Prototyping in China. 

Configuring Endstops on Ramps 1.4 With Marlin Firmware - @section Homing

by:Tuowei     2019-09-09
Hopefully this will be a complete tutorial on configuring endstops on a 3D printer built on ramp 1.
4 Use the Marlin firmware.
I will connect to my printer and issue terminal commands using the Pronterface/Printrun host program (G-codes).
This sounds like a bit of a fuss, but it\'s just a simple program with a graphical interface.
I will use ramp 1 though.
4 and Marin firmware, this toutput is likely to be useful for most settings.
We will edit the Marlin firmware using the latest Arduino IDE.
Configuring endstops often boils down to finding a way to fail, which is why it brings so many people with problems, as many would like, and trying to fix them, just plug in the printer, hope it works.
It rarely does so.
If it doesn\'t work, it can be tempting to do something rash in order to solve the problem quickly, which in turn will aggravate the problem and make it worse.
Common fault end stop symptoms are Motor/shaft refusal to move, moving in the wrong direction or moving a little bit this way.
In short: not only is it recommended to set the end station correctly, it is mandatory before starting to configure the move (including homing)
Setting of the axis.
Our first task is to identify the pins we will use on ramp 1. 4 board.
When you look at the ramp.
4 boards with power-
Left facing plug, end-
As shown in figure shown in pin is located in the upper right corner.
We have X from left to right. min, X-max, Y-min, Y-max, Z-min, Z-
The top pin of MaxThe is the signal pin, the middle pin is the ground pin, and the pin below is 5 v/Vcc.
If we use a simple limit
As shown in the figure, the switches are used as our terminal and only 2 wires are used, and we will connect them to the signal and ground pins.
The order of their connections is not important.
The Signal and ground are two tops. most pins. The limit-
The switch has 3 legs, 1 of which is used for signals and the other 2 are marked with NC and NO, which means that it is normally closed and normally open, respectively.
I prefer to use NC, which means the current is running all the time.
When the arm on the switch is pressed, the circuit is disconnected and the response is triggered.
This also means that the fault will be registered if the wire breaks, the connector is loose or something like that.
If you do not use, the circuit is off when the arm is pressed down and the current passes through it.
This means that the alarm will not be triggered if the wire or connector comes.
A few years ago, NO was the norm because it was not sensitive to noise and therefore did not make a false positive (
End Stop trigger)
Due to the noise of the motor.
Electronic equipment is developing even on cheap ramps.
4 has made a lot of money and the noise is no longer a problem, so I recommend using the NC pins.
More advanced end stations with led or other electronics integration use 3 wires.
One for signal, ground and 5 v/vcc.
When connecting these ends, it is critical to properly connect the wires.
Signal and ground become important, not 2-
Wired switch, because if you connect the signal to gnd, gnd to the signal, and also use the 5 v/vcc pin, there is a risk of short circuit electronics.
When you weld two wires to your end, you should test the continuity of the wires using a multimeter.
I suggest you buy one if you don\'t.
Just cheap.
If you use more advanced terminals such as infrared sensors or similar products, you should test them according to the manufacturer\'s documentation.
Now that we have successfully connected our endstop, it\'s time to set up our firmware.
Turn on the spin surface and connect to the printer.
You can see in the middle of the program, marked with a blue square, I have added some custom bottom for the actions I use often, like getting Endstop status, allow cold extrusion and visible temperature on the extruder (
Vis = Danish).
You don\'t need to create any buttons, but it\'s a great tool.
Just click and type some text and the Gcode you want to use.
The code to get the Endstop status is the m119 command, which can also be written in the input box t in the lower right corner by pressing enter or send, see image and execution.
First make sure there is no trigger end.
Move the Axis if needed.
If all endpoints have the same state, it would be much easier to do so.
You will issue the M119 command when everything is ready.
After the command is issued, you will most likely see some end in the open state and some end in the open state. The end of being on is likely to be configured correctly when the other end block is defective, activated by the axis, or the firmware needs to be corrected.
Now that we have the status, we will check if all endstop in the open state is working properly.
When issued in the M119 command, you can manually activate them one by one.
If the status does not change when activated, it is most likely due to poor pin
Wiring on the ramp, but it can also be firmware.
If you have any terminal that is not normal, turn off the printer, unplug the USB and check the pin-connection.
Correct as nesccesary.
Continuity can also be checked again using a multimeter.
List an endstops list that shows that staus is triggered when there is no trigger, or just keep the pronterface on to see the output.
Open the configuration.
H file/sketch/tab and scroll down to @ section homing-
About Line 330.
Make sure there are no 2/in front of # define endstopup //.
If so, please remove them, upload the firmware to the printer, and redo the tests we just did in Pronterface.
Note: Remember that you have to disconnect in Pronterface before uploading the firmware, otherwise you will encounter an error in Arduino IDENow. . .
\"And change the value from false to true or something, see the image, because the end output fires when it is not triggered.
Upload the firmware and re-test it in Pronterface. I changed my Z-
Min changes from false to true, now show correct in Pronterfacesee image.
Congrats that you have just set up one of the most important features of the printer.
You don\'t actually need to use endstops, but when you use endstops, you really need to configure them correctly before you go ahead and set the motion of your printer.
I will explain the configuration of the movement direction, return direction and travel limit after return.
Update: you can find here: motion configuration on ramp 1.
Custom message
Chat Online
Chat Online
Chat Online inputting...