Skip to main content
FW version: Stable

Input mapping

tip

It's highly recommended to understand Signal flow functionality before studying input mapping.

Input mapping allows you to connect physical inputs (GPIOs) to OPHION inputs.

All settings are located in the /io directory of the controller. OPHION processes up to two analog inputs (level_INPUT and level2_INPUT) and two digital inputs (IN1_INPUT and IN2_INPUT). These inputs can be mapped to physical inputs or receive values through the Ophion control CAN message.

Parameters

Available input mapping parameters in the /io directory:

ParameterDescriptionRange
level_INPUTMaps analog input 1 to a physical inputInput ID List
Use 0,255 for CAN_input
level2_INPUTMaps analog input 2 to a physical inputInput ID List
Use 0,255 for CAN_input
IN1_INPUTMaps digital input 1 to a physical inputInput ID List
Use 0,255 for CAN_input
IN2_INPUTMaps digital input 2 to a physical inputInput ID List
Use 0,255 for CAN_input
can_inputEnables CAN message control0: Disabled
1: Enabled
can_offsetSets CAN control message offset. MSG ID = offset + addrDefault 0x610
Range [0x600 - 0x700]

Physical inputs

When mapping to physical inputs, only the first parameter value is required.

  • For analog inputs: Set the corresponding GPIO input ID
  • For digital inputs: Set the corresponding GDIN or DIN input ID

Input ID List

note
  • GDIN (Gpio DIN) represents a digital input on a GPIO pin
  • The second input value is the device address, typically 0
example

To configure level_INPUT to use GPIO0, set parameter io/level_INPUT to 8,0

Input from CAN

To receive input via CAN, set the parameter to 0,255. This configures the input to read from the CAN message.

tip

CAN and physical inputs can be used simultaneously.