BIGTREETECH-MINI-UPS-V2.0 icon indicating copy to clipboard operation
BIGTREETECH-MINI-UPS-V2.0 copied to clipboard

Btt ups doesn't work on versions above 2.0.5

Open berrenger opened this issue 4 years ago • 19 comments

Btt ups doesn't work on versions above 2.0.5. I was able to compile and run it with Marlin version 2.0.5, but it doesn't work stable. I could not manage to run it on higher versions.

berrenger avatar Oct 27 '20 19:10 berrenger

My hardware: skr 1.4 turbo, btt tmc 2209, tft 35 v3, bltouch 3.1

berrenger avatar Oct 27 '20 19:10 berrenger

I have same problem , in tft mode UPS is not working (power loss recovery). [only relay works good , but relay with UPS not working]

BTT skr pro v1.1 tft35 v3.0 UPS 24V v1.0 relay v1.2

HTTYD9 avatar Nov 12 '20 12:11 HTTYD9

Use marlin 2.0.5

berrenger avatar Nov 12 '20 21:11 berrenger

somehow i managed to get it worked.

hardware: skr 1.4 t, relay and mini ups 24V, tft35 v3.0 software: marlin bugfix 2.0.7

all marlin configs are done according to instructions, i tried several combinations but whenever i cut the power, z didn't raise.

finally switched to marlin emulator on my tft35, in config menu i've turned on power outage and save, started a print over sd, cut the power a few minutes later and voila!

in conf_advc.

#define POWER_LOSS_RECOVERY #if ENABLED(POWER_LOSS_RECOVERY) #define PLR_ENABLED_DEFAULT false #define BACKUP_POWER_SUPPLY
//#define POWER_LOSS_RECOVER_ZHOME
#define POWER_LOSS_ZRAISE 10 #define POWER_LOSS_PIN P1_25 // i used e1det port instead of pwrdet port #define POWER_LOSS_STATE HIGH #define POWER_LOSS_PULL
#define POWER_LOSS_PURGE_LEN 20 #define POWER_LOSS_RETRACT_LEN 10

ilkersismanoglu avatar Nov 19 '20 18:11 ilkersismanoglu

somehow i managed to get it worked.

hardware: skr 1.4 t, relay and mini ups 24V, tft35 v3.0 software: marlin bugfix 2.0.7

all marlin configs are done according to instructions, i tried several combinations but whenever i cut the power, z didn't raise.

finally switched to marlin emulator on my tft35, in config menu i've turned on power outage and save, started a print over sd, cut the power a few minutes later and voila!

in conf_advc.

#define POWER_LOSS_RECOVERY #if ENABLED(POWER_LOSS_RECOVERY) #define PLR_ENABLED_DEFAULT false #define BACKUP_POWER_SUPPLY //#define POWER_LOSS_RECOVER_ZHOME #define POWER_LOSS_ZRAISE 10 #define POWER_LOSS_PIN P1_25 // i used e1det port instead of pwrdet port #define POWER_LOSS_STATE HIGH #define POWER_LOSS_PULL #define POWER_LOSS_PURGE_LEN 20 #define POWER_LOSS_RETRACT_LEN 10

Dostum problem marlin modunda değil zaten, grafik modunda çalıştırmak. Onu da ben yaptım zaten. Bu arada ben de Türküm 😄

berrenger avatar Nov 19 '20 18:11 berrenger

somehow i managed to get it worked. hardware: skr 1.4 t, relay and mini ups 24V, tft35 v3.0 software: marlin bugfix 2.0.7 all marlin configs are done according to instructions, i tried several combinations but whenever i cut the power, z didn't raise. finally switched to marlin emulator on my tft35, in config menu i've turned on power outage and save, started a print over sd, cut the power a few minutes later and voila! in conf_advc. #define POWER_LOSS_RECOVERY #if ENABLED(POWER_LOSS_RECOVERY) #define PLR_ENABLED_DEFAULT false #define BACKUP_POWER_SUPPLY //#define POWER_LOSS_RECOVER_ZHOME #define POWER_LOSS_ZRAISE 10 #define POWER_LOSS_PIN P1_25 // i used e1det port instead of pwrdet port #define POWER_LOSS_STATE HIGH #define POWER_LOSS_PULL #define POWER_LOSS_PURGE_LEN 20 #define POWER_LOSS_RETRACT_LEN 10

