The Godfather talking
You can run, but you can't hide.
Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 24, 2024, 07:21:01 07:21


Login with username, password and session length


Pages: [1] 2  All
Print
Author Topic: Data exchange via 10m unshielded multiconductor cable  (Read 8354 times)
0 Members and 1 Guest are viewing this topic.
karri
Junior Member
**
Offline Offline

Posts: 40

Thank You
-Given: 15
-Receive: 3


« on: February 19, 2015, 01:52:40 13:52 »

Hi,
I have a project for agricultural machine controller.
Now I have controller which is connected via 10m unshielded multiconductor cable with another unit where are relays only.
I have transistors (ULNs) in the controller, which switches on and switches off these relay in the relay box.

No I have to move some electronic to this relay box. So I will have one MCU in the controller and another in the relay box. Have you any idea, which physical interface would be good for UART for example? I tested UART on TTL, but there was lot of noise, and many errors in data transmission, so I used TTL-RS232 converter on both sides, and I was better. But I am still not sure, that RS232 will be the best solution.

I am using multiconductor (14 conductors 1.5mm2 for each) cable, where some of them carry up to 10Amps. I can not use another cable. There is only this one.

Thank you for your responds
Logged
pickit2
Moderator
Hero Member
*****
Offline Offline

Posts: 4668

Thank You
-Given: 834
-Receive: 4321


There is no evidence that I muted SoNsIvRi


« Reply #1 on: February 19, 2015, 02:10:12 14:10 »

You could try opto-rs232 + re422 (rs485) converters, and use the slowest baudrate you can.
« Last Edit: February 19, 2015, 02:15:35 14:15 by pickit2 » Logged

Note: I stoped Muteing bad members OK I now put thier account in sleep mode
karri
Junior Member
**
Offline Offline

Posts: 40

Thank You
-Given: 15
-Receive: 3


« Reply #2 on: February 19, 2015, 02:16:43 14:16 »

Yes, I was thinking about some optocouplers usage on the receiver side and transistor on the transmitter side. But I am affraid of speed degradation. It would be fine if I had about 19200bad. I have some current sources for LEDs, so I am thinking about usage this current sources at the optocouplers. So we will see.
Logged
pickit2
Moderator
Hero Member
*****
Offline Offline

Posts: 4668

Thank You
-Given: 834
-Receive: 4321


There is no evidence that I muted SoNsIvRi


« Reply #3 on: February 19, 2015, 02:35:59 14:35 »

You should use optos at both ends, I have seen a standing voltage in project that an engineer said "we can run power and control cables in the same duct"
we found 20 volts on one wire and 50 volts on another induced by the 230 & 480 volt AC power cables.
Logged

Note: I stoped Muteing bad members OK I now put thier account in sleep mode
Signal
Active Member
***
Offline Offline

Posts: 200

Thank You
-Given: 113
-Receive: 81



« Reply #4 on: February 19, 2015, 04:07:10 16:07 »

I'd think about some carrier modulation approach. http://en.wikipedia.org/wiki/Power-line_communication
Logged

Give a right name to a right game and play it right
FTL
Junior Member
**
Offline Offline

Posts: 83

Thank You
-Given: 170
-Receive: 33


« Reply #5 on: February 19, 2015, 06:19:11 18:19 »

Quote
You should use optos at both ends, I have seen a standing voltage in project that an engineer said "we can run power and control cables in the same duct"
we found 20 volts on one wire and 50 volts on another induced by the 230 & 480 volt AC power cables.

Given that this is agricultural equipment, does that mean gas powered? If so, you can be pretty sure that the installer or later on an operator literally in the field, will be sure to tie-wrap your data cable to a bundle of spark plug wires and an induced 50 volts will be least of your problems.

So ++ for optos.

Rs485 is very similar to rs232, but uses balanced lines, so they should be more noise immune.

Edit:

I was just out for a walk and started to think about this. Since high impedance circuits are much more susceptible to noise, would it work to move to a very low impedance circuit? Could you use a couple of MOSFET drivers and terminate the line with maybe a 20-50ohm resistor? the MOSFET drivers can generally drive a line with up to 1 amp of current (both high and low), and can deal with any capacitance on the line since that is what they are designed to do.

With a 20 ohm termination and 5V TTL, you would have 250ma of current, so there should be little noise that can get into that. 19,200 baud only needs 20KHz signals, so that should not be a big deal.

ADSL drivers get several megabytes of bandwidth down twisted pair (not cat-5)  for miles without a problem, so this must be possible.

Am I out to lunch or missing something?
« Last Edit: February 19, 2015, 07:35:02 19:35 by FTL » Logged
pickit2
Moderator
Hero Member
*****
Offline Offline

Posts: 4668

Thank You
-Given: 834
-Receive: 4321


There is no evidence that I muted SoNsIvRi


« Reply #6 on: February 19, 2015, 08:57:07 20:57 »

lol
Quote
Given that this is agricultural equipment, does that mean gas powered? If so, you can be pretty sure that the installer or later on an operator literally in the field, will be sure to tie-wrap your data cable to a bundle of spark plug wires and an induced 50 volts will be least of your problems.
he is already doing that in using a single cable
Quote
I am using multiconductor (14 conductors 1.5mm2 for each) cable, where some of them carry up to 10Amps. I can not use another cable. There is only this one.


Posted on: February 19, 2015, 09:54:35 21:54 - Automerged

maybe after the first law suit, they may change this
Logged

Note: I stoped Muteing bad members OK I now put thier account in sleep mode
solutions
Hero Member
*****
Offline Offline

Posts: 1826

Thank You
-Given: 656
-Receive: 905



« Reply #7 on: February 20, 2015, 02:49:15 02:49 »

Current loop is the way to go, IMO
Logged
karri
Junior Member
**
Offline Offline

Posts: 40

Thank You
-Given: 15
-Receive: 3


« Reply #8 on: February 20, 2015, 07:41:24 07:41 »

Current loop is the way to go, IMO

I know, what current loop fundamentaly is, I used preudo-current-loop for controling machines by logical signal trhu long cables (hundred of metres). But, could you be more specific for this case (UART). Have you any verified circuit?

Thank you
Logged
Ichan
Hero Member
*****
Offline Offline

Posts: 833

Thank You
-Given: 312
-Receive: 392



WWW
« Reply #9 on: February 20, 2015, 02:00:09 14:00 »

Search for "digital current loop" not analog or 4-20ma current loop.

But for the case, i think a plain non isolated RS485 would be enough, and if the problem is still then avoid the communication events while switching ON/FF the relay.

-ichan
Logged

There is Gray, not only Black or White.
Vineyards
Active Member
***
Offline Offline

Posts: 168

Thank You
-Given: 64
-Receive: 37


« Reply #10 on: February 21, 2015, 12:16:04 00:16 »

RS-232 Interface already uses high voltages (plus minus 15V or so) and higher than TTL current to eliminate noise and it can go up to 15 meters depending on the environmental, conductor and baud rate related factors. RS-485 is surely more immune to noise because it is differential to start with so all the common mode noise is discarded. It requires a twisted pair cable. If your cable is not a twisted pair. You can't take advantage of this technology in which case you should choose the single-ended solution which is RS-232.

If you have a twisted pair and want to choose RS-485 (you could find TTL-RS-485 or RS-232/RS-485 converters easily) then you should ground only on one side to prevent ground loops. In your case this might be difficult because not only do you require a twisted pair but also a coaxial ground wire.

If you go for RS-232, also ground on one end only.

As far as I can understand you already need a serial receiver circuit which will either translate or directly control the relay commands why don't you add a proper cable between the RX-TX points if it is just 10 meters?
Logged
karri
Junior Member
**
Offline Offline

Posts: 40

Thank You
-Given: 15
-Receive: 3


« Reply #11 on: February 21, 2015, 07:54:36 07:54 »

As far as I can understand you already need a serial receiver circuit which will either translate or directly control the relay commands why don't you add a proper cable between the RX-TX points if it is just 10 meters?

This is cable between tractor and accessory vehicle. There is possible only one cable. I was looking for some mixed cable (several 1.5mm2 and some twisted pairs). I found some, but these cables were very expensive. I have to produce up to 100pcs of this devices per year, so the material costs should be reduced
Logged
Vineyards
Active Member
***
Offline Offline

Posts: 168

Thank You
-Given: 64
-Receive: 37


« Reply #12 on: February 21, 2015, 09:01:20 09:01 »

Well, since we don't exactly know the noise profiles of the circuits on the equipment, this becomes a step by step trial. Skip TTL and start with UART. Keep the communication one way hence discard RX on the controller side. Isolate the remaining line with an opto powering them seperately. Try the final solution thoroughly to see how it behaves in the long run.

There is always a safety concern if your provisions fall short of actual requirements. If you think saving costs won't break anything you can economize like that. However there are tangible safety and reliabity gains if you treat that like a bullet-proof industrial solution which comes with a status check and error handling provisions. Otherwise the control unit will just blindly drive the apparatus and close human supervision will be mandatory. We humans are notoriously prone to omissions and errors.
Logged
towlerg
Senior Member
****
Offline Offline

Posts: 263

Thank You
-Given: 474
-Receive: 104

What is this for?


« Reply #13 on: February 21, 2015, 01:18:59 13:18 »

Does it have to be a wired connection?
Logged

Win 7 Ult x64 SP1 on HP2570p
bigtoy
Active Member
***
Offline Offline

Posts: 238

Thank You
-Given: 337
-Receive: 297


« Reply #14 on: February 21, 2015, 11:16:53 23:16 »

Have you considered CAN? We use it at my work; it may have some real advantages for your application.

1. It's specifically designed for noisy environments. We all think of CAN being used in cars (which is certainly a very noisy environment), but it's widely used in industrial control as well (which is where we use it).
2. It'll do long cable runs. We've run it through 1000 feet of cable. Our standard cable is unshielded.
3. It can be run isolated. This is a big deal for cable runs when you're talking between 2 pieces of independent equipment. They may not be at the same ground potential, so having a common ground becomes a huge problem (all kinds of data errors, or even wires in the cable burning out). Look at the Texas Instruments ISO1050 chip as an example if you want to build your own board.
4. It's bidirectional over a single pair. Plus you need a ground wire (which might be isolated as per the above comment). I would assume that for safety or whatever reasons, you want to be certain the thing is operating properly - bidirectional communications would make that much easier.
5. It's multidrop, if you want more than just one module at each end of the cable. You can make yourself a little network, distribute the relays / sensors / whatever.

Downside is, well, it's CAN. You need a CAN port on your micro, or, use a Microchip CAN to SPI/serial converter chip which will talk to any micro. A full CAN software stack is not necessary if you're just using CAN for its physical layer properties.

If you don't like that, consider a completely different idea:
http://www.usriot.com/Product/20.html
as an example. Cost is $12. With this you're getting a system that again provides galvanic isolation, and supports long & noisy cable runs. And is bidirectional. It requires 2 pairs (4 wires). Ethernet to serial modules are very common - this one is just an example.
« Last Edit: February 21, 2015, 11:25:20 23:25 by bigtoy » Logged
Gallymimu
Hero Member
*****
Offline Offline

Posts: 704

Thank You
-Given: 152
-Receive: 214


« Reply #15 on: February 22, 2015, 12:03:05 00:03 »

The easiest solution is hands down RS485/422 with twisted pair (ethernet cable works fine).  You can do 10mbit at 30m no problem in VERY noisy industrial environments.
Logged
Signal
Active Member
***
Offline Offline

Posts: 200

Thank You
-Given: 113
-Receive: 81



« Reply #16 on: February 22, 2015, 01:42:43 01:42 »

The easiest solution is hands down RS485/422 with twisted pair (ethernet cable works fine).  You can do 10mbit at 30m no problem in VERY noisy industrial environments.
Very noisy industrial environments have their standards for distance between parallel power and control cables. Half a meter as I recall. I am not able to convert 10Mbit|30m|0.5m to Xbit|10m|1mm at glance. Could you?

I think any of suggested variants will work with the help of protocol. We do know very little about actual environment and requirements (acceptable delay for example) so mainly it is a competition of words.
Logged

Give a right name to a right game and play it right
bobcat1
Senior Member
****
Offline Offline

Posts: 304

Thank You
-Given: 4273
-Receive: 94


« Reply #17 on: February 22, 2015, 08:41:22 08:41 »

Hi Karri

You can use isolated RS485 (not optical) with isolated power supply to avoid ground loop ,TI & Analog manufacture special chip's who can do the work simply

All the best

Bobi
Logged
Vineyards
Active Member
***
Offline Offline

Posts: 168

Thank You
-Given: 64
-Receive: 37


« Reply #18 on: February 22, 2015, 12:24:29 12:24 »

Actually there are two main types of isolators: analog and digital. Analog isolators have three subcategories: optical, capacitive and inductive. An ordinary optocoupler can be considered as a digital isolator as the transfer factor is not completely linear. There are specially designed, optically compensated isolators using two leds which provide good accuracy up to a certain threshold. Capacitive one modulate and demodulate signal through a very small value (like one pF) capacitor. A good example to those is ISO124 series. They are pretty good. I have used them many times in the past. Inductive isolators are also good but they can pick up noise if they are placed in the vicinity of other inductive sources.

