Skip to content

Hypertoken/OctoPrint-PSUControl

 
 

Repository files navigation

OctoPrint PSU Control

This OctoPrint plugin controls an ATX/AUX power supply to help reduce power consumption and noise when the printer is not in use.

Power supply can be automatically switched on when user specified commands are sent to the printer and/or switched off when idle.

Supports Commands (G-Code or System) or GPIO to switch power supply on/off.

Requires a Raspberry Pi

PSUControl

Setup

Install the plugin using Plugin Manager from Settings

GPIO Setup

NOTE: GPIO pins should be specified as phsyical number and not BCM number.

Sense GPIO Pin

     This option is used to determine the on/off state of the power supply instead of assuming based on the last action.

     The specified GPIO pin should receive a 3.3v signal from the power supply when it is on and 0v when off. If your power supply does not provide 3.3v then consider using a Voltage Divider.

On/Off GPIO Pin

     This option is only required if using GPIO instead of Commands(G-Code) to switch the power supply on/off.

     The specified GPIO pin will send a 3.3v signal when turning the power supply on and 0v when off. ATX power supplies can be switched on by grounding the PS_ON pin using a NPN Transistor. For "always on" power supplies use a relay to switch AC mains.

Troubleshooting

About

Control ATX/AUX power supply

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 90.7%
  • JavaScript 9.3%