Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added GCode M282: Detach Servo #22759

Closed
wants to merge 3 commits into from

Conversation

Dakkaron
Copy link
Contributor

Description

As detailled in issue #22757, I have trouble with RC servos and an LPC1768 based board. The servo signal jitters, which causes the servo to hum and run hot. This PR adds a GCode (M282) which allows the user to detach servos whenever they want. It fixes the problem that I have, but it might be useful on other boards and in other scenarios as well.

With this, I can disable the servo after a tool change and thus stop it from humming and running hot. I already lost one servo to overheating.

DEACTIVATE_SERVOS_AFTER_MOVE cannot be used in my use case, since my servo is too weak to hold it's position during the tool change when detached.

So my current scenario is, I use M280 to use the servo in the right position for the tool change (M280 automatically attaches a servo), then I move the print head to perform the tool change, then I use M282 to detach the servo. This keeps it nice, quiet and cool.

Requirements

This PR requires a Servo

Benefits

Allows for manually detaching servos, keeping them powered as long as necessary, and keeping them detached, quiet and cool, whenever they are not needed.

Configurations

Nothing special, you just need a servo and enable the servo with #define NUM_SERVOS 1

Related Issues

#22757

@Dakkaron
Copy link
Contributor Author

PR to the wrong branch, I will resubmit

@Dakkaron Dakkaron closed this Sep 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant