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

Question can I use MKS PWC and UPS together? #7

Open
sima35 opened this issue Apr 11, 2021 · 4 comments
Open

Question can I use MKS PWC and UPS together? #7

sima35 opened this issue Apr 11, 2021 · 4 comments

Comments

@sima35
Copy link

sima35 commented Apr 11, 2021

I have a problem that both the PWC and the UPS are going to the same connector. I can't read your hub page
image

@github051
Copy link

You cannot use both. Use only one

@proterian
Copy link

proterian commented Jul 23, 2021

why not? just Use different port and configure in Marlin.

@javicarrera
Copy link

javicarrera commented Jul 27, 2021

Yes, you can.
My configuration: Robin Nano v1.2 - PWC v3 - MKS UPS 24V - LVGL_UI
I am using the LVGL UI, I haven't tried it with other interfaces.

Basically you wire the PWC as shown in the instructions, the UPS module is not connected to the main board (just 24V and AC).

And we make following changes:

configuration_adv.h:
Enable: POWER_LOSS_RECOVERY
Enable: BACKUP_POWER_SUPPLY
Uncomment: #define POWER_LOSS_ZRAISE 20 // in mm

Marlin\src\pins\stm32f1\pins_MKS_ROBIN_NANO.h:
Change this part.
Uncomment #define MKSPWC, add a new definition UPS.
which controls if POWER_LOSS_PIN is declared in LVGL_UI interface.

//
// Misc. Functions
//
#if HAS_TFT_LVGL_UI
// LVGL
[…]

#define MKSPWC
#define UPS

#ifdef MKSPWC
#define SUICIDE_PIN PB2
#define SUICIDE_PIN_INVERTING false
#define KILL_PIN PA2
#define KILL_PIN_STATE true
#ifdef UPS
#define POWER_LOSS_PIN PA2
#endif
#endif

#define MT_DET_1_PIN PA4
#define MT_DET_2_PIN PE6
#define MT_DET_PIN_INVERTING false

#define WIFI_IO0_PIN PC13
#define WIFI_IO1_PIN PC7
#define WIFI_RESET_PIN PA5
#else
#ifdef UPS
#define POWER_LOSS_PIN PA2
#endif
#define PS_ON_PIN PB2
#define FIL_RUNOUT_PIN PA4
#define FIL_RUNOUT2_PIN PE6
#endif

@Neispraven
Copy link

hi friend I have the same problem connecting PWC and UPS together my board is MKS SGEN LV 2.0 if it's not difficult for you help me figure it out in more detail ... here is my link to facebook https://www.facebook.com/profile.php? id = 100042489549041

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

5 participants