1. Do not share user accounts! Any account that is shared by another person will be blocked and closed. This means: we will close not only the account that is shared, but also the main account of the user who uses another person's account. We have the ability to detect account sharing, so please do not try to cheat the system. This action will take place on 04/18/2023. Read all forum rules.
    Dismiss Notice
  2. For downloading SimTools plugins you need a Download Package. Get it with virtual coins that you receive for forum activity or Buy Download Package - We have a zero Spam tolerance so read our forum rules first.

    Buy Now a Download Plan!
  3. Do not try to cheat our system and do not post an unnecessary amount of useless posts only to earn credits here. We have a zero spam tolerance policy and this will cause a ban of your user account. Otherwise we wish you a pleasant stay here! Read the forum rules
  4. We have a few rules which you need to read and accept before posting anything here! Following these rules will keep the forum clean and your stay pleasant. Do not follow these rules can lead to permanent exclusion from this website: Read the forum rules.
    Are you a company? Read our company rules

Hall Effect (Magnetic) to replace Microswitch - Advice needed.

Discussion in '3D Printing' started by Archie, Jun 6, 2017.

  1. Archie

    Archie Eternal tinkerer

    Joined:
    Dec 31, 2014
    Messages:
    1,081
    Location:
    Wollongong, NSW, AU
    Balance:
    3,796Coins
    Ratings:
    +1,379 / 4 / -0
    My Motion Simulator:
    2DOF, DC motor, JRK
    Hi Everyone,

    Has anyone replaced the standard Microswitch Endstop on printers with a Hall effect sensor?

    Looking at my board (Geeetech G2S Pro GT2560) the Hall effect sensor will need 5V from somewhere and then the other two connection would connect to where the Micro switch currently does.

    Anyone have experience replacing micro switches with Hall effect sensors? What are the steps?

    TIA! :D
  2. RandomCoder

    RandomCoder Active Member Gold Contributor

    Joined:
    Feb 19, 2017
    Messages:
    185
    Occupation:
    Control Engineer
    Location:
    UK
    Balance:
    1,674Coins
    Ratings:
    +142 / 0 / -0
    Whilst it's more than possible to do this you should consider that the function of stopping the motor will be done through software instead of hardware!

    By this I mean that the end of travel limits will be fed into your controller as inputs and it's the function of your program detecting the inputs that will ultimately stop the motor. But consider for one moment that the reason for your motor going over travel is because the program has locked up and is no longer responding, in this scenario your inputs will be ignored and rendered useless.

    It is for this reason that hardwired physical contacts are preferred as they are considered fail safe.

    A lot of industrial systems will use both, the first set of limits are considered 'soft limits' and will allow the drive to recover without manual intervention. Another set of limits slightly closer to the end of travel are considered 'hard limits' and if triggered usually require manual intervention to reset the drive.
  3. Archie

    Archie Eternal tinkerer

    Joined:
    Dec 31, 2014
    Messages:
    1,081
    Location:
    Wollongong, NSW, AU
    Balance:
    3,796Coins
    Ratings:
    +1,379 / 4 / -0
    My Motion Simulator:
    2DOF, DC motor, JRK
    Thanks @RandomCoder - 3D printers rely on Firmware for all the endstops, so regardless of whether its a mechanical switch or an electronic switch, the Firmware is still looking for a H or L state for the switch. The Microswitch is not in line with the power of the servo's. It's all software controlled.
  4. RandomCoder

    RandomCoder Active Member Gold Contributor

    Joined:
    Feb 19, 2017
    Messages:
    185
    Occupation:
    Control Engineer
    Location:
    UK
    Balance:
    1,674Coins
    Ratings:
    +142 / 0 / -0
    That's ok if the risk of personal injury or mechanical damage is limited, but consider that an electrical fault could happen in which the output becomes stuck on or the motor driver shorts. Then there is no way of stopping the motor if purely software controlled.

    It basically boils down to the level of risk and whether or not you need to be certain that the motor can be disconnected in the event of an over travel fault. Maybe the stall current would be sufficient to trip some over current protection and you can rely on this instead?
  5. Alexey

    Alexey Well-Known Member

    Joined:
    Sep 23, 2014
    Messages:
    452
    Occupation:
    Electronics Technician
    Location:
    Adelaide, Australia
    Balance:
    8,061Coins
    Ratings:
    +620 / 2 / -0
    My Motion Simulator:
    3DOF, DC motor, Arduino
    Out of curiosity, why do you need to replace the micro switches with hall effect switches?
  6. Archie

    Archie Eternal tinkerer

    Joined:
    Dec 31, 2014
    Messages:
    1,081
    Location:
    Wollongong, NSW, AU
    Balance:
    3,796Coins
    Ratings:
    +1,379 / 4 / -0
    My Motion Simulator:
    2DOF, DC motor, JRK
    I have a Geeetech G2S Pro Delta printer and over time the M3 screws that are the "Endstop triggers" become loose, so when they home they slowly (over time) turn back (unscrew) and affect the Delta Radius / Homing height.

    Removing the screws and going to something that is repeatable all the time / every time saves me having to recalibrate.

    I've decided to go with Opto Endstops. I will replace the screws with a static metal rod and tune the Optical end stops to trigger at the same point on all three towers.

    I'll put what I did in this thread for future reference in case anyone is interested.

    PS - Anyone thinking of getting a 3D Printer?
    Stick with the standard Cartesian. Don't bother with Delta's. They look cool as they print (like a stewart platform on 3 axis) but suck at keeping "in tune" :)
  7. Archie

    Archie Eternal tinkerer

    Joined:
    Dec 31, 2014
    Messages:
    1,081
    Location:
    Wollongong, NSW, AU
    Balance:
    3,796Coins
    Ratings:
    +1,379 / 4 / -0
    My Motion Simulator:
    2DOF, DC motor, JRK
    @RandomCoder - You do realise I'm talking about a 3D printer?? :)
  8. RandomCoder

    RandomCoder Active Member Gold Contributor

    Joined:
    Feb 19, 2017
    Messages:
    185
    Occupation:
    Control Engineer
    Location:
    UK
    Balance:
    1,674Coins
    Ratings:
    +142 / 0 / -0
    @Archie I do now. :oops:
    For this purpose I'm sure your proposed solution will be more than adequate.