Thank you for explaining this, saved my day. My machine is all wired up with the same brand of Sensors.
@georgejaxxin49574 жыл бұрын
Thanks for this, I'm not up to speed with this, however, after messing around for 3 days then I watched this and bingo , even worked out who BoB is
@CLGPerformance2 жыл бұрын
I would put a voltage divider differently so the switching transistor wouldnt load up with current and heat up or damage the control board. One resistor off the end of the black wire and at the end of that resistor add another resistor and connect that to the ground. Saves the switching transistor from loading up in current and keeps the sensor from getting damaged as well as the control board |GND| | ---|sensor out (BLK)|---------|R|--------------|R|---------|Home Switch Control board|
@warlockd6 жыл бұрын
I thought of this and its a great idea for a cnc. My only problem is that alot of these sensors eat like 300ma. Having 3 brings it up to 900ma of power. Compare that to an optical sensor and eh. I don't know though. I really like the idea of using them instead of other sensors.
@kephranet7 жыл бұрын
If you connect a 5 volt zener diode from your output to ground, you will not need a different resistor for each supply voltage. Put your resistor in series between your sensor output and the zener. This clamps the out voltage at the resistor/zener junction to 5 volts.
@martinbarfoed50407 жыл бұрын
Thanks for the comment. I may add this option to a future video.,. I'm also preparing one where I use opto couplers to separate the voltages.
@rok14755 жыл бұрын
Rockwell Automation published a diagram of how to connect NPN and PNP sensors in series and in parallel. In parallel connection a diode is installed between each sensor and the load. Breakout boards that have built-in pull up resistors will only work with current sinking (NPN) sensors.
@martinbarfoed50405 жыл бұрын
Thanks for your comment.
@jwerry583 жыл бұрын
With a NPN sensor wouldn't you connect the resister between the Black wire and +Volts? Your diagram shows it connected to -Volts and that would be correct for a PNP sensor.
@cnc_workbench3 жыл бұрын
Hi Martin, does this work to use 24v proximity sensors with Pokeys57CNC board for limits and homing? a 3Kohm for 1 sensor and 1.5Kohm for 2?
@martinbarfoed50403 жыл бұрын
Hi Neil, PoKeys input are for 5v only - so you need pull down resistor or Zeener diode to use w 24v signal. Check the output with voltmeter before connecting to the controller
@ricstarred79935 жыл бұрын
Many Thanks-this is great info
@johnward58904 жыл бұрын
Could you hook up two proximity switches in series so each was getting 6 volts from the 12 volt power supply and then use the 6 volts for the breakout board?
@steveu2355 жыл бұрын
If my breakout board is rated 12-24v on the end of the board where i am connecting the black signal wire then should i put a resistor or just leave it?
@floydgilbertjr35455 жыл бұрын
Hi Merry Christmas question I'm using 6 NPN NO proximity sensors and a 12 volt power supply 1 for X axis, 1 for Z axis, and 4 for Y axis 1 ea for Y- and Y+ and 2 Y Slaved When installing to my Break Out Board I have only 5 Inputs on the Board due I put 4 together for theY Axis on 1 input?
@martinbarfoed50404 жыл бұрын
Sorry for the late reply! I hope you found a solution. You can put the sensors in parallel - no problem. I have e.g. the Y+ and Y- in parallel sharing only one input. Same for X
@skorkmaz6 жыл бұрын
Great video. Thanks.
@franktrapani48045 жыл бұрын
very good explanation but can you tell me how to wire it to run a digital tachometer to check rpm of machine spindle thank you
@martinbarfoed50404 жыл бұрын
I havent tried that. Some controllers have a separate input for encoders to control. One I know is Acorn from Centroids
@airgunningyup4 жыл бұрын
i think ill go with 1k ohm , need to step from 9v ( 9.2 ) to about 6v, and 10k might drop me well below 5..thank you soo much.
@gasparigi5 жыл бұрын
Hello Martin, nice educative video. Thanks. The output is digital or analog? Digital, for example 12V or 0V? Or it can be analog any value between 0-12V detecting distance too? I am trying to detect if target is moved from some fixed position.
@martinbarfoed50405 жыл бұрын
This type of switches are digital. Either on or off. Not sure what sort of sensor that will do what your are looking for. Ultrasonic maybe?
@tracksntreadslou7 жыл бұрын
Great Video Martin..I am in the process of changing my chinese CNC router over to using Mach 3 and a ESS smoothstepper with a C25 BOB .I Need to change the NPN NO proximity voltage from 24 volt to 5 volt ..When using different 24v supplys with a different amperage is it possible that the value of the resistor needed will change as well? ..How many amperes are you testing with your unit?
@martinbarfoed50407 жыл бұрын
I would not expect that a different amperage of the PSU will influence the resistor you need to use. But for safety - do a test using a voltmeter before connecting to you BOB.
@charleshaerle84986 жыл бұрын
Nice Video. Can you do a video on connecting pnp nc switches in SERIES. My plc has limited inputs and it would be awesome to just use 1 input pin. Everybody shows just one sensor or they wire them in parallel. I have 4 wire pnp no/nc sensors. I want to send 5 volts through until one of the sensors sense metal and then open the circuit to ground.
@tstvideo17 жыл бұрын
Nicely explained. I have a single axis machine ( X axis) I want to connect inductive proximity switches NPN type( LJ12A3-4-Z/BX) at the ends as limit switches. i am using Arduino Uno & a stepper motor. Where & how do I hook up the switches? Your help will be appreciated.
@martinbarfoed50407 жыл бұрын
You will need to connect the sw to some power - typically > 6V. The signal connects to one of the digital inputs on Arduino via a pull down resistor. I think you can use same procedure as Im doing the this video to find one that fit as you will also need ca 5V on the input
@nielsenminibio8 жыл бұрын
Hej Martin. Tusind tak for gennemgangen. Er der en måde at regne sig frem til et resultat, da en af mine venners CNC kører på 20V?
@martinbarfoed50408 жыл бұрын
It's unfortunately difficult to calculate as we do not have data on the internal components in the switch. So that why I use the experimental method. If you would like to see how to calculate you may look here: www.ti.com/lit/an/slva485/slva485.pdf A guess for you 20V PSU would be to around 4k
@thechriskelly128 жыл бұрын
are they normally closed ones and switch to open when the metal object within the sensing distance was thinking of getting some normally open ones and using them to switch a transistor or mosfet for my grbl shield.
@martinbarfoed50408 жыл бұрын
Normally Closes (NC) switches will be active when no metal is near - this means that the LED is lit and you get signal out (GND for NPN and Vcc for PNP)Same story for Normally Open (NO). They will become active when metal is coming close enoygh to trigger resulting in signal out (GND for NPN and Vcc for PNP). I'm working on a video comparing all four types of switches.
@jwerry583 жыл бұрын
@@martinbarfoed5040 Here you say 'Normally Closes (NC) switches will be active when no metal is near - this means that the LED is lit and you get signal out' but in your other video (NPN & PNP NO NC Proximity Switches - experiments with function and Pull Down Resistors) you show the NPN NC as INACTIVE LED ON and ACTIVE LED OFF. So Which is it?
@balajithirumalai10077 жыл бұрын
which proximity sensor are you using? .i need it please respond me ASAP.can u suggest me a binary output providing proximity sensor
@martinbarfoed50407 жыл бұрын
Im using NPN NO. Maybe you can use this video kzbin.info/www/bejne/hWLOgJuVpNWNsKM
@kampsmwila42587 жыл бұрын
am trying to find a sensor that gives different analog signal outputs when it detects different types of metals at the same distance..need it for a coin counting system.that should be able to count different denominations of coins depending on the type of metal.your quick response will highly be appreciated.
@martinbarfoed50407 жыл бұрын
I do not know any sw that will do that. I hope you can find help somewhere. Good luck
@anneliedstrom28907 жыл бұрын
do you connect the ground from the PSU to the breakoutboard to?
@martinbarfoed50407 жыл бұрын
Yes, I did
@ikecobey62687 жыл бұрын
Nice video if ever I used 12 volts and I need to pull down in 5 volt what value of resistor I need to get 5 volts
@martinbarfoed50407 жыл бұрын
Ike Cobey It must be around 10k. See video at ca 4:40
@AdaptingCamera3 жыл бұрын
Why are you doing this with a resistor? You should use a Zener diode and a small resistor. That could give you 5.1V or 4.7 volt out if that's what you want.
@urgamecshk7 жыл бұрын
How bad is it to only supply them 5-6V from the start?
@martinbarfoed50407 жыл бұрын
Julius Jahn They are typically rated for 6-36V. But it seems that there is some loss of accuracy if you are in the lower end.
@Jono66717 жыл бұрын
most sensors I've come across are rated for 10-30v DC, so you would have to drop the voltage or interface them some other way
@derbemoges21193 жыл бұрын
Continuous glow of light problem what is the problem please tell me
@martinbarfoed50403 жыл бұрын
If you connect only plus and GND and you have the LED light up the switch is most likely broken
@PURGE-30003 жыл бұрын
You don’t need resistor if you switch a relay or 24V contactor to power a motor.
@MyName19793 жыл бұрын
Where is the CNC?
@martinbarfoed50403 жыл бұрын
In another video :-)
@dronesvisionsaeriennes4 жыл бұрын
Good evening Martin, excellent video, I understand how to play on the output voltage .... but I do not understand why when I place my sensor with the orange nose down, the earth, it lights up so detect, I also have the impression that it detects my hand that I approach on the aluminum body ..... but nothing happens when I approach the iron or other material ... on the orange nose ...? ?? it is connected to a control card according to the following diagram ... Black for signal, Blue for GnD, Brown for + 12V ... Here is the link of my sensor ... fr.aliexpress.com/item/32748267115.html?spm=a2g0s.9042311.0.0.27426c37ggjUer Thanks for your help... Philippe
@martinbarfoed50404 жыл бұрын
Are you sure what type of sensor it is? To me it sounds like it could be a capacitive sensor. The one I'm working with in thes video is Inductive.
@dronesvisionsaeriennes4 жыл бұрын
@@martinbarfoed5040 yes, it's this following.... fr.aliexpress.com/item/32748267115.html?spm=a2g0s.9042311.0.0.27426c37wRntRd but i don't understand where the issue is...do i need to wire it with another way...? thank's a lot