Redeem

End stop configuration for Redeem

Most of the Replicapes from the Kickstarter has now been delivered, and people are starting to try it out and getting into configuration. Great, but not for everyone! A lot of people seem to be having trouble with the end stopĀ configuration, so I made a video explaining how it works.

It really not that difficult if one wants to use G-codes for it. These are the G-codes you’ll need:

M574 – this connects an end stop to one or more stepper motors. Use the form “M574 X1 x_cw” if you want end stop X1 to stop stepper X from going clockwise.

M270 – Set coordinate system, this might be useful for figuring out which axis does what on delta printers.

M206 – Set offset for each of the axes. After an end stop is hit, it will move to this offset. Remember that the travel distance can be negative, in which case, the offset would most likely be negative also.

M119 – Get current end stop state. Can also be used for inverting end stops. Non-inverted is NC switches, inverted is NO switches.

M569 – Set the direction of a stepper. You could just flip the connector, but where is the fun in that?

What is not yet implemented with a G-code interface is “travel” for each of the axes. This defines the direction and length each axis should search for an end-stop. Sometimes the end-stop is not located near the 0, 0 origin of theĀ  of the bed, so you might try a negative travel value.

 

Similar Posts

8 Comments

  1. Quick question, how to I invert the endstop state with the M119 command?
    Best regards, Robin from Sweden.

    1. Hi! First of all, upgrade to latest redeem:
      apt-get update
      apt-get install redeem
      Then M119? in terminal of Octoprint for example.

  2. Hi Elias! Just got my order from thing-print, no custom problems in the US. Haven’t hooked it up to a built printer but trying it part it seems to work great. Ill start helping with the code in the next few weeks. Thanks again!

  3. Thanks for the fast reply!
    I got the endstop to work perfect.
    But there seems to be a problem with redeem.
    If I do a fresh install and just restart redeem the /dev/octoprint_1 disappear.

    And thus the Connect fails (Error: Failed to autodetect serial port, please set it manually.)
    Uploading a blank file called local.cfg does not change anything.
    As long as I don’t restart redeem everything seems to work. I can move the steppers and they stop at the endstops.
    A reboot doesn’t help. (I can reboot the entire BBB without problems before I manualy restart redeem)

    Have I missed something?
    I have some experience with Linux, but I do not have so much knowledge about the cape bussiness and octoprint/redeem inner workings.

    Thank’s!

    1. Yeah, some of the printer config files are using boolean instead of int values for decay, I’ll fix that in the updated redeem!

Leave a Reply to Robin Andersson Cancel reply

Your email address will not be published. Required fields are marked *