Getting Started Cameras & Video Detection & Recording Automation & Events Actions Integration & Connectivity Network & Discovery AI & Remote Control MQTT Modbus Pi4J & Raspberry Pi GPIO ZeroMQ System & Administration Comparisons Use Cases Troubleshooting About & Legal
Home / Documentation / PCA9685 Gamepad 2D Vector Action
Action ยท Pi4J 2.0.0

PCA9685 Gamepad 2D Vector

Maps two gamepad axes to two PCA9685 PWM channels with range, dead-zone, direction, and zero-origin controls.

ParameterDescription
PCA9685 Thing / gamepadTarget controller and input gamepad ID.
Stop thresholdAxis dead zone from -1 through 1.
X / Y axis indexGamepad axes; -1 disables an axis.
X / Y min;mid;maxSemicolon-separated pulse widths.
X / Y channelTarget PCA9685 channels.
Reverse / Y from zeroDirection and throttle-origin controls.
Neutral first: validate wiring and midpoint pulse values with disconnected or safely supported actuators.
PTZ

Two-channel pan and tilt

Drive two servo channels from a browser-connected gamepad.

RC

External steering and throttle

Tune channel ranges, reversal, dead zone, and zero-origin behavior.