BIGTREETECH-SKR-V1.3 icon indicating copy to clipboard operation
BIGTREETECH-SKR-V1.3 copied to clipboard

Is it possible to get the shutdown relay and UPS to work?

Open nesergen opened this issue 3 years ago • 22 comments

SKR1.4-Turbo UPS V2.0 Relay v1.2 TFT E3 v3

I bought such a set. Installed, connected, configured Marlin. Added M81 code to the end of the print. After the end of printing, the printer writes "shutting off" (like that), but the electricity continues to flow, the printer is working, the inscription does not disappear. The fans continue to run. Maybe I misunderstand the principle of its operation and purpose ...? In addition, it is not clear how to turn the printer back on if the relay turns off the power? When I turn off the power (press the on / off button) while printing, the UPS works, the voltage drops for about 10 seconds and the printer turns off smoothly, but the extruder does not rise, but continues to print as long as there is enough power. What could be the problem ?

Did anyone manage to get this things to work?

The connection was carried out according to these instructions: https://github.com/bigtreetech/BIGTREETECH-SKR-V1.3/blob/master/BTT%20SKR%20V1.4/BTT%20SKR%20V1.4%20Instruction%20Manual.pdf https://github.com/bigtreetech/BIGTREETECH-Relay-V1.2/blob/master/BIGTREETECH%20Relay%20V1.2/BIGTREETECH%20Relay%20V1.2/Hardware/%E5%BC%80%E5%85%B3%E5%8A%A0%E6%89%93%E5%AE%8C%E5%85%B3%E6%9C%BA.jpg

nesergen avatar Jul 28 '20 18:07 nesergen

double check your UPS pin on board, is on the correct place? and in YOUR marlin config. it sounds like no comms between board and UPS

Arganaz avatar Aug 29 '20 09:08 Arganaz

How do you connected and set the pins?

tiagomaricate avatar Feb 20 '22 00:02 tiagomaricate

@tiagomaricate It's hard to describe in words. I remember that I did it according to the instructions from the official site. With your attention, I will resume my attempts to tweak these settings. I need extra time. One of these days I will check the hardware and software and tell you about the results.

nesergen avatar Feb 24 '22 19:02 nesergen

Thank you! I'm facing some difficulties due all my other pins are in use. And I believe I'm not understanding the logic behind on how it works.

tiagomaricate avatar Feb 24 '22 20:02 tiagomaricate

@tiagomaricate Good day! I'm tinkering with the printer. I checked the hardware, my connection is correct. Now I'm checking Marlin's settings. Auto power off seems to work. I'm trying to start print recovery after a power failure. What interests you: hardware or programming?

nesergen avatar Feb 26 '22 13:02 nesergen

@tiagomaricate I can sum up the first results. Printer auto-off works. Print recovery works, but with failures, it needs to additionally deal with the settings and hardware. What do you need help with?

nesergen avatar Feb 26 '22 15:02 nesergen

@nesergen Good day! Actually both, but more related to the conections. My config is this way:

PWRDET SKR (signal pin) -----> UPS board (signal pin) PWRDET SKR (signal pin) -----> RELAY board (power failure detection pin) ???????????? -----> RELAY board (automatic shutdown pin)

Also, I found these connection diagrams:

Not sure if this is correct. I have only the PWRDET pins free. E1DET, E2DET, and the STOPs pins are in use.

tiagomaricate avatar Feb 26 '22 15:02 tiagomaricate

@nesergen Do you have all four modules like mine? SKR1.4-Turbo UPS V2.0 Relay v1.2 TFT E3 v3

nesergen avatar Feb 26 '22 15:02 nesergen

@nesergen

SKR1.4-Turbo UPS V2.0 Relay v1.2 TFT70 RRF Wifi Raspberry Pi 3B

tiagomaricate avatar Feb 26 '22 15:02 tiagomaricate

Also, two smart filament detectors.

tiagomaricate avatar Feb 26 '22 15:02 tiagomaricate

