Difficulties compiling and loading RedBot examples

Hi there,

I have just built a RedBot kit, and have having some trouble getting the example code to work.

I am attempting to program the RedBot via USB serial connection from a MacBook, running Yosemite.

I have successfully installed the Arduino IDE and Redbot libraries.

I was able to compile and load both the Arduino “Blink” example and the RedBot experiment #1 (which I think is basically the same as Blink).

I am now attempting to compile and load RedBot experiment #2, “Drive Forward.”

While compiling, I encountered this error:

In member function 'void RedBotSoftwareSerial::begin(long int)':
/Applications/Arduino.app/Contents/Resources/Java/libraries/RedBot/RedBotSoftwareSerial.cpp:273:38: error: 'digitalPinToPCICR' was not declared in this scope
     if (digitalPinToPCICR(_receivePin))

I found that the error persists for several target boards, including Arduino Mega and Arduino Robot Control. However, the code does compile without error if I select “Arduino Uno” as the target in the Arduino IDE.

Unfortunately, though, using Arduino Uno as the target seems to cause a timeout error while uploading to the RedBot:

avrdude: stk500v2_ReceiveMessage(): timeout 

This error does not occur with Arduino Robot Control as the target (I used this target to successfully upload the Blink example).

I’m hoping that my troubles are simply a matter of not having selected the correct build settings in the Arduino IDE. Does anyone know the preferred Board, Port, and Programmer settings for the RedBot?

Any other insights or suggestions will also be appreciated.

Thanks!

-Felix

Hi all,

Looks like I solved my own problem.

In case anyone finds this thread is experiencing similar problems:

  1. The correct target board is Arduino Uno (Note to Sparkfun: I’m not sure that this is clearly indicated in the RedBot documentation).

  2. The “timeout” issue is remedied by unplugging the RedBot from the computer and holding down the reset button.

Best,

Felix