Welcome to Our Community

Some features disabled for guests. Register Today.

Setting up proximity sensors

Discussion in 'CNC Mills/Routers' started by Louw Lourens, Jun 17, 2024.

  1. Misterg

    Misterg Veteran
    Staff Member Moderator Builder Resident Builder

    Joined:
    Aug 27, 2022
    Messages:
    365
    Likes Received:
    282
    Do you have a multimeter? If so, check the voltage between pin9 and GND on the Arduino with the proximity sensor hooked up and triggered/not triggered.
     
  2. LouwL

    LouwL New
    Builder

    Joined:
    Jan 28, 2020
    Messages:
    23
    Likes Received:
    0
    Not triggered 4.3
    Triggred 4.7
     
  3. Misterg

    Misterg Veteran
    Staff Member Moderator Builder Resident Builder

    Joined:
    Aug 27, 2022
    Messages:
    365
    Likes Received:
    282
    Sadly the sensors aren't suitable then - they aren't capable of pulling the voltage low enough to work with the logic levels of the Arduino. This can't be fixed by fitting 'pull-up' resistors.
     
  4. LouwL

    LouwL New
    Builder

    Joined:
    Jan 28, 2020
    Messages:
    23
    Likes Received:
    0
    Ok thanks. Now I know which limit switches to use.
     
  5. LouwL

    LouwL New
    Builder

    Joined:
    Jan 28, 2020
    Messages:
    23
    Likes Received:
    0
    O by the way. With which control board will they work?
     
  6. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    15,051
    Likes Received:
    4,313
  7. LouwL

    LouwL New
    Builder

    Joined:
    Jan 28, 2020
    Messages:
    23
    Likes Received:
    0
    Hi all. I started working on my machine again. I have installed the limit switches on my y axis first. I then tested it. It works well in stopping the y axis movement when triggered. The issue I have is even when resetting and unlocking the machine on CNCjs it will only move for say 5mm and then stop. Does not matter what I do it will not move. I then have to disconnect the power and power on again. It will then move freely again.
    Anny help will be appreciated.
     
  8. Misterg

    Misterg Veteran
    Staff Member Moderator Builder Resident Builder

    Joined:
    Aug 27, 2022
    Messages:
    365
    Likes Received:
    282
    Are you trying to home the machine?
     
  9. LouwL

    LouwL New
    Builder

    Joined:
    Jan 28, 2020
    Messages:
    23
    Likes Received:
    0
    That is my plan eventually but for now I just want my hard limits to do their job.
     
  10. Misterg

    Misterg Veteran
    Staff Member Moderator Builder Resident Builder

    Joined:
    Aug 27, 2022
    Messages:
    365
    Likes Received:
    282
    No, I meant when the machine only moves 5mm - If you try and home it without one of the axes connected (and haven't set it up for that), it will lock up while it is waiting for the non-existent axis to hit the switch.

    Does it work OK with limits (hard and soft) disabled?

    Check also that you have the machine travel set correctly ($130...$132)
     
  11. LouwL

    LouwL New
    Builder

    Joined:
    Jan 28, 2020
    Messages:
    23
    Likes Received:
    0
    The machine run 100% without limits. Are you saying that I need to install all the limits first before it will work correctly?
     
  12. Misterg

    Misterg Veteran
    Staff Member Moderator Builder Resident Builder

    Joined:
    Aug 27, 2022
    Messages:
    365
    Likes Received:
    282
    You might need to install limits on all 3 axes so that the machine will home correctly (you only need one switch per axis).

    Then enable soft limits and see what happens.
     
  13. LouwL

    LouwL New
    Builder

    Joined:
    Jan 28, 2020
    Messages:
    23
    Likes Received:
    0
    Ok thanks for the advise. I will try doing this through the week.
     
  14. LouwL

    LouwL New
    Builder

    Joined:
    Jan 28, 2020
    Messages:
    23
    Likes Received:
    0
    Good morning
    So I have installed all the limit switches on all the axis. $21 is enabled. No joy. Nou I do not have any movement as the hard limit alarm is permanently on. Reset and unlock does not work......
     
  15. Alex Chambers

    Alex Chambers Master
    Moderator Builder

    Joined:
    Nov 1, 2018
    Messages:
    2,785
    Likes Received:
    1,366
    Use the troubleshooting tab in Openbuilds Control to test the limit switches. You may have to toggle the polarity of the switches if they are showing triggered all the time and not triggered if you press them.

    Alex.
     
  16. David the swarfer

    David the swarfer OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Aug 6, 2013
    Messages:
    3,462
    Likes Received:
    1,915
    and check that in mounting the switches you did not mount them upsidedown and cause a short between the circuit and the frame
     
    Alex Chambers likes this.
  17. Misterg

    Misterg Veteran
    Staff Member Moderator Builder Resident Builder

    Joined:
    Aug 27, 2022
    Messages:
    365
    Likes Received:
    282
    As Alex says, plus disable hard limits until everything else is working (homing, etc.).

    (I would advise not using hard limits full stop - soft limits work well IMHO and don't result in the machine losing position when they're triggered.)
     
  18. LouwL

    LouwL New
    Builder

    Joined:
    Jan 28, 2020
    Messages:
    23
    Likes Received:
    0

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice