Stranded vs. Solid wire for digital communications

Hi all,

I'm interfacing an Arduino to an AD7714 via SPI and an AD5175 via I2C. I have a custom PCB that I designed and had printed to hold all the extra electronics. The strange thing is, when I connect the microcontroller and board with solid wire like from a jumper kit, everything works wonderfully. When I sub in a ribbon cable (smaller gauge wire, stranded), nothing works. I get error codes from the AD7714 and the Ardi won't even see the AD5175. I should note that the ribbon cable is able to power everything sufficiently.

The particular ribbon cable is this: Ribbon Cable - 10 wire (15ft) - CAB-10647 - SparkFun Electronics

However, I've also had this problem with stranded ribbon cable salvaged from an old computer. So what's going on?

How long a piece of ribbon cable are you using?

In general, ribbon cable used for digital communication should be alternately signal and ground (i.e., something like SCK,GND,MISO,GND,MOSI,GND,SS) so that the ground lines reduce crosstalk between the wires.

I think the problem is probably that it's ribbon cable, not that it's stranded wire.

I am in no way an expert with these two modes of communication, but from what I do understand about them I'm going to blame crosstalk as the reason the ribbon cable isn't working. What are the data rates you're using? I know that ribbon cable has minimal insulation and minimal distance between wires - which would only make crosstalk more of an issue for you. Crosstalk issues would get much worse with higher data rates.

Easy to test, split some wires from the ribbon and see if the problem persists.


Rob

Maybe he should just go out and buy some of that $5 per foot Monster cable.

Don

floresta:
Maybe he should just go out and buy some of that $5 per foot Monster cable.

Don

But buy 2 and Wrap one around the other to get double the speed

Imagine how fast it would be if he used cat5 cables from Monster.

Don

Naaah I think he needs Magic Bullets... By Pass Caps... IMO

Doc

majenko:
How long a piece of ribbon cable are you using?

In general, ribbon cable used for digital communication should be alternately signal and ground (i.e., something like SCK,GND,MISO,GND,MOSI,GND,SS) so that the ground lines reduce crosstalk between the wires.

I think the problem is probably that it's ribbon cable, not that it's stranded wire.

It's about 4 inches long. I have two cables, set up as (GND,+5V,AnalogRead,GND,SDA,SCL) and (SCK,MISO,MOSI,DRDY,RESET,CS). So it's probably the alternating ground absence that's leading to problems.

Waruma:
I am in no way an expert with these two modes of communication, but from what I do understand about them I'm going to blame crosstalk as the reason the ribbon cable isn't working. What are the data rates you're using? I know that ribbon cable has minimal insulation and minimal distance between wires - which would only make crosstalk more of an issue for you. Crosstalk issues would get much worse with higher data rates.

It's probably crosstalk. I'm using standard SPI and I2C data rates, not scaling anything.

Graynomad:
Easy to test, split some wires from the ribbon and see if the problem persists.


Rob

The crazy thing is after I did that, the problem persisted. Only when I switched to short jumper wire did the problem vanish.

floresta:
Maybe he should just go out and buy some of that $5 per foot Monster cable.

Don

What about this? http://www.amazon.com/Diamond-Digital-Audio-Ethernet-Connection/dp/B003CT2A6I

One question nobody has thought to ask before now...

How are you connecting the ribbon cable? Are you using connectors of some form? If so, what are they?

Verdris:

majenko:
How long a piece of ribbon cable are you using?

In general, ribbon cable used for digital communication should be alternately signal and ground (i.e., something like SCK,GND,MISO,GND,MOSI,GND,SS) so that the ground lines reduce crosstalk between the wires.

I think the problem is probably that it's ribbon cable, not that it's stranded wire.

It's about 4 inches long. I have two cables, set up as (GND,+5V,AnalogRead,GND,SDA,SCL) and (SCK,MISO,MOSI,DRDY,RESET,CS). So it's probably the alternating ground absence that's leading to problems.

Waruma:
I am in no way an expert with these two modes of communication, but from what I do understand about them I'm going to blame crosstalk as the reason the ribbon cable isn't working. What are the data rates you're using? I know that ribbon cable has minimal insulation and minimal distance between wires - which would only make crosstalk more of an issue for you. Crosstalk issues would get much worse with higher data rates.

It's probably crosstalk. I'm using standard SPI and I2C data rates, not scaling anything.

Ribbon cable is electrically much longer because of the parasitics from the other conductors, and impedance of the wires carrying the signal becomes significant. Normally, it is enough to split out and twist the conductors carrying the signal once or twice in the middle before binding them to the plug. This used to be common in PCs back in the day. But it depends on the frequency.

Also, cross-talk is a very complex thing in practice. You also have to look how and where you headers are, and how the traces react overall. Basically, you have created an array of little antennas. The trick is to make these antennas more inefficient. Are you terminating any unused conductors properly?

There are ribbon cables that are rate for this sort of work, but the problem could be in your other circuitry, and the ribbon will always interact poorly with that. You could look for multi-conductor twisted bundles (or, as suggested earlier, use ethernet cable if that has enough conductors.

What about this? http://www.amazon.com/Diamond-Digital-Audio-Ethernet-Connection/dp/B003CT2A6I

Anybody who has not yet followed this link should do so as soon as possible. Be sure to scroll down and read the customer reviews, it will be worth your time.

Don

floresta:

What about this? http://www.amazon.com/Diamond-Digital-Audio-Ethernet-Connection/dp/B003CT2A6I

Anybody who has not yet followed this link should do so as soon as possible. Be sure to scroll down and read the customer reviews, it will be worth your time.

Don

Oh, they are PRICELESS ... Especially the bacon!

That's funny.

Surely the price can't be for real.


Rob

Surely the price can't be for real.

It can, and it is.

Die-hard videophiles (the ones that can see artifacts where they don't exist) and audiophiles (the ones that think they can hear things that aren't there) are suckers for gimmicks like this.

I went to buy an HDMI cable the other day and the first one I found was $149, I nearly died but eventually found one for about $15. The screen looks just fine to me but I'm not very sophisticated in this field :slight_smile:


Rob

majenko:
One question nobody has thought to ask before now...

How are you connecting the ribbon cable? Are you using connectors of some form? If so, what are they?

Molex.

Its all about the bacon... :wink:

http://www.amazon.com/Diamond-Digital-Audio-Ethernet-Connection/dp/B003CT2A6I

There's a Mouse born every second, and statistically about 50% of them will soon give Mouse Milk.

And somebody will buy it...

Verdris:

majenko:
One question nobody has thought to ask before now...

How are you connecting the ribbon cable? Are you using connectors of some form? If so, what are they?

Molex.

Molex is a brand name. They make rather a large number of connectors. Which connectors are you using?