Motor Shield with AccelStepper support

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
elin05
 
Posts: 78
Joined: Tue Jun 11, 2013 4:27 pm

Motor Shield with AccelStepper support

Post by elin05 »

If I'm using the Motor Shield and the AccelStepper library, I can only use the AFMotor_Constant Speed and AFMotor_MultiStepper examples, correct? And not the Blocking, ConstantSpeed, MultiStepper, Overshoot, and Random examples?

In AccelStepper.cpp, I see two constructors:

Code: Select all

AccelStepper(uint8_t pins, uint8_t pin1, uint8_t pin2, uint8_t pin3, uint8_t pin4)
and

Code: Select all

AccelStepper::AccelStepper(void (*forward)(), void (*backward)())
Only the latter can be used for the Motor Shield, correct? Or both? The Motor Shield doesn't seem to give the Arduino direct access to the stepper coils.
Last edited by elin05 on Tue Jun 11, 2013 6:24 pm, edited 1 time in total.

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

Re: AccelStepper constant speed

Post by adafruit_support_bill »

The AF_Motor version has been modified to work with the Adafruit Motor Shield via the AF_Motor Library. The other one works with a raw H-bridge. For more documentation on AccelStepper, the main site is here. http://www.airspayce.com/mikem/arduino/AccelStepper/

User avatar
elin05
 
Posts: 78
Joined: Tue Jun 11, 2013 4:27 pm

Re: Motor Shield with AccelStepper support

Post by elin05 »

Ok that's what I thought. Thank you very much! You guys make great products :)

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

Return to “Arduino Shields from Adafruit”