Servo Direction
-
I have just setup a new servo on my duet wifi but it is turning anticlockwise. How do i get it to work in the clockwise direction?
-
Do you mean an RC servo, or a servo motor controlling an axis?
-
RC Servo to be used for tool changing
-
The S parameter in the M280 command determines the pulse width sent to the servo. How the servo interprets the pulse with depends on the servo manufacturer. So to get it to turn the other way, swap low S values for high values in your M280 commands.
btw E3D used a servo originally in their tool changer. They ditched it in the production version because it didn't last for enough tool changes.
-
I set this up using:
M307 H5 A-1 C-1 D-1
M42 P5 I1 S1 F500.I connected it up to the PWM3 channel on the Duex5. When I send the M280 P5 S90 command, it moves anti clockwise.
-
@dawgheart said in Servo Direction:
When I send the M280 P5 S90 command, it moves anti clockwise.
It's moving to the "S90" position from wherever it happens to be when you powered it on. Depending on the initial position, that could be clockwise or anticlockwise.
-
The approach I am using is both a servo and a large N52 Magnet. Thought about using an electromagnet but my prototype was drawing too much power and getting very hot. The magnet is the main tool holder but I am just using the servo for stability.
-
@dc42
OK..I will try a different approach. Thank you.