Dostum problem marlin modunda değil zaten, grafik modunda çalıştırmak. Onu da ben yaptım zaten. Bu arada ben de Türküm 😄

tamam bu işlemden sonra grafik modunda da çalışmaya başladı zaten,

ilkersismanoglu avatar Nov 19 '20 21:11 ilkersismanoglu

somehow i managed to get it worked. hardware: skr 1.4 t, relay and mini ups 24V, tft35 v3.0 software: marlin bugfix 2.0.7 all marlin configs are done according to instructions, i tried several combinations but whenever i cut the power, z didn't raise. finally switched to marlin emulator on my tft35, in config menu i've turned on power outage and save, started a print over sd, cut the power a few minutes later and voila! in conf_advc. #define POWER_LOSS_RECOVERY #if ENABLED(POWER_LOSS_RECOVERY) #define PLR_ENABLED_DEFAULT false #define BACKUP_POWER_SUPPLY //#define POWER_LOSS_RECOVER_ZHOME #define POWER_LOSS_ZRAISE 10 #define POWER_LOSS_PIN P1_25 // i used e1det port instead of pwrdet port #define POWER_LOSS_STATE HIGH #define POWER_LOSS_PULL #define POWER_LOSS_PURGE_LEN 20 #define POWER_LOSS_RETRACT_LEN 10

Dostum problem marlin modunda değil zaten, grafik modunda çalıştırmak. Onu da ben yaptım zaten. Bu arada ben de Türküm 😄

tamam bu işlemden sonra grafik modunda da çalışmaya başladı zaten,

Peki elektrik kesintisinden sonra ve z yükselmesi işlemi bittiğinde z steplerinde çok küçük bir hareket oluyor mu? Ben de olmuştu. Elini z vidasına koyup kontrol eder misin?

berrenger avatar Nov 19 '20 22:11 berrenger

somehow i managed to get it worked. hardware: skr 1.4 t, relay and mini ups 24V, tft35 v3.0 software: marlin bugfix 2.0.7 all marlin configs are done according to instructions, i tried several combinations but whenever i cut the power, z didn't raise. finally switched to marlin emulator on my tft35, in config menu i've turned on power outage and save, started a print over sd, cut the power a few minutes later and voila! in conf_advc. #define POWER_LOSS_RECOVERY #if ENABLED(POWER_LOSS_RECOVERY) #define PLR_ENABLED_DEFAULT false #define BACKUP_POWER_SUPPLY //#define POWER_LOSS_RECOVER_ZHOME #define POWER_LOSS_ZRAISE 10 #define POWER_LOSS_PIN P1_25 // i used e1det port instead of pwrdet port #define POWER_LOSS_STATE HIGH #define POWER_LOSS_PULL #define POWER_LOSS_PURGE_LEN 20 #define POWER_LOSS_RETRACT_LEN 10

Dostum problem marlin modunda değil zaten, grafik modunda çalıştırmak. Onu da ben yaptım zaten. Bu arada ben de Türküm 😄

tamam bu işlemden sonra grafik modunda da çalışmaya başladı zaten,

Peki elektrik kesintisinden sonra ve z yükselmesi işlemi bittiğinde z steplerinde çok küçük bir hareket oluyor mu? Ben de olmuştu. Elini z vidasına koyup kontrol eder misin?

Bugün dediğinizi kontrol ettim herhangi bşr oynama yok..

Ancak başka bir sorunla karşılaştım dün deneme şansım olmamıştı.

Touch modda resume dediğimde baskı baştan başlıyor kaldığı yerden devam etmiyor, marlin modda hiç bir sıkıntı yok

Sanırım bu tft ekran touch modunda saçmalıyor

