Welcome to Our Community

Some features disabled for guests. Register Today.

NPN Normally Open Inductive Sensor - will signal fry blackbox

Discussion in 'Controller Boards' started by StuartD, Dec 31, 2020.

  1. StuartD

    StuartD New
    Builder

    Joined:
    Mar 4, 2018
    Messages:
    3
    Likes Received:
    2
    Hello, I intend to connect in a 6-36V NPN NO Inductive Sensor to the Blackbox. The vendor has provided the following wiring diagram:

    upload_2020-12-31_18-5-36.png
    I have tested the above wiring diagram using an LED as the load albeit with a low voltage (6V) to avoid frying the LED. This has proved the sensor works: the LED lights when a iron object (screwdriver) is placed close to the sensor.

    With respect to the Blackbox I am assuming that the load shown in the above diagram will be implemented as some sort of switch within the blackbox and as such I should be able to directly wire the sensor to one of the limit switch inputs, i.e. the sensor's brown wire to +VE, blue wire to ground and the black wire to signal without any further electronic components. I have set the Blackbox jumper to 24V and fully expect it to work, however, I have a nagging doubt that when the sensor fires it may fry the Blackbox. Please can you confirm whether my concerns are valid or will it just work?

    Many thanks,

    Stuart
     
    William Hughes likes this.
  2. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    15,070
    Likes Received:
    4,316
    Blackbox's limit inputs are protected against high voltages, exactly to support inductives :)
    I run SN-04 Inductive switches on my Plasma for example

    Correct

    Correct as the switches themselves dont work on a 5v supply

    The only wiring mistake to watch out for is shorting V+ to GND.
     
    William Hughes likes this.
  3. Rob Taylor

    Rob Taylor Master
    Builder

    Joined:
    Dec 15, 2013
    Messages:
    1,470
    Likes Received:
    749
    Black to +, blue to -, 10k resistor between brown and black. That's how I'd do it anyway.
     
  4. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    15,070
    Likes Received:
    4,316
    Not needed!
     
  5. Rob Taylor

    Rob Taylor Master
    Builder

    Joined:
    Dec 15, 2013
    Messages:
    1,470
    Likes Received:
    749
    Oh, nice, well that's exciting. I generally just err on the side of "when in doubt, current limit".
     
    Peter Van Der Walt likes this.
  6. StuartD

    StuartD New
    Builder

    Joined:
    Mar 4, 2018
    Messages:
    3
    Likes Received:
    2
    Peter, thank you both for your reply and the promptness of your reply. It's exactly what I assumed; I just didn't want to gamble the Blackbox without asking first. Thank you again and have a very happy new year.
     
    Peter Van Der Walt likes this.
  7. JStewieDesigns

    Builder

    Joined:
    Jan 4, 2021
    Messages:
    37
    Likes Received:
    12
    So, I also had this question and they pointed me out to this thread. So should we use the NPN or is the PNP more suited for this?
     
  8. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    15,070
    Likes Received:
    4,316
    I would go to NPN, as tested, known working.
     
  9. JStewieDesigns

    Builder

    Joined:
    Jan 4, 2021
    Messages:
    37
    Likes Received:
    12
    So on the NPN NO inductive switch (black & brown) would go to V+ and (blue) to GND. Nothing on the Signal terminal?
     
  10. JStewieDesigns

    Builder

    Joined:
    Jan 4, 2021
    Messages:
    37
    Likes Received:
    12
    Or am I just having a brain fart and it's still a 3 wire setup with 24v+ going to (brown), GND going to (blue), and (black) going to SIG like this inductive speed sensor I just put on my Grizzly metal lathe? Screenshot_20210104-085109_Amazon Shopping.jpg
     
  11. StuartD

    StuartD New
    Builder

    Joined:
    Mar 4, 2018
    Messages:
    3
    Likes Received:
    2
    Sorry for the late reply - work has recommenced and gotten in the way! The sensors I'm using are NPN normally open and I'm connecting them into an OpenBuilds BlackBox and so can take power from the box itself. That said I haven't got them working: I can see the light (on the sensor) go on when a screwdriver is placed in close proximity to a sensor but no alert is being seen by the software ($5 = 0).
     
  12. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    15,070
    Likes Received:
    4,316
    Alerts (alarms) also relates to Hard Limits parameters etc. Rather, use the Troubleshooting tab in CONTROL to test Limits

    upload_2021-1-4_21-28-13.png
     
  13. JStewieDesigns

    Builder

    Joined:
    Jan 4, 2021
    Messages:
    37
    Likes Received:
    12
    So my black box shipped out today. I'd like to start browsing for inductive switches. Nobody replied to my last comment with picture so, have we found out if the NPN NO is the way to go and are ya'll only using 2 wires at the BB or 3 wires?
    I know that previously when I had a Shapeoko XXL cnc router it just had locations for XYZ and Feed Hold which were a 2 pin header per axis that were just NO contacts. I don't believe there was any voltage on any of this pins. Using an 3 wire inductive switch is a little newer to me. I get needing voltage for the on board led for the switch and a ground, but then you have the signal wire. So is that the whole thing behind NPN or PNP that determines whether the signal wire becomes a ground or v+ when triggered?
     
    #13 JStewieDesigns, Jan 5, 2021
    Last edited by a moderator: Jan 5, 2021
  14. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    15,070
    Likes Received:
    4,316
    JStewieDesigns likes this.
  15. JStewieDesigns

    Builder

    Joined:
    Jan 4, 2021
    Messages:
    37
    Likes Received:
    12
    This will be going on my Onefinity cnc router. No v-rails. So I'll be making custom brackets. I'm not too fond of the controller it came with and I'm really liking all the features of the black box which is why I'm going that route.
     
    Peter Van Der Walt likes this.
  16. Glen.G

    Glen.G New
    Builder

    Joined:
    Mar 23, 2023
    Messages:
    31
    Likes Received:
    1
    Good morning,

    I have sn04 pnp inductive sensors, and a BlackBox X32 can you tell me about the wiring because the one displayed in your documentation is not good, my sensors stay on and do not detect the axes...

    Thank you.
     
  17. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    15,070
    Likes Received:
    4,316
    Refer the documentation and note that we only support NPN type (yours is PNP)
     
  18. Glen.G

    Glen.G New
    Builder

    Joined:
    Mar 23, 2023
    Messages:
    31
    Likes Received:
    1
    yes sorry, I made a mistake my sensors are NPN .... I relied on the documentation but I have a problem my sensors stay on and I don't know if I should modify via the blackbox or if I should change the wiring as on the documentation it is well said to ask before anything, well I ask ;)
     

    Attached Files:

  19. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    15,070
    Likes Received:
    4,316
    If its NPN, it should work, provided you
    A) have the correct Grbl Settings ($5=? In your current Grbl Settings?)
    B) set the Limits V+ jumper to correct voltage for your sensors
    C) wiring correct (color coding may differ between vendors)
     
  20. Glen.G

    Glen.G New
    Builder

    Joined:
    Mar 23, 2023
    Messages:
    31
    Likes Received:
    1
    I don't understand the $5? Is this not noted in your documentation?
     
  21. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    15,070
    Likes Received:
    4,316
    See the Grbl/grblHAL wiki's for documentation on Firmware parameters

    As yours is NPN-NC (not just NPN) you may need either one of the following $5=0 or $5=7 (For BlackBox X32)
    Try each in turn until Troubleshooting tab says they all work as expected.

    CONTROL > Grbl Settings tab > Scroll down to $5 Limits Invert > If its currently 7, try 0. If its currently 0, try 7, etc. Save and Reset
     
  22. Glen.G

    Glen.G New
    Builder

    Joined:
    Mar 23, 2023
    Messages:
    31
    Likes Received:
    1
    Good morning,

    Here they work but I have a problem on the Z axis I get the message that the Z axis is stopped by the sensor but impossible to bring the axis back, the message is repeated all the time suddenly my axis Z is blocked... anyone have an idea???

    THANKS
     
  23. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    15,070
    Likes Received:
    4,316
    One of two possibilities, depending on the following question:

    1) If you turn off the machine, move it away from the switch manually, power up and reconnect, does it still go into an alarm loop? (before hitting the sensor)
    2) Or only right after hitting the sensor?
     
    Glen.G likes this.
  24. Glen.G

    Glen.G New
    Builder

    Joined:
    Mar 23, 2023
    Messages:
    31
    Likes Received:
    1
    the alarm stops after manual removal of the sensor
     
  25. Glen.G

    Glen.G New
    Builder

    Joined:
    Mar 23, 2023
    Messages:
    31
    Likes Received:
    1
    Good morning

    Could you think about my problem?

    THANKS
     
  26. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    15,070
    Likes Received:
    4,316
    That points to the sensor itself.

    Would you consider our proven switches instead? Better repeatability, reliability, easier to use and would actually work :)

    Checkout Xtension Limit Switch Kit
     
  27. Glen.G

    Glen.G New
    Builder

    Joined:
    Mar 23, 2023
    Messages:
    31
    Likes Received:
    1
    I think that even if I would place your limit suitche the problem that the alarm does not stop will continue, and my budget is exploding with the purchase of the ratrig kit .... but in the future I think well ;-)
     
  28. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    15,070
    Likes Received:
    4,316
    But you report it does stop when you unplug your sensor.
     
  29. Glen.G

    Glen.G New
    Builder

    Joined:
    Mar 23, 2023
    Messages:
    31
    Likes Received:
    1
    yes if I unplug the sensor then it resumes, and therefore time for the sensor to detect the axis I no longer know how to move it so I would also always have to unplug the sensor ... because this is the kind of problem I don't think it's must come from the sensor itself?

    Is there a way to disable this type of alarm?
     
  30. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    15,070
    Likes Received:
    4,316
    Yes. Set Hard Limits to Disabled in Grbl Settings, but would have liked to work through it so we are sure its not hiding some other issue
     

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