Data transfer from Arduino UNO to Pixhawk: Potentiometer

Hello, I would like to know if anyone has already managed to send data from arduino to pixhawk and save them. I would like to know how the connections were made and the code used. My goal is to save data from a potentiometer on pixhawk memory file.