Turning off the LEDs when I turn off the printer

Basic Information:

Printer Model: Voron 2.4
MCU / Printerboard: Spider 2.2
Host / SBC: RPI5
klippy.log

Describe your issue:

When I turn off the printer, the LEDs remain lit. This happens because turning off the printer disconnects the 24V power supply to the main board that controls the LEDs, but the LEDs are powered by a separate power supply. Is it possible to run a macro to turn off the LEDs before shutting down the printer?

klippy.log (81.6 KB)

Could you explain (ideally with a diagram) how the “LEDs” are wired into the printer?

I put “LEDs” in quotes because it would be helpful to understand what the LEDs are being used for (are they printer/toolhead illumination) and what are they (ie NeoPixels or LED strips).


LEDs are for chamber lights

First off, there should be a control that allows you to change your LEDs state - no programming work but a few mouse clicks.

I think a macro that would simply turn everything off would be (using the information in your klippy.log):

[gcode_macro LIGHTS_OUT]
description: Turn off my_neopixel
gcode:
  SET_LED LED="my_neopixel" RED=0 GREEN=0 BLUE=0 SYNC=0 TRANSMIT=1

Yes, but i can run this macro only when klipper is in ready state, which means that i need to run it before i shutdown the printer. I’m using Moonreaker Power Device which doesn’t have the option to attach a macro to the process. So im looking for a way to turn lights out and shutdown printer with one click.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.