Skip to main content

Interfaces and Mapping

Quick reference for network interfaces, serial device mappings, I2C addresses, and GPIO assignments.

IRIV PiControl Block Diagram

Block diagram showing system architecture, interface connections, and signal flow between CM4, I/O subsystems, and peripheral devices.

Network Interfaces

Physical PortSpeedControllerOS Interface
Gigabit Ethernet10/100/1000MCM4 default Etherneteth0
10/100M Ethernet10/100MUSB Ethernet controllereth1

Notes:

  • eth0 is the primary CM4 Ethernet interface
  • eth1 is extended via USB-to-Ethernet controller

Serial Device Mappings

InterfaceMaximum Baud RateDevice PathNotes
RS485500 kbps/dev/ttyACM0Automatic direction control, 120Ω termination available
RS232120 kbps/dev/ttyACM1Standard RS232 signals (Tx, Rx, GND)

Important: Both serial interfaces are accessed via ACM (Abstract Control Model) devices, not traditional TTY serial ports.

I2C Device Addresses

DeviceI2C BusAddressFunction
SSD1306 OLEDI2C10x3C0.96" status display
ADS1115 ADCI2C10x484-channel analog input
PCF85063A RTCI2C00x51Real-time clock
ATECC608BI2C10x60Crypto authentication

I2C Bus Configuration:

  • I2C0 (I2C_vc): Used for RTC on CSI/DSI interface
  • I2C1 (I2C_arm): Used for ADC, OLED, and crypto chip

GPIO Mapping

Digital Inputs

InputGPIO PinTerminal 2 Label
DI0GPIO13DI0
DI1GPIO17DI1
DI2GPIO22DI2
DI3GPIO27DI3

Characteristics: Wet contact, active HIGH, 3-50V input range

Digital Outputs

OutputGPIO PinTerminal 1 Label
DO0GPIO23DO0
DO1GPIO24DO1
DO2GPIO25DO2
DO3GPIO26DO3

Characteristics: Dry contact (solid state relay), active HIGH, up to 50V 500mA

User Controls and Indicators

FunctionGPIO PinLocation
User ButtonGPIO4Front panel
User LED 0GPIO20Front panel
User LED 1GPIO21Front panel
Active BuzzerGPIO19Internal
Mini PCIe PowerGPIO6Internal (enable/disable power)

System Status LEDs

LEDFunctionControl
PWR (Red)CM4 power statusHardware
ACT (Green)CM4 eMMC/storage activityHardware
M.2NVMe SSD activityHardware

Note: PWR and ACT LEDs have the same behavior as the corresponding LEDs on Raspberry Pi 4.

Analog Input Channel Mapping

ChannelTerminal 2 LabelADS1115 Input
AI0AI0AIN0
AI1AI1AIN1
AI2AI2AIN2
AI3AI3AIN3

Common Ground: AGND (isolated from system ground)

USB Interface Mapping

PortTypeSpeedLocation
USB 2.0 Port 1Type-A480 MbpsRight side panel
USB 2.0 Port 2Type-A480 MbpsRight side panel
USB-CType-CNot specifiedRight side panel (boot/debug mode)

Combined current limit for USB 2.0 ports: 1000mA

Expansion Socket Mapping

SocketInterfaceSignals AvailableNotes
M.2 Key-MPCIeGen 2 x1-laneNVMe SSD only (SATA not supported)
Mini PCIeUSB + SPIUSB 2.0, SPIPCIe signals NOT connected

Configuration Files

Boot Configuration

File path (Raspberry Pi OS Bullseye and earlier):

/boot/config.txt

File path (Raspberry Pi OS Bookworm and later):

/boot/firmware/config.txt

Background Script

OLED and system monitoring script:

/usr/local/bin/iriv_pi_control/background_script.py

This script runs automatically after configuration to display system status on OLED.

Quick Reference Summary

For GPIO control: See programming-reference.md For terminal wiring: See terminal-1.md and terminal-2.md For hardware locations: See hardware-layout.md and internal-board-layout.md


Source(s):

  • IRIV PiControl CM4 User Manual, Rev 1.3, Nov 2025, Sections 3, 4, 5, 6