Connecting Arduino Uno R4 Wifi with network

Dear members of the Arduino forum,

I'm new here and trying to connect my Arduino Uno R4 to my home Wi-Fi network. I'm using Gemini because I can't get it to work without it. However, I can't connect to my Wi-Fi network.
I can't upload the latest firmware 0.6.0. When I press install, the "Serial Monitor" indicates there's no connection.
Does anyone have any idea what's wrong?

Welcome to the forum

Your post has nothing to do with the Arduino Project itself so has been moved to the forum category for the Uno RE4 WiFi board

What sketch are you running on the board that will not connect to your WiFi network ?

What is Gemini ?

Thanks for your quick reply. Gemini is Google's AI. I'm an amateur, so without AI I wouldn't get very far with my project, which requires Arduino.

Please post your full sketch, using code tags when you do

Posting your code using code tags prevents parts of it being interpreted as HTML coding and makes it easier to copy for examination

In my experience the easiest way to tidy up the code and add the code tags is as follows

Start by tidying up your code by using Tools/Auto Format in the IDE to make it easier to read. Then use Edit/Copy for Forum and paste what was copied in a new reply. Code tags will have been added to the code to make it easy to read in the forum thus making it easier to provide help.

It is also helpful to post error messages in code tags as it makes it easier to scroll through them and copy them for examination

#include <WiFiEspAT.h>

// WI-FI CREDENTIALS - PAS DEZE AAN!
const char* ssid = "";
const char* password = "";

void setup() {
  Serial.begin(115200);
  delay(10);
  Serial.println("Arduino is gestart.");
  
  // Initialiseer de Wi-Fi module op de Arduino Uno R4 WiFi
  WiFi.init(&Serial1);
  
  Serial.print("Verbinden met ");
  Serial.println(ssid);
  
  WiFi.begin(ssid, password);
  
  int attempts = 0;
  while (WiFi.status() != WL_CONNECTED && attempts < 20) {
    delay(500);
    Serial.print(".");
    attempts++;
  }
  
  if (WiFi.status() == WL_CONNECTED) {
    Serial.println("");
    Serial.println("WiFi verbonden.");
    Serial.print("IP-adres: ");
    Serial.println(WiFi.localIP());
  } else {
    Serial.println("");
    Serial.println("Verbinding mislukt.");
  }
}

void loop() {
  // Dit programma doet verder niets in de loop.
}

Is there a particular reason why you are using the WiFiEspAT library rather than more standard WiFiS3 library ?

Have you tried any of the WiFi examples that are installed with the board ?

No not particular. That's what Gemini came up with. I will try Wifi3. Thanks for the info

Try the examples first

where can I find these wifi examples?

Select the Uno R4 WiFi and its port in the IDE then look in File/Examples

Okay found it. Wich exemple shall I use?

What do you want to do with the WiFi connection ?

Maybe start with the WiFiWebServer example. You will need to edit the SSID and password in the arduino_secrets.h file that shows as a tab in the IDE and make sure that the Serial monitor baud rate matches that in the sketch

Upload the sketch, open the Serial monitor and reset the board. You should see messages as it connects to the WiFi and an IP address that you can connect to with a web browser on the PC

That seems to work.

Try closing the serial monitor when updating firmware.

https://support.arduino.cc/hc/en-us/articles/9670986058780-Update-the-connectivity-module-firmware-on-UNO-R4-WiFi#ide says:

Use the Firmware Updater in Arduino IDE

Updating the connectivity firmware is easy when using the Firmware Updater in Arduino IDE 2.2.1 or later.

Follow these steps:

  1. Connect the board to your computer and open Arduino IDE 2.
  2. If the Serial Monitor is open, close it.
  3. In the top menu bar, open Tools > Firmware Updater.
  4. Select UNO R4 WiFi in the drop-down menu and click the Check Updates button.

Further to the above post by @embeddedkiddie see my post (Post #3) describing the "no connection" message after the update.

You also need to disconnect then reconnect the UNO R4 WiFi board to cycle power after the update.

It sounds like you are on your way

What are you hoping to do using the WiFi connection ?

I want to make my dishwash machine smart. But it is an old one. So I have to design a mechanical device to turn on the power switch and the switch to start a programm. So then I can start my dishwash machine on a distance, or with a timer. I have a Raspberry pi. This will give a signal via Home assistant after a command of Google Home. Home assistant sents a msqq message to Arduino ia this wifi network. Arduino translates to an electrical signal to a L298N motordriver. And the L298N gives power to two actuators witch will press the power button an the start button.

I tried to install the latest firmware 0.6.0. But at the moment that I push "install", the connection is broken as you can see in the picture. Text is in Dutch but probably you can translate it.

You appear not to have a board selected