Hello Guest it is May 26, 2019, 07:46:47 PM

Author Topic: Prox Switches  (Read 4833 times)

0 Members and 1 Guest are viewing this topic.

Prox Switches
« on: February 06, 2010, 05:52:22 AM »
Can anyone tell me how to replace mechanical limit switches with prox switches and wire them to a breakout board?

Offline Tweakie.CNC

*
  • *
  •  7,765 7,765
  • Super Kitty
    • View Profile
    • Tweakie.CNC
Re: Prox Switches
« Reply #1 on: February 06, 2010, 08:12:42 AM »
Have you decided on the type of proximity switches you want to use (make and model) ?.

Tweakie.
Success consists of going from failure to failure without loss of enthusiasm.  Winston Churchill.
Re: Prox Switches
« Reply #2 on: February 06, 2010, 09:09:32 AM »
I have some 6 - 24 volt PHD (source- PNP) prox switches that I want to use on some pneu. cylinders to indicate that they are extended or retracted. They have 3 wires :  brown (+DC), blue (-DC), and black (to load and then grd.) I am just not sure how to wire them in and I don't want to do trial and error and create smoke!

Offline Tweakie.CNC

*
  • *
  •  7,765 7,765
  • Super Kitty
    • View Profile
    • Tweakie.CNC
Re: Prox Switches
« Reply #3 on: February 06, 2010, 09:41:40 AM »
With this type of sensor you cannot wire it directly to your BOB.
The easiest solution would, I think, be to operate the device at 12 Volts and connect the output (black) wire to a 12 Volt relay coil with the other side of the coil connecting to ground (blue) then, just in case there isn't one already fitted within the sensor, connect a diode across these relay coil connections (polarity + to black / - to blue). You can then use the relay contacts N.O. or N.C. (as you choose) to connect to your BOB and ground.

Tweakie.
Success consists of going from failure to failure without loss of enthusiasm.  Winston Churchill.
Re: Prox Switches
« Reply #4 on: February 06, 2010, 09:50:54 AM »
Thanks so much for your help. I assume that I can pick up a diode at my local Radio Shack store. Is there any specific value or size that I need to ask for?

Offline Tweakie.CNC

*
  • *
  •  7,765 7,765
  • Super Kitty
    • View Profile
    • Tweakie.CNC
Re: Prox Switches
« Reply #5 on: February 06, 2010, 10:05:58 AM »
The diode doesn't have to be anything special a 1Amp type 1N4004 or similar would do just fine. (It just stops the back emf from the coil damaging the PNP transistor when the load is disconnected).

Tweakie.
Success consists of going from failure to failure without loss of enthusiasm.  Winston Churchill.
Re: Prox Switches
« Reply #6 on: February 07, 2010, 12:07:11 PM »
With this type of sensor you cannot wire it directly to your BOB.
The easiest solution would, I think, be to operate the device at 12 Volts and connect the output (black) wire to a 12 Volt relay coil with the other side of the coil connecting to ground (blue) then, just in case there isn't one already fitted within the sensor, connect a diode across these relay coil connections (polarity + to black / - to blue). You can then use the relay contacts N.O. or N.C. (as you choose) to connect to your BOB and ground.

Tweakie.

Why would he not be able to just use series current-limiting resistors and clamping diodes to the +5V on the BOB, or just a resistor divider?  Relays seem like overkill.

Regards,
Ray L.
Regards,
Ray L.
Re: Prox Switches
« Reply #7 on: February 07, 2010, 07:27:05 PM »
Hi Ray:
Could you draw me a schematic of what you are referring to? Thanks.
Charlie
Re: Prox Switches
« Reply #8 on: February 07, 2010, 08:06:38 PM »
Hi Ray:
Could you draw me a schematic of what you are referring to? Thanks.
Charlie

This problem is typically handled by putting a resistor in series with the 12V signal, to limit current into the BOB or PC.  Just limit the current to a few milliamps.  The resistor limits current flow from the 12V supply to the 5V supply of the PC or BOB.  A diode connected from the BOB input pin to its 5V supply ensures the voltage on the input pin cannot exceed the supply voltage.

You might want to take a look here:  http://cnc4pc.com/Tech_Docs/C11R9_3_USER_MANUAL.pdf starting on page 9....

Regards,
Ray L.
Regards,
Ray L.