N
N
Ninazu2019-04-10 23:02:20
Electronics
Ninazu, 2019-04-10 23:02:20

How to connect multiple RaspberryPi via I2C?

For tests I use two RPi3B+ with the latest Raspbian.
As a result, I want to get something like this.
i2c-sx.gif
I connected pins 2-3 and 2-5 through 10k resistors on the first raspberry
Connected pins 3,5,9 with pins 3,5,9 of the second raspberry
pi3_gpio.png
I2C interface was enabled on both devices in the settings
What to do next? Do I need to somehow initialize the connection?
Tried to display active connections but it shows empty

[email protected]:~ $ i2cdetect -y 1
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- -- 
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
70: -- -- -- -- -- -- -- --

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
jcmvbkbc, 2019-04-10
@jcmvbkbc

What to do next?

Next, you need to find out that there are masters and slaves in I2C and dig somewhere there .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question