Raspberry Pi 4 Compute Module 11 Pinout Guide with Wiring Connections

Start by identifying the exact pinout configuration of your CM4 carrier board–this avoids signal interference and component damage. The J6 header (often labeled “GPIO”) carries critical interfaces: I²C, SPI, UART, and PWM. Verify the board’s datasheet before proceeding; some pinouts diverge between revisions. Use a multimeter in continuity mode to confirm ground and power rails if documentation is unclear.
Route high-speed signals like PCIe and USB 3.0 using short, impedance-matched traces. For PCIe, ensure the reference clock (100 MHz differential) connects via a controlled-impedance path (typically 90 Ω ±10%). Avoid vias near these lines–each via introduces ~1.5 pF parasitic capacitance, degrading signal integrity. If external peripherals (e.g., NVMe SSDs) are attached, power them through a separate 3.3V/5A supply to prevent brownouts on the CM4’s regulator.
For power delivery, combine the 5V VBUS input with a AP2112K-3.3 LDO for stable 3.3V rail conversion. Directly connecting USB devices to 5V without decoupling capacitors (10µF ceramic + 0.1µF near the load) risks voltage sags during hot-plug events. Ground noise mitigation requires a star topology–tie all ground returns to a single point near the CM4’s metallic shield to prevent ground loops.
Low-speed interfaces (e.g., GPIO, UART) tolerate longer cables but limit lengths to 30 cm for UART (115200 baud) and 50 cm for I²C (100 kHz). Use CAT6 twisted pairs for differential signals like USB 2.0 (D+/D-) or Ethernet; the pairs reduce crosstalk and EMI. For pull-up resistors on I²C, select 2.2 kΩ if running at 3.3V–higher values increase susceptibility to noise, lower values raise power consumption.
Before applying power, measure resistances between all rails and ground. Any reading below 1 kΩ indicates a short; disconnect peripherals incrementally to isolate the fault. Use an oscilloscope to verify signal waveforms–clean edges on clocks (e.g., SPI’s SCLK) confirm proper terminating resistors. For EEPROM configuration on carrier boards, modify the custom_dt_overlay file to match your hardware; incorrect mappings frequently cause boot failures.
Connecting Raspberry Pi Compute Module 4: Step-by-Step Configuration

