Set PWM from activity