I2C Communication between Beaglebone Black and Arduino Nano

Hey guys,

before I start I should mention that I'm a beginner and still learning.

I'm currently working on project that has me run into a few problems.

Im trying to use an Arduino to read out a pressure sensor and poll them using a Beaglebone Black.

As for my current setup im trying to build a I2C communication between a single Arduino Nano and Beaglebone black but for the future I would like to use multiple arduinos reading different pressure sensors.

My current setup is as follows:

I have both my arduino and beaglebone black hooked up via usb to my Computer and as for now I have no pressure sensor build into my circuit because I cant get any communication between the two.

Wether I run i2cdetect through my beaglebone black or i2cscanner via arduino I cant get either of them detecting the other.

I'm clearly missing something.

Any help is appreciated

EDIT: couldnt get the image URL to work, so I've attached the 3 pictures

Wether I run i2cdetect through my beaglebone black or i2cscanner via arduino I cant get either of them detecting the other.

I2C is not a bidirectional interface like the standard (UART) serial interface. On I2C you have a master and one or more slaves. If I got your description correctly your Arduinos would be the slaves in that setup. As the Arduino is not a hard-wired sensor but a processor, it won't respond on the I2C bus without a corresponding software (sketch) loaded. So you have to write a sketch that defines the Arduino as an I2C slave with a pre-defined address, upload that code to the Arduino and then if you run the i2cdetect on the BeagleBone it will detect the Arduino.

thank you for your reply!

I did what you recommended and used this sketch that i've found here on here https://www.arduino.cc/en/Tutorial/MasterWriter

beaglebone now detects a i2c device and i was able to sent different values.

thank you for your advice!