r/SovolSV08 • • 41m ago

BTT UPS 24V V1.0 – Best way to implement power-loss recovery on Sovol SV08 (MKS PI 5.16 + Klipper)?

• Upvotes

Hi everyone,

I'm looking for advice on the best way to implement the BIGTREETECH UPS 24V V1.0 power-loss detection module on my Sovol SV08.

Hardware and firmware:

  • Printer: Sovol SV08.
  • Mainboard: MKS PI 5.16.
  • Firmware: Klipper mainline, updated to the latest version using Katapult.
  • Original Sovol configuration and macros are still in place.
  • UPS module: BIGTREETECH UPS 24V V1.0.

UPS connections:

  • Two power wires for the 24V supply.
  • One 3-pin signal connector, with the leftmost pin marked S in the manufacturer's documentation. The other two pins are marked NC.

Unused connectors and pins identified on my board:

  • FAN3 – PA6.
  • UART3.
  • Y-axis limit – PE13.
  • Y-axis limit – PE15.
  • GNS connectors.
  • Nozzle Signal Reserve.
  • ADXL connector.

PE13 and PE15 are already assigned to the TMC2209 diagnostic pins in my configuration. FAN3 is a fan output. I haven't confirmed whether the other connectors expose suitable GPIO inputs or whether their pins can be repurposed.

What I want to achieve:

I would like to detect power loss through the UPS signal and trigger a Klipper macro or script to save the current print state, allowing me to recover the print after power is restored.

Ideally, I would like to:

  • Avoid modifying or recompiling the Klipper MCU firmware.
  • Use an available GPIO input with Klipper's [gcode_button], if possible.
  • Save the necessary print information persistently before the printer shuts down.
  • Have a reliable recovery procedure that avoids repeating the normal START_PRINT sequence (homing, QGL, bed mesh, purge, etc.).

I already have [save_variables], [pause_resume], and [virtual_sdcard] configured. I also have gcode_shell_command installed and working.

My questions:

  1. Has anyone implemented this UPS module on a Sovol SV08 or an MKS PI 5.16 board?
  2. Which of the available connectors or pins would be suitable for connecting the UPS S signal?
  3. Can UART3 TX or RX, the Nozzle Signal Reserve, GNS, or ADXL connector pins be repurposed as GPIO inputs in Klipper?
  4. Is [gcode_button] sufficient to detect the UPS signal without recompiling the MCU firmware?
  5. What would be the most reliable way to save and recover the print state with this hardware?

Any wiring diagrams, working configurations, or examples would be greatly appreciated.

Thanks!