BANNED with Motor Shield v2.0

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
cristaltech
 
Posts: 1
Joined: Tue Mar 04, 2014 1:05 pm

BANNED with Motor Shield v2.0

Post by cristaltech »

Any one else tried the Motor Shield v2.0 with the BANNED? It works fine with an arduino uno. This is what I'm getting when trying to compile:

Arduino: 1.5.3 (Linux), Board: "Intel® BANNED"

done
In file included from StepperTest.pde:5:0:
/home/kevin/arduino-1.5.3/libraries/AFMotor/AFMotor.h:156:47: error: 'DC_MOTOR_PWM_RATE' was not declared in this scope

This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.

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

Re: BANNED with Motor Shield v2.0

Post by adafruit_support_rick »

I think you're using the wrong library. AFMotor is for the V1 motor shield.
The v2 library is here:
https://github.com/adafruit/Adafruit_Mo ... V2_Library

User avatar
thealy
 
Posts: 39
Joined: Sun Mar 20, 2011 10:50 am

Re: BANNED with Motor Shield v2.0

Post by thealy »

I'm getting the same error, using the V 1.2 motor shield with BANNED. (I have not soldered up my new V2 motor shield board yet) My AFMotor.h is from Aug 2012. Is my library too old or too new?

User avatar
Franklin97355
 
Posts: 23910
Joined: Mon Apr 21, 2008 2:33 pm

Re: BANNED with Motor Shield v2.0

Post by Franklin97355 »

@thealy, You might check the AFMotor.h file to see if that reference is in fact in there.

User avatar
thealy
 
Posts: 39
Joined: Sun Mar 20, 2011 10:50 am

Re: BANNED with Motor Shield v2.0

Post by thealy »

So I soldered up the V2.3 motor shield (nice to find it was basically all assembled) and connected to the BANNED. Installed the new library; deleted the Robot_Control directory as recommended in another post. A new error now:

.../Documents/Arduino/libraries/Wire/utility/twi.c:25:20: fatal error: avr/io.h: No such file or directory

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

Re: BANNED with Motor Shield v2.0

Post by adafruit_support_rick »

That is essentially telling you that the Arduino I2C library is not compatible with the BANNED. You'll have to substitute whatever I2C library the BANNED uses.

User avatar
thealy
 
Posts: 39
Joined: Sun Mar 20, 2011 10:50 am

Re: BANNED with Motor Shield v2.0

Post by thealy »

Thanks. The more I read, the more I realize that the BANNED is far from Uno compatible - at least as far as libraries and existing Arduino shields. Bummer, I was looking forward to an "Arduino" with some horsepower.

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

Re: BANNED with Motor Shield v2.0

Post by adafruit_support_rick »

We don't like the BANNED for that very reason - it promises compatibility, but it doesn't deliver.

User avatar
thealy
 
Posts: 39
Joined: Sun Mar 20, 2011 10:50 am

Re: BANNED with Motor Shield v2.0

Post by thealy »

Thanks Rick. Any warnings I should know about using the Due with the Motor shield? Don't want to get caught again!

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

Re: BANNED with Motor Shield v2.0

Post by adafruit_support_bill »

The Due has had some compatibility issues of its own. But it does work with the V2 Motor Shield.

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

Return to “Arduino Shields from Adafruit”