Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

DC power and Open Collector signal over 300m of wire, will this be ok?

Status
Not open for further replies.

manaboutdog

Newbie level 4
Joined
Sep 10, 2008
Messages
6
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,330
Hi There,

I'm looking at doing something where I'll have a remote photoelectric switch with an NPN open collector output situated ~300m from my power source (18Vdc) and microcontroller. I'm not sure the best way to go about this and was wondering if the following approach would be ok?

I'm contemplating running a light, cheap 3 or 4 core wire to the sensor for the 3 signals required.

The microprocessor will be required to read the active low signal from the sensor as an interrupt. I'll have to do a bit of level shifting and buffering here but that's no problem.

Is there any other easier way of doing this that I may not have thought of? I don't need the response time to be super fast, anything under 10mS would be fine. The output circuit of the sensor is attached.
PhotoElectricOutput.jpg

Regards

M
 

The concept looks moretheless ok, but because of the distance I'd use an optocoupler ..
:wink:
IanP
 
  • Like
Reactions: tpetar

    tpetar

    Points: 2
    Helpful Answer Positive Rating
I agree with IanP. Although electrically it looks fine, consider that your wiring looks like a big antenna, it is almost certainly going to pick up and possibly radiate interference. Isolating it will provide an RF barrier and also protect your processor from the effects of noise and static pick up. This is particularly important if you are in an area prone to thunder storms.

Brian.
 

Optocoupler?

Thanks guys, do you mean using a fiber optic cable between the 2 locations?
 

That's one option - but an expensive one.
The cheap solution is to use a standard opto-isolator at the receiving end. You can't isolate the power lines easily but they can probably absorb quite a lot of interference without causing any problems. What you really have to worry about is the input to the microcontroller which could easily be damaged if it's voltage went too high or too low. What you do is use your existing circuit to drive the input (LED) side of the isolator and connect the output side to the micro. It will still transfer the signal but it will also provide a barrier which can withstand a few KV across it. Look at data sheets for 4N37 for ideas.

Brian.
 

Ah right, I see, I was wondering what would be the point isolating the interrupt flag only, but the points you make are very valid.
 

Isolation is wise. A nearby lightning bolt, in parallel with your long run of wires, can induce a spike of high current in them.

I'm convinced this is the reason an intercom system was knocked out in a long building I worked in, after a close lightning strike.
 

U will need shielded wire and a voltage pwr supply with sense input, or use current source mode supply for the opto.
u will also need filters and or Schmidt trigger
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top