I get this note in red below my programming screen when trying to compile the motor program
core.a(main.cpp.o): In function `main':
C:\arduino-1.0-windows\arduino-1.0\hardware\arduino\cores\arduino/main.cpp:11: undefined reference to `setup'
C:\arduino-1.0-windows\arduino-1.0\hardware\arduino\cores\arduino/main.cpp:14: undefined reference to `loop'
Ideas, or have I not given enoght info..?
Mitch
Ardafruit Motor shield and Arduino Uno Compile erro - help?
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- mcguyver32927
- Posts: 6
- Joined: Wed Dec 07, 2011 6:40 pm
- adafruit_support_bill
- Posts: 88088
- Joined: Sat Feb 07, 2009 10:11 am
Re: Ardafruit Motor shield and Arduino Uno Compile erro - help?
Which example are you trying to compile?when trying to compile the motor program
- mcguyver32927
- Posts: 6
- Joined: Wed Dec 07, 2011 6:40 pm
Re: Ardafruit Motor shield and Arduino Uno Compile erro - help?
Here they are. it relies upon the AFMotor.h which I believe is in the right library
https://github.com/adafruit/Adafruit-Mo ... ld-library
MItchell
https://github.com/adafruit/Adafruit-Mo ... ld-library
MItchell
- adafruit_support_bill
- Posts: 88088
- Joined: Sat Feb 07, 2009 10:11 am
Re: Ardafruit Motor shield and Arduino Uno Compile erro - help?
There are 5 examples in the AF_Motor library.
Which one are you trying to compile?
Which one are you trying to compile?
- mcguyver32927
- Posts: 6
- Joined: Wed Dec 07, 2011 6:40 pm
Re: Ardafruit Motor shield and Arduino Uno Compile erro - help?
I just want to run 2 PM gearmotors with an analog joystick.
- adafruit_support_bill
- Posts: 88088
- Joined: Sat Feb 07, 2009 10:11 am
Re: Ardafruit Motor shield and Arduino Uno Compile erro - help?
Well, I can't answer the question about your compiler error if you don't show me the code that caused it.
- mcguyver32927
- Posts: 6
- Joined: Wed Dec 07, 2011 6:40 pm
Re: Ardafruit Motor shield and Arduino Uno Compile erro - help?
I recently pgraded to the new version of thr Arduino environment, have you had any related problems? I was trying all the programs. I will try again with 023 ide
- adafruit_support_bill
- Posts: 88088
- Joined: Sat Feb 07, 2009 10:11 am
Re: Ardafruit Motor shield and Arduino Uno Compile erro - help?
The recently released Arduino 1.0 IDE has some incompatibilities with previous versions. We are currently working at updating all of our libraries to support both versions.
- pburgess
- Posts: 4161
- Joined: Sun Oct 26, 2008 2:29 am
Re: Ardafruit Motor shield and Arduino Uno Compile erro - help?
The Adafruit-Motor-Shield-library and AccelStepper libraries presently on Github should both compile under Arduino 1.0 or 0022/0023.
If you've downloaded a more recent version of mikem's AccelStepper directly from his site, that could be an issue...it's not yet 1.0-compliant.
If you've downloaded a more recent version of mikem's AccelStepper directly from his site, that could be an issue...it's not yet 1.0-compliant.
- mcguyver32927
- Posts: 6
- Joined: Wed Dec 07, 2011 6:40 pm
Re: Ardafruit Motor shield and Arduino Uno Compile erro - help?
Which sketch should I be using with the IDE 023 to run 2 servos? Ultimately I need to make a gyro stabilized platform for a laser. Im starting with servos now , then going to stepper or encoded motors for more control.
- adafruit_support_bill
- Posts: 88088
- Joined: Sat Feb 07, 2009 10:11 am
Re: Ardafruit Motor shield and Arduino Uno Compile erro - help?
If you need to have both steppers moving at the same time, the AFMotor_MultiStepper example is the one to use. That example uses both the AF_Motor and AccelStepper libraries.
- mcguyver32927
- Posts: 6
- Joined: Wed Dec 07, 2011 6:40 pm
Re: Ardafruit Motor shield and Arduino Uno Compile erro - help?
thanks very much. You are helping my learning curve with is not linear yet.
Please be positive and constructive with your questions and comments.