DC wont reverse anymore after update roboboardX4

Hi,

I recenlty updated the library of the RoboBoardX4. before the update this worked perfectly:

X4.dcA.setInvert(true); 
X4.dcA.power(40);

But after the update I cant seem to get it reversed even with the official example:

  DC.spin(50); // Spin at 50% power
  delay(2000);
  DC.spin(-50); // Spin backwards at 50% power
  delay(2000);
  DC.setInvert(true); // Invert spin direction
  delay(1000);
  DC.setInvert(false); // Restore default spin direction
  delay(1000);
  DC.brake();   // Stop spin with brake
  delay(1000);

It only goes forward. if its at the reverse code the motor just stops and continues when it goes forward again. I changed all the cables and tried different motors. None worked. What am I doing wrong?

Hi,

can you run this code? It will print information about your board.

void setup() {
  Serial.begin(115200);
}

void loop() {
  Serial.printf("revision: v%s, driver: v%s, software: v%s\n",
    Board.getRevisionStr(),
    Board.getDriverVersionStr(),
    Board.getSoftwareVersionStr()
  );
  delay(2000);
}

It says the following :slight_smile: revision: v1.1, driver: v1.52, software: v2.0.14-totem.1

We tried another board (a co-worker had one at home) and this one does work. So it seems this one is broken :frowning:

Seems you have an early unit with (probably) defective driver firmware. Won’t be able to resolve this issue at the moment.

We will ship you replacement board. Wrote you a private message with further details.

Until new board is received, you can roll back to version v1.0.0.
Old code functions can be found here: X4, X4 features