electronic-leadscrew icon indicating copy to clipboard operation
electronic-leadscrew copied to clipboard

How to code for startup in "Power Off"

Open Howard-001 opened this issue 2 years ago • 2 comments

I'd like to have the controller boot up in a power off state- It's just Soooo tiring and such an enormous effort to push that button every time I turn the lathe on. :(

Can anyone point me to the file & line I need to change?

Thanks.

Howard-001 avatar Jan 06 '23 18:01 Howard-001

I have done the same thing in my branch. I can't remember exactly how because there's an obvious change but there's also a bug that means the enable line for the stepper isn't initialised so even if you start in power off the motor is still enabled and drawing power.

(There's a load of other stuff in my branch which may / may not be of interest but you can probably pull out the relevant changes if you need to).

https://github.com/kwackers/electronic-leadscrew

kwackers avatar Jan 10 '23 20:01 kwackers

I've noticed your tweaks already, I particularly like the thread to shoulder mod. :) Thanks for the heads up on the power off default, I'm using the servo so the power enable doesn't real\lly do much anyhow at the moment but it might come in handy as I'm looking at adding a stepper controlled cross slide & running it off of the launchpad as well.

Howard-001 avatar Jan 24 '23 01:01 Howard-001