> 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])
AFMotor MultiStepper
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: AFMotor MultiStepper
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.
-
- Posts: 1
- Joined: Thu Mar 14, 2013 9:07 pm
Re: AFMotor MultiStepper
Is anyone working on porting a library for the Leonardo?
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: AFMotor MultiStepper
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.
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: AFMotor MultiStepper
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.
-
- Posts: 1
- Joined: Fri May 10, 2013 4:14 pm
Re: AFMotor MultiStepper
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/
The publisher of the book has made the library available as part of this download:
http://examples.oreilly.com/0636920028024/
Please be positive and constructive with your questions and comments.