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 / Pi4J Set PWM Action
Action · Pi4J 2.0.0

Pi4J Set PWM

Sets a configured PWM GPIO by duty cycle or pulse width.

ParameterDescriptionDefault
Pi4J Thing / BCMTarget controller and configured PWM pin.Required
Control modeDuty cycle or pulse width.PULSE_WIDTH
Duty cycle0–100 percent.50
Pulse widthMicroseconds, zero or greater.1500 µs
SERVO

Servo position

Apply an exact pulse width for position or neutral control.

DUTY

Proportional output

Set LED brightness, fan speed, or a motor-driver input by duty cycle.