Connecting Hobbyservo TowerPro SG90
-
I have a TowerPro Miniservo connected to out9 and we configured in the doc in a macro.
I have created two macros for testing one for a rotation to the right and one for a rotation to the left.M950 S1 C "out9" ; right turn
M280 P1 S80M950 S1 C"!out9" ; left turn
M280 P1 S80A rotation to the right works fast
A rotation to the left works very slowly.What could be the reason?
It is an analog servo. I have also tested a digital servo that only rotates clockwise.Do you have any idea what I need to change to make the servo turn fast in both directions?
Thanks
Lars -
You should define the servo only once (e.g. with
M950 S1 C "out9"
) then you set it to different positions by using e.g.M280 P1 S1000 ; right turn M280 P1 S2000 ; left turn
(but I don't know your orientation, so left and right might be reversed).
Also, servos are all over the place in respect to timing - so you need to do quite a lot of trial-and-error to determine the appropriate range for the S parameter. Either use the range 0-543 or the range 544 and greater - one is a pseudo angle, the other is pulse-width-in-microseconds
-
it works, thanks a lot.
-
-