OctoPrint-PSUControl icon indicating copy to clipboard operation
OctoPrint-PSUControl copied to clipboard

[Request] PSU always ON while start

Open modmt opened this issue 5 years ago • 6 comments

Hello all,

I am using the RPI3B in combination with Ramps 1.4 board and Klipper FW.

For different reasons I want that the PSU is alwas ON while start (e.g. the TMC2208 with UART connection needs power all the time while start to read/write registers, otherwise I will get the standard settings for TMC... :-().

The currect behaviour with my combination is that the PSU starts for 30 seconds or so an then the pin 3 (the pin on rpi which i selected) changes it status to shutdown the PUS.
So when octoprint is fully loaded the PSU is OFF.

I need it always ON as first state after plugin the power.

In Attachment you can find the setting, but I tried also different settings with no success. The whole rest of the functions are working great.

Is there a possibility to implement that?

Thank you for your help. Matthias

screenshot_20

modmt avatar Jul 21 '19 07:07 modmt

try https://github.com/chriswal/OctoPrint-PSUControl/archive/initial_state_config.zip and set the initial state power on option couldnt test it with gpio ..so tell me if it works for you

image

chriswal avatar Aug 23 '19 13:08 chriswal

I second this request :) .

wick3r avatar Apr 18 '21 21:04 wick3r

So if I were to implement this I think I would have an dropdown with the following options:

State On Startup:

  • No Change
  • Always On
  • Always Off

Raspberry Pi users would also want to ensure they are using the right GPIO pin to match. See https://www.raspberrypi.org/documentation/hardware/raspberrypi/bcm2835/BCM2835-ARM-Peripherals.pdf pg102

kantlivelong avatar Apr 24 '21 23:04 kantlivelong

Same problem as my #222

electronicm avatar Sep 01 '21 13:09 electronicm

I have the same problem. My printer is connected to the NC of the relais, so the printer will run without Octoprint. The relais is connected to GPIO 17, so when you pull it high, the printer turns off. With this configuration you need to connect the relais to GPIO 9-27, because these are LOW on powerup. After the RPI booted, PSU Control turns off the printer. Everything except of this works fine, i just want to not automatically switch the printer off after booting.

ChrisButt avatar Jan 14 '22 18:01 ChrisButt

I am using this plugin together with the OpenHAB sub-plugin and IMHO it is pretty bad that OctoPrint always switches the PSU to OFF when starting. It should just leave it alone. Recently, I had a print from SD card running for 10 hours, the PI was not connected to the printer and I started the PI and then it switched off the printer (via OpenHAB and smart power plug) and I lost my print.

sidamos avatar Jan 19 '23 09:01 sidamos