Depending on your requirements your selection of isolation type will dictate radical changes in your interface design. In other words, isolation is a crucial step.
Logged
Gallymimu
Hero Member
*****
Offline Offline

Posts: 704

Thank You
-Given: 152
-Receive: 214


« Reply #19 on: February 22, 2015, 06:45:07 18:45 »

Very noisy industrial environments have their standards for distance between parallel power and control cables. Half a meter as I recall. I am not able to convert 10Mbit|30m|0.5m to Xbit|10m|1mm at glance. Could you?

I think any of suggested variants will work with the help of protocol. We do know very little about actual environment and requirements (acceptable delay for example) so mainly it is a competition of words.


I don't really understand what you are saying there, BUT we did 10mbit, 30m, pretty close to the 50KW 5000V power cables that were driving industrial plasmas.  Even during heavy arcing the communication worked well.
Logged
karri
Junior Member
**
Offline Offline

Posts: 40

Thank You
-Given: 15
-Receive: 3


« Reply #20 on: September 16, 2015, 08:55:03 20:55 »

Hi,
I am working on next generation of my old project for agriculture machine controler.
I have device separated to two parts:
1) Controler - with buttons, procesor and LCD
2) Power part - with shift registers, ULNs and relays

Controler has transistor outputs which switches optocouplers on power part. This optocouplesr drives shift register, which drives relays.
I have optocouplers there because I am affraid of noisy envinronment. I have 10m long cable, where are no twisted pairs, so I can not use RS485.
But I am not sure, If optocouplers are good solutions because of power consuption (10mA for each - in my case 4x - 40mA).
Have you any idea of beter solution for this case?
Thank you.
Ondrej
Logged
Gallymimu
Hero Member
*****
Offline Offline

Posts: 704

Thank You
-Given: 152
-Receive: 214


« Reply #21 on: September 16, 2015, 09:11:15 21:11 »

RS485 does not REQUIRE twisted pair.  It will just work better if twisted and balanced impedance.  If you are using a low enough baud rate it doesn't matter that much.

since we don't know your power constraints no one can say if 40mA is too much.  If you are wall powered then it's no big deal, if you are running off a small battery it is a lot.

10 meters isn't very long, almost anything will work as long as the data is slow and the noise isn't too terrible (you didn't suggest what the noise environment was like.

I am generally a big fan of RS485 for robust communication in most cases.
Logged
pickit2
Moderator
Hero Member
*****
Offline Offline

Posts: 4668

Thank You
-Given: 834
-Receive: 4321


There is no evidence that I muted SoNsIvRi


« Reply #22 on: September 17, 2015, 09:48:19 09:48 »

At my place of work, we use an Vishay V018A at 1mA, maybe a lot lower at slow speed.

http://www.vishay.com/product?docid=83432
« Last Edit: September 17, 2015, 09:51:29 09:51 by pickit2 » Logged

Note: I stoped Muteing bad members OK I now put thier account in sleep mode
bigtoy
Active Member
***
Offline Offline

Posts: 238

Thank You
-Given: 337
-Receive: 297


« Reply #23 on: September 18, 2015, 05:12:42 05:12 »

As Gally said, RS485 doesn't require twisted pair. It helps with noise immunity but it's not a requirement. I would start with the RS485 transceivers.

If you play with optos, just make sure you allow them lots of margin, so that as they age and their CTR drops, your circuit continues to work. I've seen too many designs containing optos which failed over time / temperature / component variation simply because that wasn't taken into account.
Logged
solutions
Hero Member
*****
Offline Offline

Posts: 1826

Thank You
-Given: 656
-Receive: 905



« Reply #24 on: September 18, 2015, 07:36:58 07:36 »

Optocouplers for noise is BS - optocouplers are used for galvanic isolation, not for noise immunity, so I have no idea where you pulled that one from (well, I do...you're sitting on it). You are confusing fiber optics with optocouplers...they have next to nothing in common in terms of noise immunity characteristics as links.

If you want a decent response from anyone apart from guesses, tell us what you are building in more detail so we can solve your problem properly. You've told us next to nothing about this secret Lex Luthor contraption you plan to conquer the world with. You fear noise, but don't tell us the source. Certain types of noise make your shift register implementation a disaster waiting to happen.
Logged
Pages: [1] 2  All
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC