View Single Post
  #13   Spotlight this post!  
Unread 04-03-2013, 13:06
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is online now
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,562
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: PNP Inductive Sensor

Quote:
Originally Posted by tsaksa View Post
Yes NPN outputs are a lot easier and preferred. But if you really need to use the PNP device you have two main problems that need to be addressed.

1. The device you quoted requires 12 volt power and the DSC only supplies 5 volts.. You need to wire a separate 12 volt circuit to power it.

2. The output from the device you want to use is active high with 12 volt logic. You will need some method of getting the input to the right voltage. An opto-isolator is the method normally used in industry. But you may also be able to use a resistor divider network to drop the output voltage to 5 volts. The lower leg of the divider should also act to pull the I/O low when your output is not on.

I would try a resistor network with about 350 ohms between the output of your sensor and the input of the DSC, and then another approximately 250 ohm resistor between the DSC input and ground. I have not tested this, but I think it should get you in the input range you need and limit your signal current to 20 or so milliamps. Any one else see a mistake here?
That set up will pull the signal pin down to ~0.1V, which should be far enough for it to switch. Your sidecar wouldn't like you if you ever lost the lower leg while the sensor was on, but it should work.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter