RVR and Arduino SoftwareSerial


explains how to use the Arduino SoftwareSerial library to connect to the Arduino to a terminal.
That’s great, but I’d like to use the Arduino USB to connect to my computer so I can easily upload and debug programs, and connect the RVR via SoftwareSerial (via Arduino pins 2&3, for example.)
Is this possible? Does the RVR SDK support SoftwareSerial?

This Arduino code doesn’t work:

#include <SpheroRVR.h>
#include <SoftwareSerial.h>
// Software serial for RVR communication
SoftwareSerial rvr_serial(2, 3);

void setup() {
  // USB serial connection for console
  Serial.begin(115200);

  // Software serial for RVR communication
  rvr_serial.begin(115200);

  // set up communication with the RVR
  rvr.configUART(&rvr_serial);
...

compiler error message:
“no matching function for call to ‘SpheroRVR::configUART(SoftwareSerial*)’”

Thanks,
Wayne Seltzer
University of Colorado, Boulder - Science Discovery Robotics instructor

1 Like