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

Powering off the stepper motor while spindle is turning #261

Open
ibonneau opened this issue May 13, 2023 · 5 comments
Open

Powering off the stepper motor while spindle is turning #261

ibonneau opened this issue May 13, 2023 · 5 comments

Comments

@ibonneau
Copy link

Hi,
Most of the time I don't want the stepper motor to turn. It's just noisy. It's annoying to turn off the lathe just to power down the stepper motor.

As I understood the idea behind locking the PWR button is electrical interference safety issue - which I have not encountered even in the first release.
Could summer assist me with enabling it out alternatively add a physical power button that would deactivate the stepper motor regardless if the spindle is turning or not without burning anything on the electronic boards or stepper motor.

🙏

@kwackers
Copy link

If you turn off the controller using the power button on the far left it should release the enable line on the stepper driver and the motor shouldn't run.

@ibonneau
Copy link
Author

If you turn off the controller using the power button on the far left it should release the enable line on the stepper driver and the motor shouldn't run.

That only works when the spindle is not rotating.
I'd like the power button to turn it off regardless if the spindle is rotating or not - if that poses any saftey issue than a phycial switch to cut the enable lie would work without damaging the driver\stepper\boards ?

@kwackers
Copy link

I guess we could ignore the fact you could have turned off the ELS before you started the spindle... ;)

In UserInterface.cpp the power toggle occurs after the test for the spindle rotating.
Look in the function 'mainLoop' and you'll see an "if ( currentRpm == 0)" followed by "if ( keys.bit.POWER )"
If you move the test for the power button to before the test for currentRPM then you'll be able to turn it off even if the spindle is rotating.

I've obviously not tested this to see if there are any unintended consequences.

Failing that just fit a switch to the enable line.

@ibonneau
Copy link
Author

power

Thank you.
Is there a chance that putting a physical switch on the enable line while everything else is running cause damage to the ti board the stepper or the driver?

I burnt a ti board a while back due to over voltage on the input by mistake and don't want to buy a third one🤣

@kwackers
Copy link

Nope, all that will happen is the motor will stop dead.
Obviously make sure the enable line from the TI board can't get 'back-fed' with anything from your switch. If you're not keeping the enable from the TI board then it won't matter, otherwise I'd be inclined to use a break-before-make type switch.

(Be a lot easier just to tweak the software though).

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