Hi and a happy new year to you all in the next few days. As per title. I have xprov2 board and have just received some pnp proximity sensors. My question is do I need to change them for npn type or is there a way of using the ones I have with 5 volt input ? I understand that the limit port is normally pulled down to ground rather than the opposite which the pnp type of sensors do. Also the pnp sensors I have are the normally open type. Best regards Seamus
Hi Gary and thanks for fast reply Here is a link to the sensors LJ12A3-4-Z/BY 4mm 4.0mm Inductive Proximity Sensor Detection Switch PNP DC6-36V 738598164230 | eBay Best regards Seamus
The same guy does sell the npn version but after reading and watching people on internet videos they say this one works at 5 volts rather than higher voltages which would be ideal for the xpro V2 board Best regards Seamus
This video should help, if you stick with the pnp you can invert the input function.. $6=1 (Edit!! should be $5=1 for home pins) in grbl settings.. they say 6V min but maybe 5V will work.
I think I had seen this video but became a bit confused with thinking the probe pin setting $6=1 was for When using a probe to zero x y z with a probe plate. But I’m hoping this means I can invert $6 and the pnp sensors can be used to home my xyz axis’s. So in effect I will wire The same as second option posted by Michael in this thread and just change $6=1 in grbl settings? CNC xPRO Driver Best regards Seamus
Thanks for the video Gary. This is where I’m confused by grbl settings to use prox sensors $5 - Limit pins invert, boolean By default, the limit pins are held normally-high with the Arduino's internal pull-up resistor. When a limit pin is low, Grbl interprets this as triggered. For the opposite behavior, just invert the limit pins by typing $5=1. Disable with $5=0. You may need a power cycle to load the change. NOTE: For more advanced usage, the internal pull-up resistor on the limit pins may be disabled in config.h. $6 - Probe pin invert, boolean By default, the probe pin is held normally-high with the Arduino's internal pull-up resistor. When the probe pin is low, Grbl interprets this as triggered. For the opposite behavior, just invert the probe pin by typing $6=1. Disable with $6=0. You may need a power cycle to load the change.
I'm surprised nobody corrected me on this, I was thinking more about it and the $5=1 will just decide NO (=0)vs NC (=1) operation, you still want NPN! sorry for adding to your (our) confusion ! Gary