Fatal error: mbed.h: No such file or directory

Hi,

With any project using the Braccio library I get this error:

In file included from /Users/marcofusco/Documents/Arduino/libraries/Arduino_Braccio_plusplus/src/lib/powerdelivery/PD_UFP.h:25:0,
                 from /Users/marcofusco/Documents/Arduino/libraries/Arduino_Braccio_plusplus/src/Braccio++.h:29,
                 from /private/var/folders/fr/z593mgld597gjz_k30hwlx8w0000gn/T/.arduinoIDE-unsaved2025115-3212-10wns5x.i22hf/01_playing_with_the_motors/01_playing_with_the_motors.ino:1:
/Users/marcofusco/Documents/Arduino/libraries/Arduino_Braccio_plusplus/src/lib/powerdelivery/FUSB302_UFP.h:22:10: fatal error: mbed.h: No such file or directory

Here is a sketch:

#include <Braccio++.h>

int motorID= 0;

void setup() {
  Braccio.begin();
  delay(500);
  
  Serial.begin(115200);
  while(!Serial){}
}

void loop() {
  Serial.println("To start, send any key to the serial port:");
  while((Serial.available() <= 0)){};
  Serial.read(); // Clear the serial buffer
  
  for(motorID = 1; motorID <=6; motorID++){
    Serial.println("\nMoving the motor " + String(motorID));
    Serial.println("Current angle 0.0 (zero)");
    
    Braccio.move(motorID).to(0.0f);
    delay(2000);  // delay between movements

    Serial.println("Current angle 90.0");
    Braccio.move(motorID).to(90.0f);
    delay(2000);  // delay between movements

    Serial.println("Current angle 180.0");
    Braccio.move(motorID).to(180.0f);
    delay(2000);  // delay between movements

    Serial.println("Current angle 270.0");
    Braccio.move(motorID).to(270.0f);
    delay(2000);  // delay between movements

    Serial.println("Current angle 315.0\n");
    Braccio.move(motorID).to(315.0f);
    delay(2000);  // delay between movements
  }
}

I tried this but did not see that in my library directory: Mbed Libray not found

Thank you.

What Arduino board are you using?

Arduino Uno

You have to install the following boards in board manager


then select the correct RP2040 (watch the faint text to determine)

You will see a lot of warnings, but I got a successful verify.

And is the Arduino Uno an MBED supported board?

The kit tells you it has to be an Arduino RP2040 Connect, an UNO can't work.

I'm not sure I understand. The Braccio came with an Arduino Uno and Uno Shield for the motors.

I was able to upload a sketch to the Arduino previously, I just don't remember the exact file.

It turns out I confused the Tinkerkit Braccio and the Braccio++.