You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ev3dev-lang-python version: INSERT ALL VERSIONS GIVEN BY dpkg-query -l {python3,micropython}-ev3dev*
ii micropython-ev3dev2 2.0.0 all Python language bindings for ev3dev for MicroPython
ii python3-ev3dev 1.2.0 all Python language bindings for ev3dev
ii python3-ev3dev2 2.0.0 all Python language bindings for ev3dev
I am trying to control MG995 servo - it is continuous rotation hobby-type servo. All I do is
I expected the servo rotate counter-clockwise for some degrees and stop, but when executed the servo is starting to rotate and doesn't stop.
If I set position_sp=-20 then the servo rotates more slowly but doesn't stop as well.
Please advise, how could I make the servo rotate for say 90 and 180 degrees (approximately)
BTW, when I manually rotate the servo and read position_sp after that It shows -150 value. Could you please explain this.
Thanks!
The text was updated successfully, but these errors were encountered:
That is the way continuous rotation servos work. You can only control the speed, not the position. They do not have any mechanism for position feedback.
To know the position, you will need an additional sensor such as limit switches or a rotary encoder.
dpkg-query -l {python3,micropython}-ev3dev*
ii micropython-ev3dev2 2.0.0 all Python language bindings for ev3dev for MicroPython
ii python3-ev3dev 1.2.0 all Python language bindings for ev3dev
ii python3-ev3dev2 2.0.0 all Python language bindings for ev3dev
I am trying to control MG995 servo - it is continuous rotation hobby-type servo. All I do is
I expected the servo rotate counter-clockwise for some degrees and stop, but when executed the servo is starting to rotate and doesn't stop.
If I set position_sp=-20 then the servo rotates more slowly but doesn't stop as well.
Please advise, how could I make the servo rotate for say 90 and 180 degrees (approximately)
BTW, when I manually rotate the servo and read position_sp after that It shows -150 value. Could you please explain this.
Thanks!
The text was updated successfully, but these errors were encountered: