Grove Cable specifications

When designing a system using Grove, in particular, the issue of capacitance comes into consideration. The I2C specification lists a maximum of 400 pF over the I2C bus as a whole, taking connected devices, PCB’s and wiring into account.
The Grove cables come in various types, some are ribbon cable, others are individual wires.
Seeed do not seem to care about the size of conductors or the amount of capacitance, but to help customers I suggest that the capacitance data needs to be available.
Typically for ribbon cable, capacitance might vary between 14 - 50 pF per metre. For individual wires, the capacitance will be different if the 4 wires in the cable are bound together using shrink tubing or cable ties. The main variable is the insulating material, again, this is not specified by Seeed.

For a big system with lots of sensors, Lead capacitance can add up, and it can affect maximum bus speed.
Isn’t it about time this data was made available to customers ?

While I am on this tack, Seeed make a lot of Grove sensors actuators and the like, that connect to I2C. Surely its possible to consistently specify the I2C address (range) and the value of I2C pullups that are integrated into the chip or included on the PCB; also what maximum bus speed is supported. Its a real pain to have to refer to manufacturers data to get this information, as it is often buried deep.

I ran a simple test with a LCR-TC1 Multi Function Tester by connecting two wires from a 2-meter Grove cable from M5STACK (h :slight_smile: ttps://manuals.plus/diymore/lcr-tc1-lcr-tc1-multi-function-tester-manual).

I measured 86 pF on a first coiled cable and 101 pF on a second uncoiled cable. Then I connected them together using a male pin header and measured 192 pF. The additional 5 pF can be explained by the capacitance of the two connectors joined together.

Of course, these measurements should be taken with caution, as this small tester is likely not very accurate. But even using the worst-case value, we can assume that this type of cable has a capacitance of 50 pF per meter, which isn’t too bad for a ribbon cable.

The 86 pF versus 101 pF difference between coiled and uncoiled is interesting, and the 192 pF combined figure suggests roughly linear addition once a header is in the path. If 50 pF per metre is a realistic worst case, a 2 m run already eats a quarter of the 400 pF budget before any device or PCB capacitance is counted, which matters for anyone chaining several Grove boards. Your point about pullups and address ranges being buried in manufacturer datasheets is the harder problem to solve; part numbers alone don’t tell you what’s populated on the board.

Many people talk about these 400 pF as if they were an unbreakable rule. That’s far from the case. Everyone knows that you need to reduce the value of the pull-up resistors to smooth out the rising edges. But you can’t go below 1 kΩ at 3.3 V or 1.6 kΩ at 5 V, or you’ll exceed the 3 mA that I2C components can supply.

On a 400 kHz bus, the rise time must not exceed 300 ns. However, on a 350 pF bus at 3.3 V with a 1 kΩ resistor, the rise time is already 297 ns. Worse still, at 5V with a 1.6 kΩ resistor, the rise time is already 271 ns for a bus of only 200 pF.

So, a 400 pF bus does not operate at 400 kHz. However, at 100 kHz—where the maximum rise time is 1,000 ns—the rise time is 932 ns at 3.3 V with a 1 kΩ resistor and a 1,100 pF bus, and 949 ns at 5 V with a 1.6 kΩ resistor and a 700 pF bus.

Depending on whether the voltage is 3.3 V or 5 V, and the frequency is 100 kHz or 400 kHz, the bus capacitance limit will be 200 pF or 1,100 pF. This 400 pF limit is not particularly meaningful. It is best to perform the calculations.

Calculation factors:

#1 The maximum allowable rise time at 400 kHz is 300 ns and 1,000 ns at 100 kHz.

#2 The minimum resistance value depends only on the bus voltage:
R = (VCC – VOL) / IOL
where:
• R = The minimum value of the pull-up resistor in ohms
• VCC = The bus supply voltage
• VOL = The maximum low-level output voltage (0.4 V)
• IOL = The maximum sink current (3 mA)

#3 The rise time is calculated as follows:
T = R × C × 0.8473
Where:
• T = The rise time in nanoseconds (ns)
• R = The value of the pull-up resistor in kiloohms (kΩ)
• C = The total bus capacitance in picofarads (pF)
• 0.8473 = A constant corresponding to the bus charge between 30% and 70% of VCC

Note: The signal is evaluated as 0 between 0 V and 30% of VCC and as 1 between 70% of VCC and VCC. It is therefore undefined between 30% and 70% of VCC. The rise time must be calculated within this range. The constant 0.8473 is equal to the natural logarithm of 70/30.

And note that by simply adding an Adafruit LTC4311 module to the bus on the master side, this small component will inject up to 25 mA at 3.3V and 50 mA at 5V as soon as the rising edge begins, resulting in a rise time of only 150 ns on a 4000 pF bus. I2C components are not affected by this current injection because it stops as soon as the bus reaches the high level. This opens up some interesting possibilities…

These figures are derived from the waveforms in the LTC4311 datasheet. Be aware that other factors can reduce these theoretical values, such as a noisy environment, for example.

Do you know the difference between theory and practice?

…

In theory, there isn’t one :slight_smile:

Hi there,

Yes, but we all know what they say about "Practice "
:grin:

Stay Perfect :+10:

GL :slight_smile: PJ :v: