Connecting arduino to ardupilot I2C

Hello everyone,

I have a school project that is based around sending data from some sensor to ardupilot.

I failed sending defined data like plain number. Im using pixhawk 6c, arduino uno or ESP32 devkit board.

I based my attempts on examples from I2C slave.

This is the code i used.
test.txt (352 Bytes)
test.lua (2.2 KB)

If anyone would have any idea. Thanks in advance.

@Yuri_Rage is the one on this Subject Matter, maybe he can help u

See here:

1 Like

Thanks, tried a few things and found out that my pixhawk needs I2C_BUS = 2

1 Like