makerbase-mks / MKS-Power-Control

MKS PWC Power Monitoring auto power off Continued to Play Module automatically put off power detect 3D printer parts; MKS UPS12V/24V provide Z-AXIS move, the hight 20mm-200mm between
https://makerbase.aliexpress.com/store/group/Power-Control/1047297_516890609.html?spm=a2g0o.store_home.pcShopHead_8325768.1_2_2
GNU General Public License v3.0
24 stars 3 forks source link

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

Open sima35 opened 3 years ago

sima35 commented 3 years ago

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 commented 3 years ago

You cannot use both. Use only one

proterian commented 3 years ago

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

javicarrera commented 3 years ago

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 commented 2 years ago

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