Any examples of servo control for Arduino Wifi Rev 2?

trying to get the Arduino Uno Wifi Rev 2 going with some simple examples but I do not succeed. In this case I am trying to upload the “Project 5 - Servo Mood Indicator” just to get things going but it is telling me that this is not compatible with Wifi Rev 2.

Basic info
Windows 10 Pro, Arduino Uno Wifi Rev 2, Desktop IDE (since the web editor does not work with this board, reported elsewhere).

Attached is the full log but the error seems to be quite clear:
#error “This library only supports boards with an AVR, SAM, SAMD, NRF52 or STM32F4 processor.”

Total noob so I have no idea on how to go from here. Any help would be appreciated!

Error_Servo.txt (13.1 KB)

Hi @arduino_cyberspace,

we just released the new version of Serve which supports the UNO WiFi Rev2. You can grab it here ( or via Library Manager (make sure you have version 1.1.3 installed).

Let me know if it works!


Wow, thank you very much! Still getting a warning in the log but it absolutely works, the servo is moving :slight_smile:

This is the warning:
WARNING: library Servo claims to run on (avr, megaAVR, sam, samd, nrf52, stm32f4) architecture(s) and may be incompatible with your current board which runs on (megaavr) architecture(s).

A bit confusing for me as a noob.

Attached is the full log if you want to dig deeper.

Many thanks!

Compiler_log.txt (17.6 KB)

Thanks for reporting the warning arduino_cyberspace. I have submitted a fix:

You can ignore the warning as it should not cause any problems for you.

Thank you very much for informing me!

Hi Arduino WiFi Rev2 Users,

For me, the library 1.1.3 doesn’t work correctly. The sketch i use for testing the library has to send a pulse with constant duration (1429 for example). Using a scope, i confirm the duration is often 1429 micro seconds but, ten or more times by minute, the duration is not ok. So, my servo is doing random position jumps.

My sketch is :

#include <Servo.h>

Servo my_servo;

void setup()
my_servo.attach(2, 550, 2250); // D2 pin is used to control my servo
Serial.println(" ");

void loop()
while (true)

I have already posted ( this issue, without answer.