Start with GPIO pin 2 (5V power) and connect it directly to the input of a 2A voltage regulator. Use thick 18 AWG wire to minimize voltage drop–anything thinner risks stability under load. For signal lines (I2C/SPI), route traces with at least 0.2mm clearance to adjacent high-current paths to prevent crosstalk. Ground loops introduce noise; tie all grounds to a single point near the power input.
Critical Pin Assignments
| Header Pin | Function | Wire Gauge | Max Current |
|---|---|---|---|
| 4 (5V) | Primary power | 18 AWG | 3A |
| 6 (GND) | Common ground | 20 AWG | 5A |
| 3 (SDA) | I2C data | 24 AWG | 500mA |
| 5 (SCL) | I2C clock | 24 AWG | 500mA |
| 12 (GPIO18) | PWM output | 22 AWG | 1A |
Attach pull-up resistors (4.7kΩ) to I2C lines immediately after the Compute Module’s output to ensure bus reliability. For high-speed interfaces (USB 3.0/PCIe), use impedance-controlled traces–differential pairs must maintain 90Ω (±10%) characteristic impedance. When daisy-chaining peripherals, limit total cable length to 30cm for differential signals; exceeding this threshold requires redrivers or retimers. Terminate unused GPIO pins with 10kΩ pull-down resistors to prevent floating inputs.
Identifying Key Components in the Radio Module Circuit
Start by locating the transceiver IC–typically marked as nRF24L01+ or similar–positioned centrally on the board. Verify its pinout against the datasheet: pins 1-8 handle SPI communication, while 9-16 manage power and antennas. Use a multimeter in continuity mode to confirm ground connections at pins 9, 10, and 15; these should link directly to the board’s ground plane.
Examine the power regulation section adjacent to the transceiver. A low-dropout (LDO) regulator, often labeled AMS1117 or AP2112, converts input voltage to 3.3V. Measure the output pin with the circuit powered on–expect 3.28V to 3.32V. If readings deviate, replace the LDO or check for damaged traces feeding its input.
Critical Passive Components
Trace the antenna path from the transceiver’s RF pin (usually pin 7) to the matching network. Two inductors (e.g., 22nH) and a capacitor (e.g., 1pF) should form a pi-network. Desolder and test these components with an LCR meter if signal strength drops below -60dBm; values outside ±5% of nominal indicate failure. Replace with identical part numbers–substitutes alter impedance and degrade performance.
Identify the crystal oscillator near the transceiver’s clock pins. A 16MHz quartz crystal with load capacitors (12pF or 18pF) ensures stable frequency modulation. If the circuit fails to initialize, check for cold solder joints on the crystal’s case or measure capacitance at its leads–values below 8pF suggest leakage or a cracked ceramic base.
Inspect the SPI interface resistors, typically 1kΩ pull-ups on the MISO, MOSI, and SCK lines. These prevent floating signals during boot. Use an oscilloscope to verify square waves during data transmission–rounded edges or voltage drops below 2.8V indicate corroded traces or excessive load. Replace resistors if resistance exceeds 1.1kΩ or drops below 900Ω.
The decoupling capacitors (0.1µF ceramic) near the transceiver’s power pins stabilize voltage by filtering noise. Place a probe across these capacitors while the module transmits–ripple should not exceed 20mV. If it does, add a 10µF tantalum capacitor in parallel or reflow solder joints to eliminate microfractures interrupting current flow.
Connecting Input and Output Terminals on RP4-CH Expansion Module
Begin with the power supply terminals. Locate the “+24V” and “GND” markings–these must connect directly to a regulated 24VDC source. Ensure polarity matches: positive to “+24V,” negative to “GND.” Misalignment risks equipment damage or erratic behavior. Use 18-22 AWG solid or stranded copper wire for reliability. Strip 6-8mm of insulation from each end to prevent loose connections.
For analog inputs 1-4 (AI1–AI4), wire each to a corresponding sensor or external signal source. Inputs accept 0-10VDC or 4-20mA, depending on configuration. Verify jumper settings on the module’s rear: JP1 selects voltage (0-10V) or current (4-20mA) mode. If using voltage, connect the signal to the “+” terminal and “GND” to the “-” terminal. For current loops, wire the signal to “+” and leave “-” open or connect to a sink if required. Avoid grounding the “-” terminal unless specified by the sensor manual.
Digital inputs DI1–DI4 are sinking or sourcing compatible. Connect the external switch or sensor’s common to “+24V” and the output to the designated DI terminal. For example, a pushbutton’s NO contact connects to “+24V” on one side and DI1’s “+” terminal on the other. The “-” terminal remains unwired unless using a sourcing sensor, in which case it connects to ground. Check the module’s dip switches–SW1 configures each DI for PNP (sourcing) or NPN (sinking).
Outputs follow a similar logic. Relays RL1–RL4 are dry-contact, rated for 250VAC/30VDC at 5A. Wire the load between the “COM” and “NO” (normally open) or “NC” (normally closed) terminal based on desired state. For example, to activate a solenoid when RL1 energizes, connect one solenoid lead to “COM” and the other to “NO.” Keep inductive loads (motors, relays) under the 5A limit; add external snubbers if voltage spikes occur.
Pulse outputs PULSE1 and PULSE2 generate 5-24VDC signals, often used for stepper motor drives or counters. Configure via JP2: set to “VCC” for 24V pulses or “5V” for logic-level outputs. Wire the pulse “+” to the control device’s input and “-” to ground. For high-frequency applications (>1kHz), use twisted-pair cable and keep runs under 3 meters to minimize noise. Avoid shared ground paths with power circuits.
Follow this wire gauge and routing protocol:
- 24VDC power: 18 AWG minimum.
- Analog/digital signals: 20-22 AWG for distances <5m, 18 AWG for longer.
- Keep sensor wiring separate from AC lines or inductive loads; cross at 90° if unavoidable.
- Shielded cable for analog inputs (e.g., twisted-pair with foil shield) grounded at one end only.
Test each connection sequentially. Apply power, then use a multimeter to verify 24VDC at the supply terminals. Measure analog inputs with the expected signal (e.g., 5VDC if using a potentiometer). Toggle digital inputs with switches–check LED indicators on the module for status. For outputs, energize relays and confirm load engagement. Pulse outputs require an oscilloscope to verify frequency and voltage levels. Log all readings; discrepancies indicate wiring errors or jumper misconfigurations.
Secure all connections after validation. Use ferrules for stranded wire to prevent fraying; crimp them with a proper tool (1.5mm² size for 18-22 AWG). Dress cables neatly, avoiding sharp bends or pinch points. Label both ends of each wire–use heat-shrink tubing or printed tags. Update documentation with final configurations, including jumper positions and signal types. Store a digital copy alongside the project schematics for troubleshooting.
Frequent Errors in Module Integration for CH11 Boards
Skipping power sequence validation damages controllers. Always verify the 3.3V line stabilizes before connecting peripherals. Many omit this step, assuming power rails activate simultaneously. Use a multimeter to measure each rail–5V, 3.3V, and ground–before proceeding. A 0.1V deviation signals a potential short or inadequate power supply.
Incorrect GPIO Pin Mapping
- Using Broadcom (BCM) numbering when physical (BOARD) layout is required. Confusion between pin 3 (GPIO2) and 5 (GPIO3) causes initialization failures.
- Overlooking pull-up/pull-down resistor requirements for I2C/SPI. External 4.7kΩ resistors must be added if not pre-installed on the expansion board.
- Mixing up TX/RX lines on UART connections. Swap them if data transmission fails–transmit must pair with receive.
Neglecting EMI shielding invites signal interference. Twisted-pair cables should be used for high-speed data lines (SPI, USB 3.0). Route sensitive traces away from switching power regulators. A common oversight is bundling clock signals with data lines, degrading performance by 20-30%.
- Ground loops form when multiple devices share a ground reference without a single common point. Symptoms include erratic voltage readings or unexpected resets. Dedicate a star ground topology for all connected modules.
- Overloading current limits on GPIO pins triggers thermal shutdown. Each pin sources 16mA max–parallel connections must not exceed this threshold. Use a transistor or MOSFET for higher loads (e.g., relays, motors).
- Ignoring thermal dissipation leads to throttling. Ambient temperatures above 50°C require heatsinks or active cooling. Software undervolting alone is insufficient for sustained loads.
Misconfigured bus protocols corrupt data packets. For I2C, ensure correct slave addresses–common addresses like 0x27 for LCDs conflict with other modules. SPI requires precise clock polarity (CPOL) and phase (CPHA) settings–consult the module’s datasheet, not community guides, for defaults. Incorrect settings result in silent failures.
Connector and Soldering Pitfalls

Cold solder joints break under vibration or thermal cycling. Use a temperature-controlled iron (350°C) and flux core solder. Inspect joints under magnification–poor adhesion shows as dull, grainy surfaces. Ribbon cables fray if bent beyond a 90° radius–secure them with strain relief clamps.
Firmware compatibility gaps manifest as unresponsive hardware. Always flash the latest board support package (BSP) before wiring. Avoid third-party distributions unless verified for your specific hardware revision. Test with sudo dmesg | grep -i "error" after booting to catch initialization faults.