mledan / OctoPrint-EasyServo

Here is a growing plugin you can use to easily control multiple servo motors using the octoprint interface.
21 stars 12 forks source link

Set home coordinates? #13

Closed andykaplan closed 3 years ago

andykaplan commented 3 years ago

Awesome plugin. Built a pan-tilt servo rig, seems to work GREAT.

Only issue: Home is in the "wrong" place. The camera is tilted back too far and twisted to the right.

Any way to set this position?

iFrostizz commented 3 years ago

If there is no strange behaviour from the servos, you should place the servos at their middle (90° in angle or 1500us in pulse width) and then insert the axis. The aim here is to have this angle when your pan-tilt is in his neutral position. Of course, you can do wathever you want regarding your needs.

andykaplan commented 3 years ago

Thanks. I’ll need to disassemble and rebuild.

(Was hoping for a way to move the servos around using your arrow buttons, then click “set” to make that the home position — but I get that’s a bunch of work.)

On Nov 18, 2020, at 11:36 AM, Guyot François notifications@github.com wrote:

If there is no strange behaviour from the servos, you should place the servos at their middle (90° in angle or 1500us in pulse width) and then insert the axis. The aim here is to have this angle when your pan-tilt is in his neutral position. Of course, you can do wathever you want regarding your needs.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/iFrostizz/OctoPrint-EasyServo/issues/13#issuecomment-729799639, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEKG4QPAE3JU3T4W7W5E5NLSQPZZVANCNFSM4TWP6FEA.

iFrostizz commented 3 years ago

That could be a dream if our cheap servos could turn continuously, and this feature could be added but it is not the case. What is the name of your servo ? For the "cheap" and most common ones (SG90), the servo will only be able to go from 0 to 180° (~500 --> ~2500us) and if the pulsewidth that was set is out of the boundaries, it could simply break the servo rotor by forcing on it. Not good...

andykaplan commented 3 years ago

Makes sense — although I don’t think most people would need more than 90 degrees, so there is some room on either side to spare…

(Yes, cheap and common servos, SG90)

I’ll just take my mount apart and re-do the servo rotor position.

On Nov 18, 2020, at 3:10 PM, Guyot François notifications@github.com wrote:

That could be a dream if our cheap servos could turn continuously, and this feature could be added but it is not the case. What is the name of your servo ? For the "cheap" and most common ones (SG90), the servo will only be able to go from 0 to 180° (~500 --> ~2500us) and if the pulsewidth that was set is out of the boundaries, it could simply break the servo rotor by forcing on it. Not good...

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/iFrostizz/OctoPrint-EasyServo/issues/13#issuecomment-729925311, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEKG4QMSI5NTMJZS33WAM6DSQQS4BANCNFSM4TWP6FEA.

iFrostizz commented 3 years ago

Good luck!