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.
BANNED with Motor Shield v2.0
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: BANNED with Motor Shield v2.0
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
The v2 library is here:
https://github.com/adafruit/Adafruit_Mo ... V2_Library
- thealy
- Posts: 39
- Joined: Sun Mar 20, 2011 10:50 am
Re: BANNED with Motor Shield v2.0
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?
- Franklin97355
- Posts: 23910
- Joined: Mon Apr 21, 2008 2:33 pm
Re: BANNED with Motor Shield v2.0
@thealy, You might check the AFMotor.h file to see if that reference is in fact in there.
- thealy
- Posts: 39
- Joined: Sun Mar 20, 2011 10:50 am
Re: BANNED with Motor Shield v2.0
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
.../Documents/Arduino/libraries/Wire/utility/twi.c:25:20: fatal error: avr/io.h: No such file or directory
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: BANNED with Motor Shield v2.0
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.
- thealy
- Posts: 39
- Joined: Sun Mar 20, 2011 10:50 am
Re: BANNED with Motor Shield v2.0
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.
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: BANNED with Motor Shield v2.0
We don't like the BANNED for that very reason - it promises compatibility, but it doesn't deliver.
- thealy
- Posts: 39
- Joined: Sun Mar 20, 2011 10:50 am
Re: BANNED with Motor Shield v2.0
Thanks Rick. Any warnings I should know about using the Due with the Motor shield? Don't want to get caught again!
- adafruit_support_bill
- Posts: 88091
- Joined: Sat Feb 07, 2009 10:11 am
Re: BANNED with Motor Shield v2.0
The Due has had some compatibility issues of its own. But it does work with the V2 Motor Shield.
Please be positive and constructive with your questions and comments.