AFMotor MultiStepper

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

Moderators: adafruit_support_bill, adafruit

AFMotor MultiStepper

Postby rshunter » Sun Feb 17, 2013 9:05 am

> 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 (rshunter@sympatico.ca)
rshunter
 
Posts: 3
Joined: Wed Dec 26, 2012 4:07 pm

Re: AFMotor MultiStepper

Postby adafruit_support_rick » Sun Feb 17, 2013 4:36 pm

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.
User avatar
adafruit_support_rick
 
Posts: 2895
Joined: Tue Mar 15, 2011 10:42 am
Location: Buffalo, NY

Re: AFMotor MultiStepper

Postby haasebert » Thu Mar 14, 2013 8:08 pm

Is anyone working on porting a library for the Leonardo?
haasebert
 
Posts: 1
Joined: Thu Mar 14, 2013 8:07 pm

Re: AFMotor MultiStepper

Postby adafruit_support_rick » Fri Mar 15, 2013 10:46 am

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: 2895
Joined: Tue Mar 15, 2011 10:42 am
Location: Buffalo, NY

Re: AFMotor MultiStepper

Postby adafruit_support_rick » Sun Mar 17, 2013 9:30 am

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.
User avatar
adafruit_support_rick
 
Posts: 2895
Joined: Tue Mar 15, 2011 10:42 am
Location: Buffalo, NY

Re: AFMotor MultiStepper

Postby displaced1980 » Fri May 10, 2013 3:20 pm

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/
displaced1980
 
Posts: 1
Joined: Fri May 10, 2013 3:14 pm


Return to Arduino Shields from Adafruit

Who is online

Users browsing this forum: dpaulc, mibignistinly and 5 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [102]

Raspberry Pi[80]
 
FLORA[23]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[11]
Arduino[60]
 
NETduino[14]
 
BeagleBone[24]
 
Android[6]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[33]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[8]


 
Breakout Boards[33]
LCDs & Displays[48]
Components & Parts[69]
Batteries & Power[49]
EL Wire/Tape/Panel[52]
LEDs[109]
 
Wireless[14]
Cables[60]
 
Lasers[6]
Sensors/Parts[145]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[70]
 
iDevices[13]
Tools[71]
 
Wearables[39]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[24]


 
Stickers[41]
 
Skill badges[55]
 
Books[25]
 
Circuit Playground[7]
 
Gift Certificates[4]