I need some help programming a servo routine for the new "Official Arduino Robot".
So far, NONE of the standard Arduino servo routines function with this robot. "#include <Servo.h>" is the most common servo control routine and I get an "Error 17" whenever I attempt to use it.
More recent "standard" servo routines refuse to function as well.
It was a big shock that the robot included no servo control in its list of functions. "Forget something, Arduino???" :-)
Any help would be GREATLY appreciated!
First let me appologize to OddBot.
I realize now I didn’t include enough information. My error.
I did read the docs (there is no “manual”, just web docs on the primary Arduino website).
The error is actually "C:\arduino-1.0.5\libraries\Servo/Servo.cpp:103: multiple definition of `__vector_17’ ".
I have my USB cable going into the top “control” board. There is another USB port on the “motor” board.
I am using the Arduino IDE 1.05. None of the earlier versions support the robot.
Code:
#include <ArduinoRobot.h>
#include <Servo.h>
Servo myservo;
void setup() {
// initialize the robot
Robot.begin();
// initialize the screen
Robot.beginTFT();
// get some time to place the robot on the ground
delay(3000);
// set the robot in line following mode
Robot.setMode(MODE_LINE_FOLLOW);
myservo.attach(9);
}
void loop() {
and so on…
I really hope this helps make it clearer than “mud”.
BTW
A little more information.
I get the same error if the robot IS NOT set to "MODE_LINE_FOLLOW"
Sorry for any additional confusion.
To Bajdi:
Please add:
#include <ArduinoRobot.h>
to the top of your code and then recompile…
You cannot run the robot without that line.
See the error you get…