Release power to stepper

Adafruit Ethernet, Motor, Proto, Wave, Datalogger, GPS Shields - etc!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
jeffnoko
 
Posts: 4
Joined: Tue Oct 29, 2013 10:20 am

Release power to stepper

Post by jeffnoko »

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

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: Release power to stepper

Post by adafruit_support_bill »

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.

User avatar
jeffnoko
 
Posts: 4
Joined: Tue Oct 29, 2013 10:20 am

Re: Release power to stepper

Post by jeffnoko »

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

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: Release power to stepper

Post by adafruit_support_bill »

The release() funtion doesn't seem work with accelstepper.
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.

User avatar
jeffnoko
 
Posts: 4
Joined: Tue Oct 29, 2013 10:20 am

Re: Release power to stepper

Post by jeffnoko »

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

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: Release power to stepper

Post by adafruit_support_bill »

Code: Select all

myStepper1->release();

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino Shields from Adafruit”