I know this isn’t the Roboduino forum but I posted there a few months back with some very basic problems and never heard back. Has anyone been able to get a Roboduino working? On a side note, does anyone know if this product has been abandoned? I see tons of unanswered questions on their support forum going back months.
The sketch works great with a standard Arduino 168, not with the Roboduino.
Well, it’s a bit hacked up but this is what I’m using :
IO is to ports 10 and 11 (I actually did the test using 2 servos)
http://www.curiousinventor.com/forums/11/forum_threads/1558
#define R_FULL_FORWARD R_STOP-400
#define L_FULL_FORWARD L_STOP+400#define L_FULL_REVERSE R_FULL_FORWARD
#define R_FULL_REVERSE L_FULL_FORWARD#define R_STOP 1514
#define L_STOP 1520#define R_SWEEP_BOUNDRY 170
#define L_SWEEP_BOUNDRY 20Servo rightWheel;
Servo leftWheel;void setup()
{
rightWheel.attach(11); // attaches the servo on pin 11 to the servo object
leftWheel.attach(10); // attaches the servo on pin 10 to the servo object
delay(100); leftWheel.writeMicroseconds(L_STOP); rightWheel.writeMicroseconds(R_STOP); Serial.begin(9600); Serial.println(“Testing?.\n”);}
void loop()
{
rightWheel.writeMicroseconds(R_FULL_FORWARD); leftWheel.writeMicroseconds(L_FULL_FORWARD); Serial.write(“Forward”);// delay(20);
delay(2000);
rightWheel.writeMicroseconds(R_FULL_REVERSE); leftWheel.writeMicroseconds(L_FULL_REVERSE); Serial.write(“Reverse”);// delay(20);
delay(2000); rightWheel.writeMicroseconds(R_STOP); leftWheel.writeMicroseconds(L_STOP); Serial.write(“Stop”); delay(2000);}
I really appreciate any pointers anyone might have.