#How to setup btt relay 1.2?

7 messages · Page 1 of 1 (latest)

wary leaf
#

There are like a few different version of klipper config for this thing and I don’t know which one to use.

What I want from this is.

“Ability to remotely shutdown and power up main PSU from klipperscreen or mainsail.”

My Pi run on its own PSU isolated from the rest of the electronic. Shutting down main PSU won’t turn off the PI.

I want the ability to safely work on the stealth burner without having to waste my time waiting for the Pi to power up again as I only have a single power switch.

Using this Relay is the most painless in terms of wiring as adding a second physical power switch meant redesigning and reprinting back skirt+more wagos+lot of climping. I only need to climp one more wire and pint a small din mount for the Relay.

fiery adder
#

I did pretty much the same thing, but with a different relay. Found some generic relay module, 5V powered, and with an optocoupler input so it can be driven straight from a RPi gpio pin.

#

The relay is whatever you find on amazon searching for "yyg-2 5v relay", it was the one I found that seemed to have the best AC-DC separation on the pcb. Made a little mount for it that fits on the regular printed din rail brackets.

#

I don't fully understand how the BTT relay works in terms of "detecting power loss", but if it can be wired to act as a regular relay it should do the exact same thing.

#

The config for it was just this chunk in moonraker.conf:

type: gpio
pin: gpio6
locked_while_printing: True
on_when_job_queued: True
restart_klipper_when_powered: True
restart_delay: 2
bound_service: klipper
initial_state: on          #Start up printer on bootup
off_when_shutdown: True    #Shut down on klipper panic```

Doing that puts a power button on klipperscreen and mainsail.
#

But I did it for mostly the same reason as you, to have almost everything shut down to safely tinker with electronics without having to shut down the pi. One could also argue for it providing some kind of protection layer against bed ssr or hotend mosfet "failing closed", so if klipper panics (due to unexpected heating rate or overtemperature) it cuts power to both the 24V PSU and the bed ssr.

fiery adder
#

I also thought about rewiring the power switch. Not adding an extra one, but have the 5V psu be powered "before the switch" and everything else "after the switch". While I could easily live with just unplugging the power cord if I need to actually turn off all the mains, it would just make the whole thing a bit weird.