cac0ns3c / arduino

Automatically exported from code.google.com/p/arduino
Other
0 stars 0 forks source link

Update to Stepper library #144

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
If the stepper doesn't complete a full resolution or goes for long periods of 
time between steps or steps over a long period of time, it gets really hot 
due to a bug in the stepper code. It leaves coils enegized. I have added a 
motorOff() function that shuts off all power so that it will not become too 
hot. Future development could be to insert a timer since we know the speed 
and step degree and shut it off that way.

Original issue reported on code.google.com by Matttron...@gmail.com on 19 Nov 2009 at 12:38

Attachments:

GoogleCodeExporter commented 9 years ago
I like the idea, however, your motorOff() functions only works for a 4 wire 
stepper. When using the library with a 2 wire stepper you'll either throw up an 
error or just jam the motor into step "case 3" and have the same over-heating 
problem. You should throw in a if (this->pin_count == 4) before toggling all 
the pins low.  Unfortunately, the only way to power down a two wire stepper is 
pull the enable (PWM) pins low, and the library doesn't have access to those as 
it is setup.

Original comment by eugene.k...@gmail.com on 26 Nov 2013 at 1:33