I have had multiple issues with my old Radiolink Pixhawk and decided to swap it with a Pixhawk4 mini that I had available. The job is almost completed. The only issue remaining is my solution to receive NMEA data from my echo sounder. This was working well on my old pixhawk using serial 4 and baud 4800. As the mini has less physical serial ports readily available I decided to use the RCIN.
Firmware 4.2.3 selected as this is what my old Pixhawk also had. And right now I want just to swap the autopilot without need to redo any tuning, firmware upgrade can come later.
In this documentation I read that the RCIN can be used as a regular serial port:
https://ardupilot.org/copter/docs/common-holybro-ph4mini.html
Quote:
The RCIN port can be used as RX or TX as a general UART using the SERIAL4_OPTIONS bits to swap pins
The options to “swap pins” using the options is not very precise. I may not have the correct settings as a result. I have tested using the following settings, so far without any success:
SERIAL4_OPTIONS = 0
SERIAL4_OPTIONS = 8
Cabling:
Further the same link has documentation for the RCIN pinout. I made an assumption that I should use the following pins:
1: 5V
2: TX
3: RX
4:
5: GND
Further settings:
SERIAL4_PROTOCOL = 23 (default value for PX4 mini, did not change it)
SERIAL4_BAUD = 4 (for 4800 as working well with my old Pixhawk)
Can anyone tell me if I am on the right track here? Most important when the boat is now opened, obviously, to get the physical cabling right. Settings can be played around with at any time.
2 posts - 2 participants
Read full topic