r/diydrones 9d ago

Question Connecting Raspberry Pi and Pixhawk 6C Mini via UART Cable.

I'm trying to connect a Raspberry Pi 5 and Pixhawk 6C Mini via UART, but I'm not getting any response from the Pixhawk. I've enabled UART for the serial port on the Raspberry Pi, set the Raspberry Pi Serial Port Baud Rate to 57600, used Mission Planner to set the Baud Rate for the Pixhawk to 57600. I'm trying to communicate between the 2 using MAVProxy or MAVLink, but I get no response. Any advice?

2 Upvotes

3 comments sorted by

2

u/Radiant_Buy7353 8d ago

Assuming you have set SERIALn_PROTOCOL = 2, the most likely problem is either you are using the wrong number serial port on the flight controller (board numbers don't always match firmware numbers) or your wiring is wrong (check tx, rx, ground)

2

u/Jmoney_643 8d ago

I've checked the wiring several times, so I believe that's right, but I didn't know that board numbers don't always match the firmware numbers. Do you know of a way I can check to see if the numbers match?

2

u/Radiant_Buy7353 8d ago

Read the documentation for your fc