Hi,
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).
Error
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!
Wow, thank you very much! Still getting a warning in the log but it absolutely works, the servo is moving
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.
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.begin(115200);
delay(10);
Serial.println(" ");
Serial.println("Uno_test");
}
void loop()
{
while (true)
{
mon_servo.write(1429);
delay(100);
}
}