5 volt I/O over long distance
SteveD
Posts: 64
Would it be acceptable for a BS2 to output 5 volts from one of its pins through a 24 AWG wire that is 100' to 150' long and have another BS2 with one of its pins connected to the other end of this wire?··Providing the voltage drop does not fall below 1.4 volts and common ground of course, the receiving stamp should see this as an input.· I guess my real question is, is this the proper method·for·sending a simple I/O from one stamp to another over long distances or is there another method I should use?
Thank you
·
Thank you
·
Comments
24AWG wire has a resistance of about 25.6ohms per 1000ft!
Which would work out to about 2.56ohms per 100ft.
I believe the stamp pins can source (meaning output current on a given pin) about 50mA. So...at 50mA current source and a 2.56ohm run....you'd get a 0.128Vdrop....hmmm, I thought it'd be more!
Nevertheless, if you don't have any noise on the line, you'll find that so long as you can stay above the logic threshold (typically 2.5Volts) then you'll have enough to indicate a logic 1 on the stamp.
If you have noise, you'll run in to problems, as the noise will jump up and down across your threshold voltage which will cause false triggers.
If you have the cable....then run the spool beside both stamps; connecting one end to one stamp, and one to the other.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·
Steve
"Inside each and every one of us is our one, true authentic swing. Something we was born with. Something that's ours and ours alone. Something that can't be learned... something that's got to be remembered."
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
John R.
8 + 8 = 10
It might ease your mind to note that most problems with "long runs" in the hobbyist arena have nothing to do with the resistance of the wire. You really have to look at 1000+ feet or very small-guage wire for this to be a real factor. A more common problem is the wire acting as an "antenna" and picking up signals from its environment. An intended "low" or "0" signal can suddenly appear to be a "high" or "1" if there is anything that can impose a 1.5V signal on the line. This is even more prevalent with higher transmission speeds due to the signal only having to be present for a short period of time. There have been other discussions on how to shield a run from these kinds of glitches.
(and for the purists, I know I genralized and over-simplified, but I think I kept true to the message...)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Truly Understand the Fundamentals and the Path will be so much easier...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·1+1=10
The PIC that the BS2 uses does support 0 to 5 volt signaling at 25 mA or so -- which should make it a reasonably good 'high-current' signaling device (low current being in the 5 mA range). You might want to put a terminating resistor on the recieving end, tied to ground, to give you a 'hard' zero volt signal. I'd start with a 1.1 Kohm resistor.
The problem you can run into is that an 'input' on a PIC is a high-impedance. Thus it acts like an antenna really well, picking up 'noise' signals on the line.
Note the MAX232 RS232 driver chip gives a +- 10 volt signal, terminated into 20 Kohms. The RS485 drivers expect terminators both to +5 and Ground.