@tiagomaricate We have different screens but I think they are similar in functionality. We can experiment. I think it`s possible to use any free pins, the main thing is to correctly register them later in Marlin. An example is in the picture.

There are still free pins on the screen. Is it possible to connect one module to the screen, and the second to the motherboard - I don’t know. Another question, how do you print, via a USB flash drive or from a computer via a USB port? If through a USB cable, then I don’t know how print recovery will work. If through a flash card, then which port do you select on the screen or on the motherboard? The screen manufacturer made a very capricious device.

According to this page, you need to use the marlin 2.0.5 version for UPS to work. According to my experiments with the marlin 2.0.7 it`s true. 001

nesergen avatar Feb 26 '22 16:02 nesergen

@tiagomaricate Personally, I print from a flash card on the motherboard.

nesergen avatar Feb 26 '22 16:02 nesergen

@tiagomaricate There is the first successful experiment. Connected PSU to pin P0_10 (name: "Probe" on the image) on the board. Connected POWER_LOSS module to pin P1_00 (name: "PWRDET on the image"). Compiled firmware Marlin-2.0.5.4. In Marlin mode, it was possible to restore the printing from the last point. It was not without jambs, there is something to experiment with. If you need details - ask.

nesergen avatar Mar 02 '22 17:03 nesergen

I am glad to report that with Marlin version 2.0.9.3 the power-loss module works fine. In Marlin mode, there were no problems. In touchscreen mode, there is no pop-up message prompting you to resume printing, but if you press the joystick, printing resumes.

nesergen avatar Mar 04 '22 21:03 nesergen

I am glad to report that with Marlin version 2.0.9.3 the power-loss module works fine. In Marlin mode, there were no problems. In touchscreen mode, there is no pop-up message prompting you to resume printing, but if you press the joystick, printing resumes.

Great! Thank for the update. I have a TFT70 and it is connected on EXP1, EXP2 and TFT por on SKR. Whike SKR have the PWRDET pin, the TFT have PS_ON pin on the back. I will try to use both. The Probe pin on my SKR is in use.

tiagomaricate avatar Mar 04 '22 22:03 tiagomaricate

next I will try to use usb on the screen to restore the print.

nesergen avatar Mar 05 '22 07:03 nesergen

@nesergen

I did the same as you, but now with the Z-STOP pin. But I need to finish assembling the top head of my printer to test printing something. The other thing I did is add an EEPROM module extending the default size. Do you know any way to add more pins?

tiagomaricate avatar Mar 05 '22 22:03 tiagomaricate

What did you use in #define POWER_LOSS_STATE? HIGH or LOW?

tiagomaricate avatar Mar 06 '22 02:03 tiagomaricate

What did you use in #define POWER_LOSS_STATE? HIGH or LOW?

High

nesergen avatar Mar 06 '22 06:03 nesergen

Do you know any way to add more pins?

I don’t know how to add pins, I wasn’t interested in this. I assume it is not possible. I only thought about how to use the most of the pins on the display, and reassign those freed on the motherboard to fit my needs. Looked at manuals and diagrams. A few pins I think can be freed.

nesergen avatar Mar 06 '22 19:03 nesergen

I am glad to report that with Marlin version 2.0.9.3 the power-loss module works fine. In Marlin mode, there were no problems. In touchscreen mode, there is no pop-up message prompting you to resume printing, but if you press the joystick, printing resumes

I cannot get the UPS module to work as intended in touchscreen mode. Pins are defined in marlin, Screen is set to settings detailed in BTT setup guide. Z axis will not raise and hotend and heatbed does not shutoff as intended. How did you get it to work in touchscreen mode?

Salamonius avatar Oct 12 '22 03:10 Salamonius

Good day!

I need to clear that I use sd-card on the board. Maybe you use usb-port on the screen. In this case I didn't tested this variant.

В 12 окт. 2022 г. в 06:09, Salamonius @.***> писал:

I am glad to report that with Marlin version 2.0.9.3 the power-loss module works fine. In Marlin mode, there were no problems. In touchscreen mode, there is no pop-up message prompting you to resume printing, but if you press the joystick, printing resumes

I cannot get the UPS module to work as intended in touchscreen mode. Pins are defined in marlin, Screen is set to settings detailed in BTT setup guide. Z axis will not raise and hotend and heatbed does not shutoff as intended. How did you get it to work in touchscreen mode?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

nesergen avatar Oct 13 '22 11:10 nesergen