ilkersismanoglu avatar Nov 20 '20 14:11 ilkersismanoglu

somehow i managed to get it worked.

hardware: skr 1.4 t, relay and mini ups 24V, tft35 v3.0 software: marlin bugfix 2.0.7

all marlin configs are done according to instructions, i tried several combinations but whenever i cut the power, z didn't raise.

finally switched to marlin emulator on my tft35, in config menu i've turned on power outage and save, started a print over sd, cut the power a few minutes later and voila!

in conf_advc.

#define POWER_LOSS_RECOVERY #if ENABLED(POWER_LOSS_RECOVERY) #define PLR_ENABLED_DEFAULT false #define BACKUP_POWER_SUPPLY //#define POWER_LOSS_RECOVER_ZHOME #define POWER_LOSS_ZRAISE 10 #define POWER_LOSS_PIN P1_25 // i used e1det port instead of pwrdet port #define POWER_LOSS_STATE HIGH #define POWER_LOSS_PULL #define POWER_LOSS_PURGE_LEN 20 #define POWER_LOSS_RETRACT_LEN 10

New problem,

There’s something wrong with this tft35 v3.0

When tft in marlin mode, everything is perfect. on power failure pausing print, raising z, sending kill code.. when power back on, click resume and printing continues perfectly from the last coordinates.

When tft in touch mode and power back on, it prompts me to resume. i choose ok, BUT printing starts from the beginning.

ilkersismanoglu avatar Nov 20 '20 15:11 ilkersismanoglu

Same problem here. working in marlin emulation mode but NOT in tft touch mode. Srk-mini-e3-v2.0 + blTouchV2.1 + tft-e3-v3.0 + ups-24v-v1.0 Tested in marlin2.7.0.2 and now tested in bugfix-2.0.x (latest as of 8th Dec'20) with configuration files for ender-3 My present set of statements are #define POWER_LOSS_RECOVERY #if ENABLED(POWER_LOSS_RECOVERY) #define PLR_ENABLED_DEFAULT true #define BACKUP_POWER_SUPPLY //#define POWER_LOSS_RECOVER_ZHOME #define POWER_LOSS_ZRAISE 15 #define POWER_LOSS_PIN PC12 // PWR_DET pin in Srk-mini-e3-v2.0 #define POWER_LOSS_STATE HIGH //#define POWER_LOSS_PULLUP #define POWER_LOSS_PULLDOWN #define POWER_LOSS_PURGE_LEN 20 #define POWER_LOSS_RETRACT_LEN 10

Everything else other then in tft touch mode is working as intended. So, still looking for a conclusion....

rakeshbarman avatar Dec 11 '20 18:12 rakeshbarman

#define POWER_LOSS_PULLDOWN >> by changing it will fix , power loss recovery in tft mode ?

HTTYD9 avatar Dec 11 '20 18:12 HTTYD9

The problem is solved for me.. I changed sd card configuration from lcd to onboard in marlin conf.

Now i can print any file from onboard sd via tft touch mode and everything works. Ups, relay, etc.

ilkersismanoglu avatar Dec 11 '20 18:12 ilkersismanoglu

The problem is solved for me.. I changed sd card configuration from lcd to onboard in marlin conf.

Now i can print any file from onboard sd via tft touch mode and everything works. Ups, relay, etc.

Hi @ilkersismanoglu ,can u send me your Marlin folder? I'm using original LCD from Ender 3 Pro but Still not working for me, in combination with SKR MINI E3 V2 and BTT UPS 24V.

atharvbadkas avatar Dec 12 '20 02:12 atharvbadkas

The problem is solved for me.. I changed sd card configuration from lcd to onboard in marlin conf.

Now i can print any file from onboard sd via tft touch mode and everything works. Ups, relay, etc.

I checked my configuration_adv and found that it is already set as #define SDCARD_CONNECTION ONBOARD Therefore didn't change anything. Back to square one, No power_loss_recovery from Touch Screen Mode, So, still looking for a conclusion....

rakeshbarman avatar Dec 12 '20 11:12 rakeshbarman

Same problem here. working in marlin emulation mode but NOT in tft touch mode. Srk-mini-e3-v2.0 + blTouchV2.1 + tft-e3-v3.0 + ups-24v-v1.0 Tested in marlin2.7.0.2 and now tested in bugfix-2.0.x (latest as of 8th Dec'20) with configuration files for ender-3 Interestingly, the latest bugfix-2.0.x has two new #define statement to choose from. //#define POWER_LOSS_PULLUP //#define POWER_LOSS_PULLDOWN Just as a Test and taking a hint from https://reprap.org/forum/read.php?415,872921 that our sensor may need to be set up as pulldown. My present set of statements are #define POWER_LOSS_RECOVERY #if ENABLED(POWER_LOSS_RECOVERY) #define PLR_ENABLED_DEFAULT true #define BACKUP_POWER_SUPPLY //#define POWER_LOSS_RECOVER_ZHOME #define POWER_LOSS_ZRAISE 15 #define POWER_LOSS_PIN PC12 // PWR_DET pin in Srk-mini-e3-v2.0 #define POWER_LOSS_STATE HIGH //#define POWER_LOSS_PULLUP #define POWER_LOSS_PULLDOWN #define POWER_LOSS_PURGE_LEN 20 #define POWER_LOSS_RETRACT_LEN 10

Everything else other then in tft touch mode is working as intended. So, still looking for a conclusion....

I made the following changes in the TouchScreenFirmware's config,ini and IT IS WORKING !

  1. From https://github.com/bigtreetech/BIGTREETECH-TouchScreenFirmware download the code.

  2. Inside the code we will find a folder named "Copy to SD Card root directory to update"

  3. Copy (1) BIGTREE_TFT35_V3.0_E3.26.x.bin (2) config.ini in a FAT32 formatted miniSD card.

  4. Open the folder "THEME_Unified Menu Material theme" and now copy the folder (3) "TFT35" to the miniSD card. 5, Edit the file config.ini as below i) find the line start_gcode:G28 XY R20\n and change it to start_gcode:M75\nG28 XY R20\n ii) find the line end_gcode:M104 S0\nM140 S0\nM18\n and change it to end_gcode:M77\nM104 S0\nM140 S0\nM18\n iii)find the line cancel_gcode:M104 S0\nM140 S0\nG28 XY R10\n and change it to M77\nM104 S0\nM140 S0\nG28 XY R10\n

  5. Save the file and insert the card in the TFT35 card reader and let it update.

    NB: marlin command M75 = Start Print Job Timer and M77 = Stop Print Job Timer I think this inclusion was necessary as time keeper for our purpose

Everything is working as it should. One thing to remember though is that we will not be prompted to resume print, After power fails during a print and thereupon when power resumes, wait for the machine to boot and just press the encoder button once. Printing start from where it left after Z_axis homing. Kindly try and share your experience with this test.


In a different note, not related to TFTtouchscreen, I would also like to share that I made the following changes in marlin fw

Marlin/src/feature/powerloss.h

  //#define DEBUG_POWER_LOSS_RECOVERY
  #define SAVE_EACH_CMD_MODE // uncommented.
  //#define SAVE_INFO_INTERVAL_MS 0

rakeshbarman avatar Dec 14 '20 13:12 rakeshbarman

Hi...I contacted BTT And they sent me files claiming they have tested it on BTT SKR MINI E3V2 AND BTT UPS 24V for Ender 3..but I'm still facing same issue with their firmware also....can u test it on your machine...and let me know??.... thanks...link https://drive.google.com/folderview?id=1lLJ8wB38pCyJNlhxEXdSRXJNUCHG2Eis

atharvbadkas avatar Dec 18 '20 11:12 atharvbadkas

@HTTYD9 Some time ago you posted:

I have same problem , in tft mode UPS is not working (power loss recovery). [only relay works good , but relay with UPS not working]

BTT skr pro v1.1 tft35 v3.0 UPS 24V v1.0 relay v1.2

