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

MKS PWC 3.0 wiring and config #11

Open
oleksii-suprun opened this issue Jun 12, 2023 · 2 comments
Open

MKS PWC 3.0 wiring and config #11

oleksii-suprun opened this issue Jun 12, 2023 · 2 comments

Comments

@oleksii-suprun
Copy link

oleksii-suprun commented Jun 12, 2023

Hi All!

Did anyone connect MKS PWS 3.0 board to Manta M5P? I found out how to connect and configure PW-OFF in this topic (makerbase-mks/Klipper-for-MKS-Boards#18 (comment)) and now I can power on my board using a power button, but I'm not able to power it off with that button.

Thanks in advance. Any help will be much appreciated.

@oleksii-suprun
Copy link
Author

oleksii-suprun commented Jun 23, 2023

After some time, I identified, that my wiring was not 100% correct and did not work as expected. After some tries and failures, I identified the following problems:

  1. CB1 module which I used together with my Manta M5P has a different pinout than RPi(CM4).
  2. Manta's GPIO has 3.3V logic, but MKS PWS is designed to work with 5V.

It was very challenging to find a free pin to connect the PWS module. The main problem was that not only naming of pins is different between RPi (CM4), but some of them are incompatible. The following links provide a bit of information on how to use GPIO with CB1 and which pins were already discovered:

After some back and forth, I finally identified which GPIO pin I can use for wiring. But then it was required to resolve the issue with incompatible logic voltages (3.3V logic and 5V). I used the logic level converter module. Now everything works fine.

My moonraker.conf:

[power printer]
type: gpio
pin: gpio73
off_when_shutdown: True
initial_state: on
bound_services: klipper

My printer.conf:

[gcode_macro M81]
gcode:
  {action_call_remote_method(
    "set_device_power", device="printer", state="off"
  )}

Other useful links:

@Pamilias
Copy link

I tried this and measured 3.3v when on and 5v when off. It should be 0v when off right?

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

No branches or pull requests

2 participants