Close



Results 1 to 7 of 7
  1. #1
    Staff Engineer old man emu's Avatar
    Join Date
    Oct 2013
    Location
    Narellan, New South Wales, Australia
    Posts
    912

    Auto-leveling - Wiring in the Z Probe Endstop Switch

    I have been modifying my i3 to allow me to use the Marlin update with auto leveling of the bed. I attached the parts that had to be printed, the servo and the micro-switch, and wired up the micro-switch to the RAMPS board. Since I wanted the protection of an endstop switch to prevent the extruder crashing into the printer plate, I kept the original Z-axis endstop switch.

    I wanted to print something before I had the chance to upgrade the Marlin firmware, but I found that the original end stop switch would not stop the movement of the Z axis until I cut the connection between the Z probe switch and the RAMPS board. Here is a sketch of how these switches were wired up:

    Z-Stop Switches.jpg

    Have I wired the two switches correctly? If this is the correct way to wire them up, then I have forgotten to set the trigger rod correctly, and that is not an electronics problem.

    Old Man Emu

  2. #2
    Super Moderator RobH2's Avatar
    Join Date
    Nov 2013
    Location
    Baltimore, MD
    Posts
    897
    Add RobH2 on Thingiverse
    From your drawing I don't see that you are getting that "double" protection I think you are after. If the switch with the lever trips first it will not stop the machine and it will still keep going. These switches by default are allowing current to flow and the switch without the lever is still completing the circuit. Until it trips the machine will keep moving.

    The color of the wires does not matter here. The switches are just creating continuity.

    I believe that what you need is to wire them in series so that if either switch trips, the circuit is broken. I've provided a drawing of that. The switches can go in any order. The lever one does not need to be on the end.

    Untitled-1.png
    Last edited by RobH2; 06-14-2014 at 10:29 AM.
    Bambu P1S/AMS
    NVision4D http://nvision4d.com

  3. #3
    Super Moderator Roxy's Avatar
    Join Date
    Apr 2014
    Location
    Lone Star State
    Posts
    2,182
    Quote Originally Posted by RobH2 View Post
    From your drawing I don't see that you are getting that "double" protection I think you are after. If the switch with the lever trips first it will not stop the machine and it will still keep going. These switches by default are allowing current to flow and the switch without the lever is still completing the circuit. Until it trips the machine will keep moving.

    The color of the wires does not matter here. The switches are just creating continuity.

    I believe that what you need is to wire them in series so that if either switch trips, the circuit is broken. I've provided a drawing of that. The switches can go in any order. The lever one does not need to be on the end.

    Untitled-1.png
    I concur. If you had been using the switches in a 'Normally Open' configuration, the first way would be correct. (and the firmware would have to be configured for that too)

    But if you are using the switches in 'Normally Closed' mode, then they need to be in series so that either switch opening up breaks the circuit.

  4. #4
    Staff Engineer old man emu's Avatar
    Join Date
    Oct 2013
    Location
    Narellan, New South Wales, Australia
    Posts
    912
    Thanks for that. I want them to be wired N/O as that is the way the original switch was wired. I'll run the wires again so that the two switches are wired in series.

    OME

  5. #5
    Staff Engineer printbus's Avatar
    Join Date
    May 2014
    Location
    Highlands Ranch, Colorado USA
    Posts
    1,437
    Add printbus on Thingiverse
    You meant to say N/C, right? Wiring two N/O switches in series won't work. Then BOTH switches would have to be activated in order for RAMPS to see a change.

  6. #6
    Staff Engineer old man emu's Avatar
    Join Date
    Oct 2013
    Location
    Narellan, New South Wales, Australia
    Posts
    912
    I'm so confused!!

    I will wire them as RobH2 and Roxy suggest.

    OME

  7. #7
    Super Moderator Roxy's Avatar
    Join Date
    Apr 2014
    Location
    Lone Star State
    Posts
    2,182
    Quote Originally Posted by old man emu View Post
    I'm so confused!!

    I will wire them as RobH2 and Roxy suggest.

    OME

    Get them wired up as suggested... And then we can take a volt meter to it and it will make perfect sense. Most micro-switches are standardized. If you are using the two outside pins, you are using the switch in the 'normally closed' settings. When the lever gets pressed, the switch will be 'open'. So with two switches in series, they both will be conducting current unless one (or more) of them's lever gets pressed.

    With a volt meter, it will be very easy to probe the circuit and you will understand what is going on very quickly.
    Last edited by Roxy; 06-15-2014 at 05:06 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •