Hello,
I am using the v2 motor shield and accelstepper. I am trying to release power to the coil at times so it doesn't get so hot. In accelstepper I think I need to setEnablePin. I don't know how to do this using the motor shield.
Any help would be greatly appreciated.
Thank you,
Jeff
Release power to stepper
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: Release power to stepper
There is a release() function in the library. https://learn.adafruit.com/adafruit-mot ... lease-void
You can call it on the Adafruit_StepperMotor object that you create for your stepper.
You can call it on the Adafruit_StepperMotor object that you create for your stepper.
- jeffnoko
- Posts: 4
- Joined: Tue Oct 29, 2013 10:20 am
Re: Release power to stepper
Thank you for the fast reply,
The release() funtion doesn't seem work with accelstepper.
I know this seems to be an accelstepper question, the setEnablePin() funtion calls for a pin#.
would you know how to release power with the v2 shield with accelstepper?
Thanks again,
Jeff
The release() funtion doesn't seem work with accelstepper.
I know this seems to be an accelstepper question, the setEnablePin() funtion calls for a pin#.
would you know how to release power with the v2 shield with accelstepper?
Thanks again,
Jeff
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: Release power to stepper
Correct. But your AccelStepper motor is just a wrapper around an Adafruit_StepperMotor which you have to create first. You can call release on the Adafruit_StepperMotor.The release() funtion doesn't seem work with accelstepper.
- jeffnoko
- Posts: 4
- Joined: Tue Oct 29, 2013 10:20 am
Re: Release power to stepper
Thanks Bill,
I Think I have initialized the adafruit stepper motor.
Adafruit_StepperMotor *myStepper1=
AFMSbot.getStepper(200,2);
If I write
Adafruit_StepperMotor *myStepper1.
release();
I get error " expected initializer before '.' token."
How exactly do I call the release() using the v2 and accelstepper?
Thank you,
Jeff
I Think I have initialized the adafruit stepper motor.
Adafruit_StepperMotor *myStepper1=
AFMSbot.getStepper(200,2);
If I write
Adafruit_StepperMotor *myStepper1.
release();
I get error " expected initializer before '.' token."
How exactly do I call the release() using the v2 and accelstepper?
Thank you,
Jeff
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: Release power to stepper
Code: Select all
myStepper1->release();
Please be positive and constructive with your questions and comments.