Download Arduino IDE from official website: https://downloads.arduino.cc/arduino-ide/arduino-ide_2.3.7_Windows_64bit.exe
Install
in left palate, click BOARDS MANAGER --> type Arduino Uno ---> Install Arduino Uno R4 from Arduino.
In the Top Drop Down Menu, select ARDUINO UNO COM3
Write a simple code to blink in-built LED (pin 13) of Arduino Uno Board.
Code:
void setup()
{
pinMode(13, OUTPUT);
}
void loop()
{
digitalWrite(13, HIGH);
delay(1000);
digitalWrite(13, LOW);
delay(1000);
}
delay(1000) means 1000ms = 1000 milli seconds = 1 second
pinMode(13,OUTPUT) means, 13 pin (LED inbuilt ) connected internally to LED. Pin13 acts as OUPUT.
digitalWrite(13,HIGH) means, pin 13 is output and is given 5V (Logic 1) ... for how much time? delay(1000) --> for 1 second
similarly digitalWrite(13,LOW) ---> Logic 0 ---> for 1 second
Above code blinks LED (On= 1 second, OFF=1 second... this repeats ...hence the name void loop()
Verify
Upload
Thatsall...!!!
Once the ABOVE PROCESS OF ARDUINO DOWNLOAD and INSTALLATION is done, then only come for this step
This is ESP32. Details below:
Metal can marked “ESP-32” → that’s the ESP32-WROOM-32 module (original ESP32, not S2/S3/C3 )
Boards Manager ---> Espressif ---> INSTALL
3. CP2102 chip near the USB port → USB-to-UART bridge commonly used on DevKit V1 boards i.e., DOIT ESP32 DEVKIT V1
open Arduino IDE ---> Preferences ----> Additional BoardsManager ---> copy the below text
https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
paste ---> OK ---> OK
4. Restart Arduino IDE App....
5. Thatsall...!
download this file ---> CP210x Universal Windows Driver
unzip the folder
right click on "silabser.inf"
install
yes/ install
operation completed successfully
close
Now the CP210x task is over. Reopen the Arduino IDE and complete the process as below:
Now close Arduino IDE and open again....
Select the device and port (it shows as COM3, COM4, ...)
Run a LEDBLINK code to test the device ESP32
if it is indicated as CH34XX on Chip instead of CP2102, then you need CH34XX drivers...
The CH340 (i.e., all models of CH34XX) chip is used by a number of Arduino compatible boards to provide USB connectivity
they can be downloaded from website: CH340 Drivers for Windows, Mac and Linux
OR
directly from this link: https://sparks.gogo.co.nz/assets/_site_/downloads/CH34x_Install_Windows_v3_4.zip
Step1: https://arduino.github.io/arduino-cli/ OR https://arduino.github.io/arduino-cli/1.3/installation/
download WINDOWS EXE 64bit (filename: arduino-cli_1.4.1_Windows_64bit.zip of 17.4 MB)
Step2: unzip the folder, copy the address path of the folder
Step3: open command-prompt
C:\Users\krish>cd C:\Users\krish\Downloads\arduino-cli_1.4.1_Windows_64bit
C:\Users\krish\Downloads\arduino-cli_1.4.1_Windows_64bit>arduino-cli version
C:\Users\krish\Downloads\arduino-cli_1.4.1_Windows_64bit>arduino-cli config init
C:\Users\krish\Downloads\arduino-cli_1.4.1_Windows_64bit>arduino-cli config set board_manager.additional_urls https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
C:\Users\krish\Downloads\arduino-cli_1.4.1_Windows_64bit>arduino-cli core update-index
C:\Users\krish\Downloads\arduino-cli_1.4.1_Windows_64bit>arduino-cli core install esp32:esp32
nearly 478 MB file download
nearly 665MB file shall be downloaded
nearly 32MB file shall be downloaded
nearly 57MB file shall be downloaded
few short files
nearly 27MB file shall be downloaded
Installation process starts.... (all downloaded shall be installed or verified)
After Successful installation, "arduino-cli board listall esp32"
C:\Users\krish\Downloads\arduino-cli_1.4.1_Windows_64bit>arduino-cli board listall esp32
this must show a list of ESP32 models....
download this file ---> CP210x Universal Windows Driver
unzip the folder
right click on "silabser.inf"
install
yes/ install
operation completed successfully
close
Now the CP210x task is over. Reopen the Arduino IDE and complete the process as below:
Now close Arduino IDE and open again....
Select the device and port (it shows as COM3, COM4, ...)
Run a LEDBLINK code to test the device ESP32
Dump code into a DOIT ESP32 DEVKIT V1 wirelessly, but it requires a two-step process. You cannot do it directly out of the box; you must first load a "bridge" program via USB to enable future wireless (Over-The-Air or OTA) updates.
1. Initial Setup (Physical USB)
You must initially connect the DOIT ESP32 to your computer using a USB cable to load the initial, required firmware.
Action: In Arduino IDE, go to File > Examples > ArduinoOTA > BasicOTA.
Action: Update the ssid and password in the code to match your Wi-Fi network.
Action: Upload this sketch to the ESP32 via USB. This sketch allows the ESP32 to receive future updates over Wi-Fi.
2. Wireless Upload (OTA)
Once the BasicOTA sketch is running, you can unplug the USB cable and power the board with a battery or USB power adapter.
Action: In Arduino IDE, go to Tools > Port.
Action: You should now see an option for "esp32-xxxxxx at [IP address]".
Action: Select this network port and click the Upload button as usual.
NOTE:
Mandatory OTA Code: Every new sketch you upload wirelessly must include the ArduinoOTA.handle() and necessary Wi-Fi setup code, otherwise you will lose the ability to perform further wireless updates.
Same Network: The computer sending the code and the ESP32 must be connected to the same Wi-Fi network.
Alternative Method (Web Updater): Instead of BasicOTA, you can use the OTAWebUpdater example, which creates a web page you can visit in a browser to upload the compiled .bin file wirelessly.
refer this article (external link): website-link