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

Add external pin to control PSU state M80/M81 #20006

Closed
wants to merge 1 commit into from

Conversation

leowww
Copy link

@leowww leowww commented Nov 2, 2020

Requirements

To enable Marlin to have an external way (physical pin) to change the Power Source Unit (PSU) state besides M80 and M81 G-code commands or the "Switch Power" option on LCD menu.

Description

I enabled the PSU_CONTROL to switch my PSU using the PS_ON_PIN to enable power on/off through M80/M81.
But I thought of adding a button on my printer to have an option to turn on the PSU physically and not only by G-code commands or navigating through the LCD menu and have to locate the "Switch Power" option.

Benefits

Add an option for the users of PSU_CONTROL to easy control the PSU state.

Configurations

Just uncomment line with PSU_CONTROL definition:
#define PSU_CONTROL
The default PSU_EXT_PIN is set to 58 that is exposed in AUX-1 header of RAMPS 1.4.
When the PSU_EXT_PIN is set to PSU_EXT_PIN_STATE it will verify the actual on/off state of PSU and change it accordingly.

Related Issues

There are no related problems, but it will correct the initial behavior that states that the printer was "Ready" when in reality it is still in "OFF" state.

@thinkyhead
Copy link
Member

Duplicate of #18389

@thinkyhead thinkyhead marked this as a duplicate of #18389 Nov 3, 2020
@thinkyhead thinkyhead force-pushed the bugfix-2.0.x branch 3 times, most recently from 4274255 to a97a1ae Compare November 14, 2020 02:06
@sjasonsmith
Copy link
Contributor

I am closing this, since it's needs will be met by #18389. We need to work to get that other PR completed.

It would help greatly if you went to that PR and tried to use it to implement your PSU control buttons.

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.

4 participants