I2C communication between Pixhawk and Arduino

Hiiii
I have 4 analog sensors. I have read the analog output of all sensors using Arduino Uno. now I want to write all sensor data using I2C protocol into another microcontroller that also has I2C.

This means I read analog sensor output and write this data into Pixhawk I2C port.

Can anyone guide me on how can I write sensor data into the Pixhawk I2C port and view this data in mission planner?

Scripting!

1 Like

Thank You…

Can you explain how this code work. ?
i have read analog sensor data on Pin A0, A1,A2, A3

If its analog in, you can also read that directly with scripting,

Sir, Pixhawk AUX4, AUX5, AUX6 i already used for relay ON/OFF