TGit-Tech / GRBL-28byj-48

Grbl ver 1.1f.20170131 with XYZ Unipolar Stepper Support (28byj-48)
Other
78 stars 41 forks source link

Motor Shutdown #1

Open TGit-Tech opened 7 years ago

TGit-Tech commented 7 years ago

Need to adjust 'Enable' code to PORT 0000000's in order to shutdown power to the stepper motors when sitting idle.

I think this should be implemented where the 'grbl' setting ( $1 - Step idle delay, milliseconds ) is made as described here - https://github.com/gnea/grbl/wiki/Grbl-v1.1-Configuration

To see how the motors are controlled visit this projects code at https://github.com/tgit23/GRBL-28byj-48/blob/master/grbl/stepper.c

At line #400 where PORTD is assigned; It looks by glance that go_st_idle in this same file might be where the ports need to be 0000'ed.