I2C Long Distance - Collin’s Lab Notes

  Переглядів 111,864

Adafruit Industries

Adafruit Industries

2 роки тому

I2C signal degradation over distance - and what to do about it. #adafruit #collinslabnotes
Extend I2C with LTC4311:
www.adafruit.com/product/4756
Visit the Adafruit shop online - www.adafruit.com
-----------------------------------------
LIVE CHAT IS HERE! adafru.it/discord
Adafruit on Instagram: / adafruit
Subscribe to Adafruit on UKposts: adafru.it/subscribe
New tutorials on the Adafruit Learning System: learn.adafruit.com/
-----------------------------------------

КОМЕНТАРІ: 37
@doxielain2231
@doxielain2231 2 роки тому
I love how these are getting granular and more complicated.
@benduffy4223
@benduffy4223 2 роки тому
There's some caveats, but you can also achieve longer distances with a higher voltage, so shift converters, or just a couple of humble MOSFETS either end. Most FETs are tested for 1MHz+ You can then address ringing at either end with passives. It's not as purpose built, but you can achieve some pretty amazing results this way, and learn a lot about this issue in the process. It also important to think about capacitive coupling when running multi conductor cables.
@psynautic
@psynautic 2 роки тому
very cool tip!
@AzaB2C
@AzaB2C 2 роки тому
Cheers Ben!
@alexstone691
@alexstone691 2 роки тому
I was just wondering about a way without getting a commercial product, thamks
@JB-fh1bb
@JB-fh1bb 2 роки тому
Does twisting the pairs deal with capacitive coupling? Like, could one use unterminated ethernet cable?
@Muslim_011
@Muslim_011 2 роки тому
Dont forget the quality of the wires itself ( real copper or cheaper alluminium )
@micah2936
@micah2936 2 роки тому
Collin is so good at explaining things. I think it’s the calm in his voice
@Jjjbbb5678
@Jjjbbb5678 2 роки тому
I’m so appreciative of these videos. Makes me want to get one of those adafruit subscription boxes again. I got really into that stuff then covid hit, i moved, and havent touched it since
@bayanicustodio3998
@bayanicustodio3998 2 роки тому
Now that is a good thing to see on the market. Thanks guys
@KangJangkrik
@KangJangkrik 2 роки тому
For long distance, you really want CAN bus instead of I2C
@labiadhchokri2124
@labiadhchokri2124 2 роки тому
yes or RS485
@KangJangkrik
@KangJangkrik 2 роки тому
@@labiadhchokri2124 that could work, except there is cable count constraint
@perwestermark8920
@perwestermark8920 2 роки тому
@@KangJangkrik It's electrically quite similar.
@GeoffCook1000
@GeoffCook1000 2 роки тому
It's a shame you can't convert I2C to canbus or RS485.
@trabadix
@trabadix 2 роки тому
I am ashamed to accept that, as an electronics engineer, I did not know that the distance of a cable could be compensated with the same microcontroller, the good thing is that my field is more focused on the industrial field and many times the parameters already established by the manufacturer, such as the maximum supported length.
@Flowxing
@Flowxing 2 роки тому
as the name IIC suggests, its not designed for long distance. CAN or RS485 can easily do this.
@lukagacnik3093
@lukagacnik3093 Місяць тому
You still require transceiver as external chip if you want to do this. Which is no different than this
@FXP1688
@FXP1688 2 роки тому
I had sensors operate already over 10 meters because I found it easier to implement it that way. I dropped to 10 kHz which was still fast enough to transmit the data.
@DantePlacebo
@DantePlacebo 2 роки тому
You could use P82B96, I managed to get stable communication at 150m, I ran out of cable at that point.
@pahvalrehljkov
@pahvalrehljkov 2 роки тому
just what i needed...
@kvn95ss
@kvn95ss 2 роки тому
What's the music? It sounds nice
@davidknightaudio934
@davidknightaudio934 2 роки тому
Making a single wire longer only adds capacitance to ground when two wires are together the longer they are the more capacitance is between them a single wire mainly suffers from inductance and interference because it is a good antenna
@TVCafurnas
@TVCafurnas 2 роки тому
Ótimo teste
@mrtechie6810
@mrtechie6810 Місяць тому
Could you bridge via RS485? How resistant is this to EMI?
@testman9541
@testman9541 2 роки тому
Great but for long term I would go 10 base T1L with MCU for I2C bringing
@devrim-oguz
@devrim-oguz 2 роки тому
Or use differential pair signaling
@perwestermark8920
@perwestermark8920 2 роки тому
Differential is mainly to handle external noise that will apply to both lines but leave the differential voltage umchanged. But differerential signals doesn't solve shark tooth or ringing.
@0xbenedikt
@0xbenedikt 2 роки тому
The PCA9615 is intended to do differential IIC signaling over long distances
@milesprower6641
@milesprower6641 2 роки тому
What about for twisting the ground and signal wire together snugly along its length
@perwestermark8920
@perwestermark8920 2 роки тому
That's to reduce pickup of disturbances. And very best with balanced signals that aren't related to ground but to each other. You can't solve capacitance (creating shark tooths) or inductance (ringing) by twisting. But a proper termination affects reflections at the cable end.
@juanignaciocarrano860
@juanignaciocarrano860 2 роки тому
Or match the transceiver impedance to that of the transmission line?
@alexstone691
@alexstone691 2 роки тому
Could you explain why that helps with parasitic capacitance and inductance
@juanignaciocarrano860
@juanignaciocarrano860 2 роки тому
@@alexstone691 The parasitics will still be there, in the same way, e.g. a Ethernet wire has them. The trick is to be able to account for their effect: the ringing is due to the wire behaving as transmission line. By matching source and sink impedances to the line you eliminate reflections and ringing. Of course, this only works if the loading is known beforehand.
@alexstone691
@alexstone691 2 роки тому
​@@juanignaciocarrano860 Then you could have any wire length you want right? as long as the circuitry can drive the load of course Also thanks for explaining :D
@juanignaciocarrano860
@juanignaciocarrano860 2 роки тому
@@alexstone691 not quite, there is dispersion and wire resistance. The thing is i2c is not really designed for this kind of use. For longer distances some sort of differential signalling is better (eg RS485)
@perwestermark8920
@perwestermark8920 2 роки тому
@@alexstone691 You can never have any length wire for two way communication even if assuming zero resistance. The cable still introduces a delay that is proportional to the length. Even if terminating to avoid reflections at the end of the cable, that delay will affect the arrival of the response to a query. So if the master is doing the clocking of the data, the master can only handle a limited amount of response delay before the response no longer matches up with the clocking. Cable delays is also the issue with ethernet cables - the cable has multiple pairs, and the individual pairs will not have identical delay. So going from 1 gbit/s to 10 gbit/s or 100 gbit/s means these delay differences makes bits on different pairs arrive at different times. And higher speed means shorter bit times.
I2C and SPI on a PCB Explained!
15:34
Altium Academy
Переглядів 132 тис.
What does "impedance matching" actually look like? (electricity waves)
17:08
ФОКУС С ЧИПСАМИ (секрет)
00:44
Masomka
Переглядів 3,4 млн
Парковка Пошла Не По Плану 😨
00:12
Глеб Рандалайнен
Переглядів 13 млн
Первая поломка Scirocco! Балацко попал на мотор.
1:13:12
GPIO for any PC or Laptop: Adafruit FT232H
19:18
ExplainingComputers
Переглядів 193 тис.
The RS-232 protocol
26:10
Ben Eater
Переглядів 810 тис.
Understanding I2C
10:58
Rohde Schwarz
Переглядів 49 тис.
What Is...I2C?
6:25
Microchip Technology
Переглядів 65 тис.
Using an Oscilloscope to Crack the I2C Code!
18:29
Dr. Shane Oberloier
Переглядів 2,1 тис.
10 Soldering Tips to Instantly Improve Your Soldering Skills
5:46
PROTOCOLS: UART - I2C - SPI - Serial communications #001
11:58
Electronoobs
Переглядів 1,3 млн
Electronic Basics #36: SPI and how to use it
10:31
GreatScott!
Переглядів 330 тис.
Как открыть дверь в Jaecoo J8? Удобно?🤔😊
0:27
Суворкин Сергей
Переглядів 817 тис.
ЭТО САМЫЙ МОЩНЫЙ ИГРОВОЙ СМАРТФОН ЗА 270$ 🔥
13:33
Thebox - о технике и гаджетах
Переглядів 38 тис.