# BraccioOfUnoWiFi.ino not working

**URL:** <https://forum.arduino.cc/t/braccioofunowifi-ino-not-working/1457967>\
**Category:** 3rd Party Boards\
**Created:** [September 2, 2026, 3:39am UTC](https://forum.arduino.cc/t/braccioofunowifi-ino-not-working/1457967 "2026-09-02T03:39:24Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![doxrus2](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/doxrus2/32/1275119_2.png) [@doxrus2](https://forum.arduino.cc/u/doxrus2)\
**Post date:** [September 2, 2026, 3:39am UTC](https://forum.arduino.cc/t/braccioofunowifi-ino-not-working/1457967/1 "2026-09-02T03:39:24Z")

</div>

All the Braccio sketches not using the wifi work. When I try using this sketch (BraccioOfUnoWiFi.ino) which came with the examples, I get this error:

```plaintext
FQBN: arduino:renesas_uno:unor4wifi
Using board 'unor4wifi' from platform in folder: C:\Users\\AppData\Local\Arduino15\packages\arduino\hardware\renesas_uno\1.6.0
Using core 'arduino' from platform in folder: C:\Users\ **** \AppData\Local\Arduino15\packages\arduino\hardware\renesas_uno\1.6.0

Detecting libraries used...
C:\Users\\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4/bin/arm-none-eabi-g++ -c -w -Os -g3 -fno-use-cxa-atexit -fno-rtti -fno-exceptions -nostdlib -DF_CPU=48000000 -DNO_USB -DBACKTRACE_SUPPORT -DARDUINO_UNOR4_WIFI -std=gnu++17 -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsigned-char -ffunction-sections -fdata-sections -fmessage-length=0 -fno-builtin -w -x c++ -E -CC -DARDUINO=10607 -DPROJECT_NAME="C:\Users\\AppData\Local\arduino\sketches\BF22E28C4F68FCE7CD6989FBE6E11851/BraccioOfUnoWiFi.ino" -DARDUINO_UNOWIFIR4 -DARDUINO_ARCH_RENESAS_UNO -DARDUINO_ARCH_RENESAS -DARDUINO_FSP -D_XOPEN_SOURCE=700 -mthumb @C:\Users\ **** \AppData\Local\Arduino15\packages\arduino\hardware\renesas_uno\1.6.0\variants\UNOWIFIR4/defines.txt -DCFG_TUSB_MCU=OPT_MCU_RAXXX -IC:\Users\xxxx\AppData\Local\Arduino15\packages\arduino\hardware\renesas_uno\1.6.0\cores\arduino/tinyusb -IC:\Users\xxxx\AppData\Local\Arduino15\packages\arduino\hardware\renesas_uno\1.6.0\cores\arduino/api/deprecated -IC:\Users\xxxx\AppData\Local\Arduino15\packages\arduino\hardware\renesas_uno\1.6.0\cores\arduino/api/deprecated-avr-comp -IC:\Users\xxxx\AppData\Local\Arduino15\packages\arduino\hardware\renesas_uno\1.6.0\cores\arduino -IC:\Users\xxxx\AppData\Local\Arduino15\packages\arduino\hardware\renesas_uno\1.6.0\variants\UNOWIFIR4 -iprefixC:\Users\xxxx\AppData\Local\Arduino15\packages\arduino\hardware\renesas_uno\1.6.0 @C:\Users\xxxx\AppData\Local\Arduino15\packages\arduino\hardware\renesas_uno\1.6.0\variants\UNOWIFIR4/includes.txt C:\Users\xxxx\AppData\Local\arduino\sketches\BF22E28C4F68FCE7CD6989FBE6E11851\sketch\BraccioOfUnoWiFi.ino.cpp.merged -o nul -MMD -MF C:\Users\xxxx\AppData\Local\arduino\sketches\BF22E28C4F68FCE7CD6989FBE6E11851\sketch\BraccioOfUnoWiFi.ino.cpp.merged.libsdetect.d
Alternatives for Wire.h: [Wire]
ResolveLibrary(Wire.h)
-> candidates: [Wire]
C:\Users\xxxx\Documents\Arduino\sketches\Braccio\BraccioOfUnoWiFi\BraccioOfUnoWiFi.ino:39:10: fatal error: ArduinoWiFi.h: No such file or directory
#include <ArduinoWiFi.h>
^ ~~~~~~~~~~~~~~
compilation terminated.
C:\Users\xxxx\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4/bin/arm-none-eabi-g++ -c -w -Os -g3 -fno-use-cxa-atexit -fno-rtti -fno-exceptions -nostdlib -DF_CPU=48000000 -DNO_USB -DBACKTRACE_SUPPORT -DARDUINO_UNOR4_WIFI -std=gnu++17 -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsigned-char -ffunction-sections -fdata-sections -fmessage-length=0 -fno-builtin -w -x c++ -E -CC -DARDUINO=10607 -DPROJECT_NAME="C:\Users\xxxx\AppData\Local\arduino\sketches\BF22E28C4F68FCE7CD6989FBE6E11851/BraccioOfUnoWiFi.ino" -DARDUINO_UNOWIFIR4 -DARDUINO_ARCH_RENESAS_UNO -DARDUINO_ARCH_RENESAS -DARDUINO_FSP -D_XOPEN_SOURCE=700 -mthumb @C:\Users\xxxx\AppData\Local\Arduino15\packages\arduino\hardware\renesas_uno\1.6.0\variants\UNOWIFIR4/defines.txt -DCFG_TUSB_MCU=OPT_MCU_RAXXX -IC:\Users\xxxx\AppData\Local\Arduino15\packages\arduino\hardware\renesas_uno\1.6.0\cores\arduino/tinyusb -IC:\Users\xxxx\AppData\Local\Arduino15\packages\arduino\hardware\renesas_uno\1.6.0\cores\arduino/api/deprecated -IC:\Users\xxxx\AppData\Local\Arduino15\packages\arduino\hardware\renesas_uno\1.6.0\cores\arduino/api/deprecated-avr-comp -IC:\Users\xxxx\AppData\Local\Arduino15\packages\arduino\hardware\renesas_uno\1.6.0\cores\arduino -IC:\Users\xxxx\AppData\Local\Arduino15\packages\arduino\hardware\renesas_uno\1.6.0\variants\UNOWIFIR4 -IC:\Users\xxxx\AppData\Local\Arduino15\packages\arduino\hardware\renesas_uno\1.6.0\libraries\Wire -iprefixC:\Users\xxxx\AppData\Local\Arduino15\packages\arduino\hardware\renesas_uno\1.6.0 @C:\Users\xxxx\AppData\Local\Arduino15\packages\arduino\hardware\renesas_uno\1.6.0\variants\UNOWIFIR4/includes.txt C:\Users\xxxx\AppData\Local\arduino\sketches\BF22E28C4F68FCE7CD6989FBE6E11851\sketch\BraccioOfUnoWiFi.ino.cpp.merged -o nul -MMD -MF C:\Users\xxxx\AppData\Local\arduino\sketches\BF22E28C4F68FCE7CD6989FBE6E11851\sketch\BraccioOfUnoWiFi.ino.cpp.merged.libsdetect.d
Alternatives for ArduinoWiFi.h: []
ResolveLibrary(ArduinoWiFi.h)
-> candidates: []
exit status 1

Compilation error: ArduinoWiFi.h: No such file or directory

```

I am using the Arduino R4 WiFi board with Braccio Shield V4.

Here is the sketch:

```cpp
/*

 braccioOfUnoWifi.ino
 
 Based on Arduino Uno WiFi Rest Server example
 This example for the Arduino Uno WiFi shows how to 
 control a TinkerKit Braccio through REST calls. 
 You can create your how mobile app or your 
 browser app to control the Braccio in wireless mode

 Note that with the Braccio shield version less than V4
 you need to disconnect the pin A4 from the shield to the board

 Possible commands created in this shetch:

 * "/arduino/custom/base/value:80" -> Moves the base of the Braccio at 80 degrees
 * "/arduino/custom/shoulder/value:150" -> Moves the shoulder of the Braccio at 150 degrees
 * "/arduino/custom/elbow/value:45" -> Moves the elbow of the Braccio at 45 degrees
 * "/arduino/custom/wristv/value:10" -> Moves the wristv of the Braccio at 10 degrees
 * "/arduino/custom/wristr/value:120" -> Moves the wristr of the Braccio at 120 degrees
 * "/arduino/custom/gripper/value:73" -> Close the gripper
 * "/arduino/custom/ledon" -> Turn ON the LED 13
 * "/arduino/custom/ledoff" -> Turn OFF the LED 13
 * "/arduino/custom/servo:3/value:73" -> Moves the servo to the pin 3 at 73 degrees
 * "/arduino/custom/sayciao" -> Run the function sayciao(). The Braccio say "Ciao" with the gripper
 * "/arduino/custom/takesponge" -> Run the function takesponge(). The Braccio take the big sponge you can find in the its box
 * "/arduino/custom/showsponge" -> Run the function showsponge(). The Braccio show the sponge to the user
 * "/arduino/custom/throwsponge" -> Run the function throwsponge(). The Braccio throw away the sponge

 This example code is part of the public domain
 http://labs.arduino.org/RestServer+and+RestClient
 http://www.arduino.org/products/tinkerkit/arduino-tinkerkit-braccio

*/
#include <Wire.h>
#include <ArduinoWiFi.h>
#include <Servo.h>
#include <Braccio.h>

//Initial Value for each Motor
int m1 = 0;
int m2 = 45;
int m3 = 180;
int m4 = 180;
int m5 = 90;
int m6 = 0;

bool moveBraccio = false;

Servo base;
Servo shoulder;
Servo elbow;
Servo wrist_rot;
Servo wrist_ver;
Servo gripper;

void setup() {
  //Intitialization of Braccio
  Braccio.begin();
  //Intitialization of the Uno WiFi
  Wifi.begin();
  Wifi.println("REST Server is up");
}

void loop() {
  //Wait until the board receives HTTP commands
  while (Wifi.available()) {
    process(Wifi);
  }
  delay(50);
}

/**
Parse Command from REST
It parse a command like: /arduino/custom/base/value:45
@param command: The message to parse
@param type: the key for parsing
@return the value for the key 
*/

int parseCommand(String command, String type) {
  int typeIndex = command.indexOf(type);
  int dotsIndex = command.indexOf(':', typeIndex + type.length());
  int idxtmp = dotsIndex + 4;
  if ((dotsIndex + 4) > command.length()) idxtmp = command.length();
  String tmp = command.substring(dotsIndex + 1, idxtmp);
  return tmp.toInt();
}

/**
It process data from the HTTP protocol
*/
void process(WifiData client) {
  // read the command
  String command = client.readString();
  command.toUpperCase();
  if(command.indexOf("CUSTOM")==-1){
    client.println("Invalid command: " + command + "");
    return;
  }

  //The message from sender
  String message = command.substring(16);
  //client.println(message); //Debug 
  
  /*
  For each message perform the proper command
  */
  if (message == "LEDON") {
    //Turn ON Led 13
    digitalWrite(13, HIGH);
    //Return message to the sender (Eg: the browser)
    client.println("alert('Led D13 ON');");
  }
  else if (message == "LEDOFF") {
    digitalWrite(13, LOW);
    client.println("alert('Led D13 OFF');");
  }

  //This command allow you to move a desired servo motor giving the
  //PWM pin where is connected
  //eg: http://192.168.240.1/arduino/custom/servo:3/value:45 or http://192.168.240.1/arduino/custom/base/value:45
  else if (message.startsWith("SERVO")) {
    //Parse the message to retrive what is the servo to move
    int servo = parseCommand(message, "SERVO");
    //Parse the message to retrive what is the value for the servo
    int value = parseCommand(message, "VALUE");
    client.println("Message:" + String(message) + "SERVO: " + String(servo) + " " + String(value));
    moveBraccio=true;
  }

  //http://192.168.240.1/arduino/custom/base:45 or http://192.168.240.1/arduino/custom/base/value:45
  //Command for the base of the braccio (M1)
  else if (message.startsWith("BASE")) {
    m1 = parseCommand(message, "VALUE");
    moveBraccio = true;
    client.println("BASE: " + String(m1));
  }

  //Command for the shoulder of the braccio (M2)
  else if (message.startsWith("SHOULDER")) {
    m2 = parseCommand(message, "VALUE");
    moveBraccio = true;
    client.println("SHOULDER: " + String(m2));
  }

  //Command for the elbow of the braccio (M3)
  else if (message.startsWith("ELBOW")) {
    m3 = parseCommand(message, "VALUE");
    moveBraccio = true;
    client.println("ELBOW: " + String(m3));
  }

  //Command for the wrist of the braccio to move it up and down (M4)
  else if (message.startsWith("WRISTV")) {
    m4 = parseCommand(message, "VALUE");
    moveBraccio = true;
    client.println("WRISTV: " + String(m4));
  }

  //Command for the wrist of the braccio to rotate it (M5)
  else if (message.startsWith("WRISTR")) {
    m5 = parseCommand(message, "VALUE");
    moveBraccio = true;
    client.println("WRISTR: " + String(m5));
  }

  //Command for the GRIPPER of the braccio to open and close it (M6)
  else if (message.startsWith("GRIPPER")) {
    m6 = parseCommand(message, "VALUE");
    moveBraccio = true;
    client.println("GRIPPER: " + String(m6));
  }

  //Command to say "Ciao"
  else if (message.startsWith("SAYCIAO")) {
    sayCiao();
    client.println("SAYCIAO: " + String(m6));
  }

  //Command for take the sponge
  else if (message.startsWith("TAKESPONGE")) {
    takesponge();
    client.println("TAKESPONGE: " + String(m6));
  }

  //Command for show the sponge
  else if (message.startsWith("SHOWSPONGE")) {
    showsponge();
    client.println("SHOWSPONGE: " + String(m6));
  }

  //Command for throw away the sponge
  else if (message.startsWith("THROWSPONGE")) {
    throwsponge();
    client.println("THROWSPONGE: " + String(m6));
  }
  else
    client.println("command error: " + message);

  //if flag moveBraccio is true fire the movement
  if (moveBraccio) {
    //client.println("moveBraccio");
    Braccio.ServoMovement(20, m1, m2, m3, m4, m5, m6);
    moveBraccio = false;
  }
  client.flush();
}

/**
The braccio Say 'Ciao' with the GRIPPER
*/

void sayCiao() {
  Braccio.ServoMovement(20, 90, 0, 180, 160, 0, 15);

  for (int i = 0; i < 5; i++) {
    Braccio.ServoMovement(10, 90, 0, 180, 160, 0, 15);
    delay(500);
    Braccio.ServoMovement(10, 90, 0, 180, 160, 0, 73);
    delay(500);
  }
}

/**
Braccio take the Sponge
*/
void takesponge() {
  //starting position
  //(step delay M1 , M2 , M3 , M4 , M5 , M6);
  Braccio.ServoMovement(20, 0, 45, 180, 180, 90, 0);

  //I move arm towards the sponge
  Braccio.ServoMovement(20, 0, 90, 180, 180, 90, 0);

  //the GRIPPER takes the sponge
  Braccio.ServoMovement(20, 0, 90, 180, 180, 90, 60 );

  //up the sponge
  Braccio.ServoMovement(20, 0, 45, 180, 45, 0, 60);
}

/**
Braccio show the sponge to the user
*/
void showsponge() {
  for (int i = 0; i < 2; i++) {

    //(step delay M1 , M2 , M3 , M4 , M5 , M6 );
    Braccio.ServoMovement(10, 0, 45, 180, 45, 180, 60);
    Braccio.ServoMovement(10, 0, 45, 180, 45, 0, 60);
  }
}

/**
Braccio throw away the sponge
*/
void throwsponge() {
  //(step delay M1 , M2 , M3 , M4 , M5 , M6 );
  Braccio.ServoMovement(20, 0, 45, 90, 45, 90, 60);
  Braccio.ServoMovement(5, 0, 45, 135, 90, 90, 60);
  Braccio.ServoMovement(5, 0, 90, 150, 90, 90, 0);
}

```

According to the error, it looks like I am missing the correct library but I can't find anything named "ArduinoWiFi". Every time I Google it, it points me to WiFi.h.

Doxrus2

---

<div class="post-metadata">

**Author:** ![J-M-L](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/j-m-l/32/766245_2.png) [@J-M-L](https://forum.arduino.cc/u/J-M-L)\
**Post date:** [September 2, 2026, 3:56am UTC](https://forum.arduino.cc/t/braccioofunowifi-ino-not-working/1457967/2 "2026-09-02T03:56:36Z")

</div>

The Braccio is an old stuff that was developed for the original Arduino Uno WiFi around 2016 IIRC. that's what the board’s WiFi examples were written against likely and your example sketch is leftover from that old, discontinued board, not the newer UNO R4 WiFi.

`ArduinoWiFi.h` and the `Wifi.begin()` / `WifiData` API were specific to that old board's onboard WiFi module and this library was never ported as is to the R4 WiFi's core, which is why it's simply not on your system. It shipped in the Braccio examples folder probably as legacy code that never got cleaned out in case you had an arduino from that time too…

Porting it to your board is doable, but it requires reworking the networking code to use the WiFiS3 library instead, which has a different API than the old sketch: it uses `WiFiServer` and `WiFiClient` objects in place of the old `Wifi` and `WifiData` classes, so the setup, connection handling, and request-parsing code all need to be rewritten around that new API. The Braccio-specific logic (servo control, command parsing) can stay as-is.

It’s a goood exercise to both understanding the code you are using and learning the new wifi API…. 🙂

---

<div class="post-metadata">

**Author:** ![van\_der\_decken](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/van_der_decken/32/1006976_2.png) [@van\_der\_decken](https://forum.arduino.cc/u/van_der_decken)\
**Post date:** [September 2, 2026, 4:06am UTC](https://forum.arduino.cc/t/braccioofunowifi-ino-not-working/1457967/3 "2026-09-02T04:06:23Z")

</div>

From [Getting Started with the Tinker Kit Braccio Robot](https://docs.arduino.cc/retired/getting-started-guides/Braccio/):

> Compatible Boards:
> 
> - Uno
> - Uno SMD
> - Uno WiFi
> - Due
> - Mega 2560
> - Ethernet
> - Leonardo
> - Leonardo ETH
> - M0
> - M0 Pro
> - Yun\*
> - Tian\*

Conspicuous by their absence are any R4 boards.

Conclusion: the library for your shield is not compatible with any flavour of R4 board.

---

<div class="post-metadata">

**Author:** ![xfpd](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/xfpd/32/1120236_2.png) [@xfpd](https://forum.arduino.cc/u/xfpd)\
**Post date:** [September 2, 2026, 12:58pm UTC](https://forum.arduino.cc/t/braccioofunowifi-ino-not-working/1457967/5 "2026-09-02T12:58:47Z")

</div>

There is no standard, low layer, socket (driver) that high layer sketches (app) can use? Arduino wifi is bottom-to-top, board specific? Bummer.

---

<div class="post-metadata">

**Author:** ![ptillisch](https://avatars.discourse-cdn.com/v4/letter/p/ad7895/32.png) [@ptillisch](https://forum.arduino.cc/u/ptillisch)\
**Post date:** [September 2, 2026, 3:19pm UTC](https://forum.arduino.cc/t/braccioofunowifi-ino-not-working/1457967/6 "2026-09-02T15:19:09Z")

</div>

> [@xfpd](#):
>
> Arduino wifi is bottom-to-top, board specific?

An ad hoc standardized API was established with the [" **WiFi**" library](https://github.com/arduino-libraries/WiFi) of the [**Arduino WiFi Shield**](https://docs.arduino.cc/retired/shields/arduino-wifi-shield). Furthermore, that library's API inherits from the general purpose `Client`, `Server`, `UDP`, `Stream`, and `Print` classes, which results in the API also aligning with other networking libraries.

This standard has been loosely followed by the ecosystem. @Juraj did some excellent work surveying the networking library ecosystem and trying to improve the consistency. You can find information about that here:

> **[GitHub - Networking-for-Arduino/Arduino-Networking-API: A repository to document the Arduino Networking...](https://github.com/Networking-for-Arduino/Arduino-Networking-API)**
>
> A repository to document the Arduino Networking API established by the Arduino Ethernet library, adopted for WiFi with the Arduino WiFi library, evolved with Arduino WiFiNINA library and esp8266 WiFi library.

Unfortunately the developers of the libraries ("[**Arduino WiFi**](https://github.com/arduino-libraries/WiFi_for_UNOWiFi_rev1)" and "[**Arduino Uno WiFi Dev Ed Library**](https://github.com/arduino-libraries/UnoWiFi-Developer-Edition-Lib)") created for the [**Arduino UNO WiFi**](https://docs.arduino.cc/retired/boards/arduino-uno-wifi) board (note this is completely different from the [**UNO WiFi Rev2**](https://docs.arduino.cc/hardware/uno-wifi-rev2)) didn't follow the established API. This code was written by the "arduino.org" folks during the "[Arduino vs. Arduino](https://hackaday.com/2015/02/25/arduino-v-arduino/)" saga. The "arduino.org" people were the ones involved in the hardware manufacturing side of the Arduino business and so lacked experience in software development.

The situation is much better for the [**UNO R4 WiFi**](https://docs.arduino.cc/hardware/uno-r4-wifi) @doxrus2 is using. That board's "[**WiFiS3**](https://github.com/arduino/ArduinoCore-renesas/tree/main/libraries/WiFiS3)" library does follow the standardized API.

---

<div class="post-metadata">

**Author:** ![doxrus2](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/doxrus2/32/1275119_2.png) [@doxrus2](https://forum.arduino.cc/u/doxrus2)\
**Post date:** [September 2, 2026, 7:32pm UTC](https://forum.arduino.cc/t/braccioofunowifi-ino-not-working/1457967/7 "2026-09-02T19:32:14Z")

</div>

how do you install the WiFiS3 library? There's no code button on Github.

---

<div class="post-metadata">

**Author:** ![ptillisch](https://avatars.discourse-cdn.com/v4/letter/p/ad7895/32.png) [@ptillisch](https://forum.arduino.cc/u/ptillisch)\
**Post date:** [September 2, 2026, 8:25pm UTC](https://forum.arduino.cc/t/braccioofunowifi-ino-not-working/1457967/9 "2026-09-02T20:25:25Z")

</div>

> [@doxrus2](#):
>
> how do you install the WiFiS3 library?

It is bundled with the " **Arduino UNO R4 Boards**" platform that adds support to Arduino IDE for the UNO R4 WiFi boards. So you already have it installed.

You can learn how to use it by studying the examples you will find under Arduino IDE's **File \> Examples \> WiFiS3** menu.
