Turn off stepper motors for heat?
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- kifling
- Posts: 37
- Joined: Fri Jun 13, 2014 11:13 am
Turn off stepper motors for heat?
I've got a small project, where I am using some stepper motors to perform a function once or twice a day. However, the power is constant and very hot. Seems unneccesary. Is there a way to turn off power to the steppermotor when it's idle? I've got an adafruit motor shield, so using the motorsheild library.
- adafruit_support_bill
- Posts: 88092
- Joined: Sat Feb 07, 2009 10:11 am
Re: Turn off stepper motors for heat?
You can call the "release()" function to turn off holding current to the motor.
- kifling
- Posts: 37
- Joined: Fri Jun 13, 2014 11:13 am
Re: Turn off stepper motors for heat?
Thank you. A bit of a clarification.
I currently call the steppers
myMotorRight
and
myMotorLeft
I call them this way
myMotorRight->step(1, BACKWARD, SINGLE);
I'm not quite sure how to invoke the release. Looking online, I see that it might be
myMotorLeft.release();
myMotorRight.release();
but that comes up with an error suggesting
myMotorLeft->release();
myMotorRight->release();
Is this correct?
I currently call the steppers
myMotorRight
and
myMotorLeft
I call them this way
myMotorRight->step(1, BACKWARD, SINGLE);
I'm not quite sure how to invoke the release. Looking online, I see that it might be
myMotorLeft.release();
myMotorRight.release();
but that comes up with an error suggesting
myMotorLeft->release();
myMotorRight->release();
Is this correct?
- adafruit_support_bill
- Posts: 88092
- Joined: Sat Feb 07, 2009 10:11 am
Re: Turn off stepper motors for heat?
When using the V2 motor shield library, the 'motors' in your code are actually pointers to motor objects.
Since they are pointers, you need to use the '->' instead of the '.'
Since they are pointers, you need to use the '->' instead of the '.'
- kifling
- Posts: 37
- Joined: Fri Jun 13, 2014 11:13 am
Re: Turn off stepper motors for heat?
thanks so much.
Please be positive and constructive with your questions and comments.