How to factory reset Arduino Uno R4 wifi?

ampheoampheo
2 min read

To factory reset the Arduino Uno R4 WiFi, you can reset both the microcontroller (RA4M1) and the ESP32-S3 (used for Wi-Fi/Bluetooth). Here’s how to fully reset it:


🛠️ 1. Factory Reset the ESP32-S3 (Wi-Fi Module)

The ESP32 on the Uno R4 WiFi stores the network credentials and settings. To reset it:

🧩 Method A: Use Arduino IDE Sketch

Upload this sketch to erase the ESP32 flash:

cpp

#include "WiFiS3.h"

void setup() {
  Serial.begin(9600);
  while (!Serial);

  // Factory reset WiFi settings
  WiFi.disconnect();
  Serial.println("WiFi settings erased.");
}

void loop() {
}
  • Upload using the Arduino IDE.

  • This will remove saved SSID/password and reset Wi-Fi to default.


🧩 Method B: Reset using Web Control Panel

  1. Connect your Uno R4 WiFi to USB.

  2. Use the Arduino Web Editor or Serial Monitor.

  3. If the board has Web Control Panel installed:

    • Access it via the IP address or local mDNS URL.

    • Go to settings → factory reset.

🧠 If the Web Control Panel has been removed, you can reinstall it from the Arduino Cloud.


🧼 2. Reset the RA4M1 Microcontroller (Main MCU)

There is no true "factory reset," but you can restore it to a clean state by:

✅ Method:

  • Upload an empty sketch or Blink example from the Arduino IDE.
cpp

void setup() { }
void loop() { }

This removes any user code and sets it to a neutral state.


🧰 Optional: Restore Original Firmware / Web Panel

If you want to restore the default firmware (e.g., Web Control Panel or OTA capabilities):

  • Use Arduino Cloud Agent or install firmware updater via Arduino IDE

  • Navigate to:

    • Tools → WiFi101 / WiFiS3 Firmware Updater

    • Select correct firmware and upload


📌 Summary

TaskMethod
Reset Wi-Fi (ESP32-S3)WiFi.disconnect() in sketch
Reset main MCU (RA4M1)Upload empty or basic sketch
Restore web tools / firmwareUse Arduino IDE or Arduino Cloud Agent
0
Subscribe to my newsletter

Read articles from ampheo directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

ampheo
ampheo