-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
shutting down and restarting with usb connected #30
Comments
What you can do it alter the usb plug/cable so that the 5v is not connected, just the data lines and ground. Then when you power off with the switch it will actually go off. |
Cutting the 5V would work and I'll probably end up doing just that. But I was hoping there were other more elegant ways to recover from this. After a power failure I'd also like to be able to resume printing where it left off. |
I measured 4.2V on the USB port with nothing attached. I'm guessing there's a diode between that and the 5V of the printer PSU. I might be able to power a small arduino with that 4.2V and that should also fix my issue. Do you know by any chance how many amps I can draw from that USB port @tonywright? I have some range sensors that draw ~300mA@5V. |
Sorry, not sure the available amps from this usb but probably whatever the standard is for usb. |
If the arduino is powered by the usb of the printer it will shut down when I turn off the printer, turning off the display as well. It would also mean losing the ability to turn the printer off/on through the arduino ofc, but it saves a power supply/cable. Not sure yet, I might add another diode on the 5V line to make sure power only flows from printer to arduino so I can still use an external power supply. |
When I shut down this printer using the power switch and usb is still connected it says 'shutting down' on the display, but it never actually does shut down (hangs). Turning the power back on it displays some chinese characters I don't understand and it won't start or get into the main menu (hangs on the Chinese idk what). I tried sending M0 and M81 gcode commands to shut it down but for some reason it moved the z axis all the way up causing the motors to skip...
I was planning to use a dedicated PC or MCU which will always power the usb, so I need some way to shut down and restart the printer. Sending some gcodes to start-stop would be great but at this point I'd already be happy if the power switch could work as expected and not hang the printer.
How to properly shut down and restart this printer with usb connected? Is there a list of supported gcodes somewhere?
The text was updated successfully, but these errors were encountered: