Turning off PWM signal (to servos)?

Hey folks,

Similar to a question I had in another section, but more specific here.

I have some servos I am controlling with pwm.setPWM , and I would like to turn off the signal so I can freely position the servos by hand. Is such a thing possible? Wanting to do it via code rather than with any physical switches or toggling power off of the controller.

Cheers!

That depends on how you are sending the signal. The function "pwm.setPWM' is not part of the standard Servo library so the standard "servo.detach()" won't help you here. What library are you using?

try using the servo.detach() function

thank you ,Akash

m_k_akash:
try using the servo.detach() function

thank you ,Akash

See reply #1

TheMemberFormerlyKnownAsAWOL:
See reply #1

sorry, i think we both replied at the same time :slight_smile:

johnwasser:
.........What library are you using?

<Adafruit_PWMServoDriver.h>

I am using that to control a PCA9685 so I can use 2 pins for 15 servos.

check this out Adafruit_PWMServoDriver how to stop sending a signal the ser - adafruit industries

m_k_akash:
check this out https://forums.adafruit.com/viewtopic.php?f=19&t=113369

Well there you go, just set the value to '0' for position. Was concerned that would set it all the way CW, but not the case. Thanks!