Disconnect printer from AC using a command and a low voltage relay

Does anyone know if there are ANY contact points (prefer 5v) that go either HIGH or LOW when print is finished ?
Want to use a small relay to disconnect the printer from the AC so it does not stay connected to the CPP all the time

timelapse kit ?
Whats that ?

You may also need a delay after the print finishes so the fans can reduce temperatures before power gets cut.

The toolhead lamp is only one when the printer is “active”. First thing on at the start of a job, last thing off at the end. You could grab that to drive a FET to switch your relay.

I dont see any lamps on the toolhead that lights up.
I have P1S.
Am i missing something ?

Ah. I have an X1C. Sorry.

There is nothing you can use for a simple logic HIGH / LOW for print status indication like that.

Motion sensor could do the trick.

You need some microcontroller to interface with the sensor and having some delay for false positive when the tool head park at poop chute for filament change.

You’ll probably need

  • PIR motion sensor
  • 5v relay module
  • arduino
  • 5v wall charger

Motion sensor ?
I dont need motion related switch. I need to push the button (i will add that) click the relay and printer will stay ON for as long as some code does something on a hardware level that i can use to trigger the relay to go OFF.

Standard process is command M81 and i am sure there is some kind of command that can be used but i doubt bambu will share it.

The idea is from

Source:

Did you think PIR motion sensor is for detecting whenever you come close to the printer?

:wink:

I know I’m late to this party but there is a Home Assistant integration that exposes several Controls, sensors, configuration and diagnostics. I’d suggest running a ESP32 relay in series with the power switch and set up an automation to switch the relay after a print when the bed and hot-end is cold. It will require running a button to bridge the relay contact to start it up however unless you supply 5v to the esp via a powerbank?

Look into ‘Home Assistant’. You can run it on a computer or raspberry pi. You’ll install HACS and Bambu Lab support. Once you have it setup and connected to your printer it can monitor the printer status and take actions based on the status e.g. when a print job is complete run a process that turns a relay off to power down the printer.

1 Like

Since the topic has been raised again, here is some additional information. There are now modern methods for implementing this using the API. Everyone can query the status of the printer. Possible queries:

  • bambulabs_api.PrintStatus.PRINTING
  • bambulabs_api.PrintStatus.IDLE

If someone want to read the complete list:

A Raspberry Pi Zero with WiFi is all what is needed to perform the query. For example, it can then send the signal to a smart power outlet. No rewiring or modification of the printer is necessary.


or the excellent solution that user_84684547 has already posted. My comment is intended as a addition, not a replacement.

1 Like

With a “smart” plug that measures power consumption and can be scripted you could look for power consumption and if it hovers around 7W for a few minutes there is no chance a print is still running. Consumption during use, PLA with no bed heat is 60W.

Three words: Filament runout detection. :slight_smile:

If you used a ESP32-C6 instead of a Pi Zero, you’d be able to talk directly to a Zigbee wall socket or lamp controller. No need to for a Home Assistant system.

Still, there’s no easy solution for people who don’t have the knowledge to “roll their own”.

I’d put the printer on a timer. Set it for a couple of hours longer than the slicers says the print will take. Still suboptimal but easily implemented by someone who doesn’t have the engineering background for a more complicated solution.

Indeed, i didn’t think of that one. With a propper AMS setup one could avoid it though.

What about the power cut recovery? Wouldn’t that work to save a power loss after filament runout?

But yes timer seems like an easy low tech solution. The slicer time estimation is pretty good.



Mit einem RaspberryPi und Homeassistant kannst du ĂŒber Mqtt alle Druckersensoren etc abfragen und daraus Automationen machen. Rauchmelder die den Drucker abschalten etc. Und z.b. auch den Drucker abschalten wenn Druck fertig. Benötigt wird noch eine gĂŒnstige Wlan Steckdose fĂŒr den Drucker mit der man dann den Drucker schaltet und nebenbei noch den Energieverbauch tracken kann wenn man möchte.

you could also use a smart switch

Did something similar
 one of those wireless outlets, with the remote stuck on the front of the printer. My X1C has a front-mounted power button now. Amazing that the clever Bambu engineers couldn’t do the same thing