kantlivelong / OctoPrint-PSUControl

Smart control of your power supply via GPIO, GCODE Command, System Command, or variety of sub-plugins.
GNU Affero General Public License v3.0
203 stars 113 forks source link

[Request] PSU always ON while start #135

Open modmt opened 5 years ago

modmt commented 5 years ago

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

chriswal commented 5 years ago

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

wick3r commented 3 years ago

I second this request :) .

kantlivelong commented 3 years ago

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

State On Startup:

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

electronicm commented 3 years ago

Same problem as my #222

ChrisButt commented 2 years ago

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.

sidamos commented 1 year ago

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.