AFMotor MultiStepper

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
rshunter
 
Posts: 5
Joined: Wed Dec 26, 2012 5:07 pm

AFMotor MultiStepper

Post by rshunter »

> When I try to verify the the code for AFMotor_MultiStepper or AFMotor_ConstantSpeed I get the > following errors.
> It is running from Sketchbook.
>
> /home/rsh/Arduino/arduino-1.0.3/libraries/AFmotor/AFMotor.cpp:136:5: error:
> #error "This chip is not supported!"
> /home/rsh/Arduino/arduino-1.0.3/libraries/AFmotor/AFMotor.cpp:173:5: error:
> #error "This chip is not supported!"
> /home/rsh/Arduino/arduino-1.0.3/libraries/AFmotor/AFMotor.cpp:205:5: error:
> #error "This chip is not supported!"
> /home/rsh/Arduino/arduino-1.0.3/libraries/AFmotor/AFMotor.cpp:226:5: error:
> #error "This chip is not supported!"
> /home/rsh/Arduino/arduino-1.0.3/libraries/AFmotor/AFMotor.cpp:259:5: error:
> #error "This chip is not supported!"
> /home/rsh/Arduino/arduino-1.0.3/libraries/AFmotor/AFMotor.cpp:279:5: error:
> #error "This chip is not supported!"
> /home/rsh/Arduino/arduino-1.0.3/libraries/AFmotor/AFMotor.cpp:314:5: error:
> #error "This chip is not supported!"
> /home/rsh/Arduino/arduino-1.0.3/libraries/AFmotor/AFMotor.cpp:334:5: error:
> #error "This chip is not supported!"
> /home/rsh/Arduino/arduino-1.0.3/libraries/AFmotor/AFMotor.cpp: In
> constructor ‘AF_Stepper::AF_Stepper(uint16_t, uint8_t)’:
> /home/rsh/Arduino/arduino-1.0.3/libraries/AFmotor/AFMotor.cpp:438: error:
> ‘CS20’ was not declared in this scope
>
> I am using a Leonardo board running on Ubuntu. The LCD with backpack runs OK
> (after some help from you).
>
> Thanks for your help.
> Ron Hunter ([email protected])

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: AFMotor MultiStepper

Post by adafruit_support_rick »

Unfortunately, it means that the Leonardo cannot be used with the AFMotor library. The Leonardo uses an ATmega32U4 chip, which has a different arrangement of timers and pins than the ATmega328 used in the UNO. The AFMotor library has not been written to work with the 32U4.

haasebert
 
Posts: 1
Joined: Thu Mar 14, 2013 9:07 pm

Re: AFMotor MultiStepper

Post by haasebert »

Is anyone working on porting a library for the Leonardo?

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: AFMotor MultiStepper

Post by adafruit_support_rick »

We are in the process of porting our libraries to Leonardo and Due. Offhand, I can't say whether or not the motor shield is even compatible with Leonardo, due to the different pin mappings for the timers. I'll have to investigate that.

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: AFMotor MultiStepper

Post by adafruit_support_rick »

I just checked the timer pinouts, and it looks like it ought to be possible to port the library to Leonardo. No time frame for that, however.

displaced1980
 
Posts: 1
Joined: Fri May 10, 2013 4:14 pm

Re: AFMotor MultiStepper

Post by displaced1980 »

Michael Margolis has produced a version of the AFMotor library to accompany his book on using the Arduino for robotics.

The publisher of the book has made the library available as part of this download:
http://examples.oreilly.com/0636920028024/

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

Return to “Arduino Shields from Adafruit”