Skip to content
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

Open
kdg3737 opened this issue May 5, 2022 · 5 comments
Open

shutting down and restarting with usb connected #30

kdg3737 opened this issue May 5, 2022 · 5 comments

Comments

@kdg3737
Copy link

kdg3737 commented May 5, 2022

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?

@tonywright
Copy link

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.
At the moment the 5v from the usb will keep the board and display on.

@kdg3737
Copy link
Author

kdg3737 commented May 5, 2022

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.

@kdg3737
Copy link
Author

kdg3737 commented May 5, 2022

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.

@tonywright
Copy link

Sorry, not sure the available amps from this usb but probably whatever the standard is for usb.
How will having an Arduino in between fix your problem? Will it just have a relay/transistor to cut the 5v from the usb ?

@kdg3737
Copy link
Author

kdg3737 commented May 6, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants