Replies: 2 comments 5 replies
-
I ran into a similar issue. Instead of Hope this helps! |
Beta Was this translation helpful? Give feedback.
-
I just realized something. Maybe I'm using the wrong ESP32 servo library? I bet there's more than one... Which one is this developed with? I've been using https://github.com/madhephaestus/ESP32Servo |
Beta Was this translation helpful? Give feedback.
-
I've noticed a problem with my two-servo implementation. I detach the servos after performing a series of moves to take loads off the servos, etc. I've noticed the second servo will sometimes (not consistently, but often) change position rapidly on the detach.
With
TRACE
defined, I don't see any output between the detach statements, so nothing is happening that's logged.I made a rough guess that maybe the current PWM value is getting altered, because I read this in the docs:
and thought maybe that shift was changing the servo position as some sort of side-effect. It's probably a bad guess, but by writing the current position of the second servo again before detaching it, it seems to have worked around the problem:
Is there some sort of bug going on in the library that causes this? None of the servos should move when any other servo is detached (including itself), correct? These are dumb servos, they don't have a signal loss position or anything like that.
Beta Was this translation helpful? Give feedback.
All reactions