Would you please be so kind, to tell me, how you achieved it, to make the 'relay' work with the 'skr pro'? Thank you in advance

discip avatar Feb 25 '21 16:02 discip

its working... UPS needs to be connected to SKR Board... setup up in firmware... but also you need to enable "normal powerloss recovery" in TFT config.ini and also set the z raise height correctly there... automatic startcode M75 and it should be fine then...

the "BTT UPS" setting in TFT doesn't do anything (yet?!)

DaStivi avatar Feb 25 '21 16:02 DaStivi

Same problem here. working in marlin emulation mode but NOT in tft touch mode. Srk-mini-e3-v2.0 + blTouchV2.1 + tft-e3-v3.0 + ups-24v-v1.0 Tested in marlin2.7.0.2 and now tested in bugfix-2.0.x (latest as of 8th Dec'20) with configuration files for ender-3 Interestingly, the latest bugfix-2.0.x has two new #define statement to choose from. //#define POWER_LOSS_PULLUP //#define POWER_LOSS_PULLDOWN Just as a Test and taking a hint from https://reprap.org/forum/read.php?415,872921 that our sensor may need to be set up as pulldown. My present set of statements are #define POWER_LOSS_RECOVERY #if ENABLED(POWER_LOSS_RECOVERY) #define PLR_ENABLED_DEFAULT true #define BACKUP_POWER_SUPPLY //#define POWER_LOSS_RECOVER_ZHOME #define POWER_LOSS_ZRAISE 15 #define POWER_LOSS_PIN PC12 // PWR_DET pin in Srk-mini-e3-v2.0 #define POWER_LOSS_STATE HIGH //#define POWER_LOSS_PULLUP #define POWER_LOSS_PULLDOWN #define POWER_LOSS_PURGE_LEN 20 #define POWER_LOSS_RETRACT_LEN 10 Everything else other then in tft touch mode is working as intended. So, still looking for a conclusion....

I made the following changes in the TouchScreenFirmware's config,ini and IT IS WORKING !

1. From https://github.com/bigtreetech/BIGTREETECH-TouchScreenFirmware download the code.

2. Inside the code we will find a folder named "Copy to SD Card root directory to update"

3. Copy (1)   BIGTREE_TFT35_V3.0_E3.26.x.bin   (2) config.ini   in a FAT32 formatted miniSD card.

4. Open the folder "THEME_Unified Menu Material theme" and now copy the folder (3)  "TFT35" to the miniSD card.
   5, Edit the file config.ini as below
   i)  find the line start_gcode:G28 XY R20\n  and change it to start_gcode:M75\nG28 XY R20\n
   ii) find the line end_gcode:M104 S0\nM140 S0\nM18\n and change it to end_gcode:M77\nM104 S0\nM140 S0\nM18\n
   iii)find the line cancel_gcode:M104 S0\nM140 S0\nG28 XY R10\n and change it to M77\nM104 S0\nM140 S0\nG28 XY R10\n

5. Save the file and insert the card in the TFT35 card reader and let it update.
   NB:  marlin command M75 = Start Print Job Timer and M77 = Stop Print Job Timer
   I think this inclusion was necessary as time keeper for our purpose

Everything is working as it should. One thing to remember though is that we will not be prompted to resume print, After power fails during a print and thereupon when power resumes, wait for the machine to boot and just press the encoder button once. Printing start from where it left after Z_axis homing. Kindly try and share your experience with this test.

In a different note, not related to TFTtouchscreen, I would also like to share that I made the following changes in marlin fw

Marlin/src/feature/powerloss.h

  //#define DEBUG_POWER_LOSS_RECOVERY
  #define SAVE_EACH_CMD_MODE // uncommented.
  //#define SAVE_INFO_INTERVAL_MS 0

me ha funcionado. its works!. Aún no aparece el pop-up de reanudación, pero presionando el botón de la TFT continua imprimiendo. The resume pop-up still does not appear, but pressing the TFT button continues printing ...

emguepo avatar Jul 31 '21 04:07 emguepo