Understanding the PAC RP5 and GM31 Integration
When you're trying to wire a PAC RP5 autopilot controller to a GM31 compass module, the first thing you need to know is that these two pieces of equipment don't use standard marine connectors. The RP5 typically comes with a proprietary cable assembly, and the GM31 has its own pinout that's easy to mess up if you're not looking at the right diagram. I've seen more boats stuck in the dock because someone crossed the power and ground wires than for any other single mistake involving these components. The core wiring relationship between these two units is straightforward once you have the right reference material. The GM31 compass outputs data through a serial connection, and the RP5 reads that data to determine heading information. Power for the compass typically runs through the autopilot system, which means you need to ensure your main battery is supplying clean, stable voltage to both units. I usually recommend a dedicated 10-amp fuse within 18 inches of the power source, not because the GM31 draws much current, but because compromised power quality can cause erratic compass readings that make the autopilot hunt back and forth across your desired course. Here's the wiring sequence I actually follow in practice. First, connect the GM31's power input to the autopilot's dedicated 12V output terminal, not a generic switched circuit. The GM31 performs a self-calibration routine every time it receives power, and if you've wired it to a circuit that shares load with bilge pumps or windlass, the voltage dip during those device activations will trigger false recalibrations mid-navigation. Second, run the serial data cable from the GM31 to the RP5's compass input port. The connector is a standard 8-pin modular jack, but the pin assignment varies by manufacturer revision, so you absolutely cannot assume pin 1 on the GM31 maps to pin 1 on the RP5 without checking the documentation.
The grounding point is where most mistakes happen. Both the RP5 and the GM31 need a common ground reference, and it's not optional. A floating ground causes the compass reading to drift, sometimes by several degrees over the course of an hour, which makes your autopilot gradually steer you into shallow water while you're distracted. I always connect the ground wire directly to the boat's main grounding bus, not to a random metal bracket or engine block bolt. The engine block is a noisy ground due to alternator ripple, and that interference shows up as heading jitter in the autopilot display.
Common Pitfalls and Counter-Intuitive Details
One thing most people miss about the GM31 installation is that the compass module needs to be oriented precisely along the boat's centerline during mounting. The internal magnetometer is calibrated for a specific axis, and even a two-degree misalignment will cause the autopilot to consistently track a course that's offset from where it should be. I had a case once where a boat was crab-walking two feet to port on every mile, and we spent three hours troubleshooting wiring before I realized the compass had been installed rotated slightly after the factory calibration. Re-leveling it fixed the problem instantly. Another detail that catches people off guard is cable length. The serial communication between the GM31 and RP5 works reliably up to about 50 feet with the standard shielded cable provided by PAC. Beyond that distance, signal degradation becomes noticeable, and you'll see intermittent heading losses on the display. If you need a longer run, the workaround is to install a signal repeater or use a fiber-optic conversion kit, but most people just reposition the compass module closer to the controller instead. I've also seen people daisy-chain multiple devices onto the same serial line, which doesn't work because the GM31 is a point-to-point device and won't share its data bus with other equipment. The RP5's menu system has a compass calibration section that most users skip, but it's worth running through once during installation. You need to perform a full 360-degree turn sequence with the boat stationary or drifting slowly in calm water. If you skip this, the autopilot may compensate for magnetic deviation incorrectly, and the correction will drift as your heading changes. The whole process takes about four minutes and prevents a lot of unnecessary troubleshooting calls later.
Get the Full Details

Power and Interference Considerations
Marine environments are electrically hostile, and both the RP5 and GM31 are sensitive to noise on the power and ground lines. If you're running the autopilot near a VHF antenna, an LCD monitor, or a battery charger, you may experience heading errors that come and go. The fix is usually a ferrite choke on the power cable near the GM31 connection point, not because the compass is radiating interference but because it's picking up conducted noise from nearby equipment. I carry a box of snap-on ferrite cores specifically for this purpose when doing installations. The RP5 itself draws roughly 150 milliamps during normal operation, while the GM31 draws about 100 milliamps. These numbers seem small, but under low-battery conditions, the reduced voltage can cause the compass module to behave unpredictably. The RP5 has an under-voltage lockout feature that disables the autopilot below approximately 10.5 volts, but the GM31 does not have the same protection, which means you can get corrupted heading data right at the edge of the usable battery range. I always recommend monitoring battery voltage separately rather than relying on the autopilot's internal sensor alone.
Where to Find the Diagram and What to Verify
The official PAC RP5 Gm31 Wiring Diagram is available through marine electronics distributors and the manufacturer's support portal. Download the current version and cross-reference it with the revision number printed on your RP5's back panel, because PAC has issued at least two hardware revisions that changed the pin configuration on the compass input connector. The older revision uses a different pinout than the newer one, and using the wrong diagram with mismatched hardware will result in no communication between the two units, which is an easy mistake to make if you're working from memory or a cached PDF. After completing the physical connections, verify continuity on every wire with a multimeter before applying power. Check that the power wire shows resistance below one ohm from the fuse holder to the GM31 terminal. Check the ground path the same way. Check the serial data lines for continuity and for shorts to ground. This five-minute verification step eliminates most post-installation headaches. I cannot count the number of times I pulled a boat out of the water only to find that a chafed wire was making intermittent contact, causing the autopilot to disengage randomly at exactly the wrong moment. Once everything passes the continuity check, apply power and watch the RP5 display for the GM31 identification message. If it appears within 30 seconds, the communication link is established. If you see a compass fault error, go back and check the serial cable connections first, then the ground path, then the power supply voltage at the GM31 terminal under load. The most likely failure point is a loose crimp on the modular connector, which is surprisingly easy to miss during a visual inspection.