Skip to main content

PWM in Depth

PWM sends a repeating pulse to represent power.


1 Notes

  • Keep wires short; avoid noisy runs near motors
  • Calibrate if your controller supports it
  • One PWM per motor controller

2 Example

PWMSparkMax motor = new PWMSparkMax(0);
motor.set(0.5);