๐ Software & Tools Setup
(Arduino IDE + ESP32 Setup โ Step-by-Step Guide)
๐ฏ Lesson Objective
By the end of this lesson, students will:
-
Install Arduino IDE
-
Install ESP32 Board Package
-
Configure Arduino IDE for ESP32
-
Select correct board and COM port
-
Upload first test program
-
Verify everything is working properly
This lesson prepares the development environment for all future projects.
๐ฅ๏ธ PART 1 โ Install Arduino IDE
๐น Step 1 โ Download Arduino IDE
-
Open browser
-
Go to:
๐ https://www.arduino.cc/en/software -
Click Download Arduino IDE
Choose your operating system:
-
Windows
-
macOS
-
Linux
For most students โ Windows 64-bit Installer
๐น Step 2 โ Install Arduino IDE
-
Open downloaded file
-
Click I Agree
-
Keep default settings
-
Click Install
-
Wait until installation completes
-
Click Finish
Now open Arduino IDE.
โ๏ธ PART 2 โ Install ESP32 Board Package
By default, Arduino IDE does NOT support ESP32.
We must add ESP32 manually.
๐น Step 3 โ Open Preferences
In Arduino IDE:
Click:
๐ File โ Preferences
A small window opens.
๐น Step 4 โ Add ESP32 Board URL
In the field:
Additional Boards Manager URLs
Paste this URL:
https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
https://dl.espressif.com/dl/package_esp32_index.json
If something already exists there:
Separate with comma.
Example:
Click OK
๐น Step 5 โ Open Board Manager
Click:
๐ Tools โ Board โ Boards Manager
Search for:
You will see:
esp32 by Espressif Systems
Click Install
Wait until installation completes.
This may take 2โ5 minutes.
๐ PART 3 โ Connect ESP32 to Computer
๐น Step 6 โ Connect USB Cable
Connect ESP32 board using USB cable.
Important:
Use a data cable, not charging-only cable.
If cable is wrong:
Board will power ON but not detected by computer.
๐น Step 7 โ Install USB Driver (If Needed)
If board is not detected:
Check which USB chip your board uses:
Common chips:
-
CP2102
-
CH340
If COM port not appearing:
Install driver:
For CP2102:
๐ https://www.silabs.com/developers/usb-to-uart-bridge-vcp-drivers
For CH340:
๐ https://sparks.gogo.co.nz/ch340.html
After installation, restart computer.
โ๏ธ PART 4 โ Configure Arduino IDE for ESP32
๐น Step 8 โ Select Board
Click:
๐ Tools โ Board โ ESP32 Arduino
Select:
ESP32 Dev Module
This is safe default option.
๐น Step 9 โ Select COM Port
Click:
๐ Tools โ Port
Select the COM port that appears when ESP32 is connected.
Example:
-
COM3
-
COM4
-
COM5
If no port appears:
Check USB driver.
๐งช PART 5 โ Upload First Test Code
Now we test if everything works.
๐น Step 10 โ Write Simple Blink Code
Paste this code:
ย
void setup() {
pinMode(2, OUTPUT); // Built-in LED (usually GPIO 2)
}
void loop() {
digitalWrite(2, HIGH);
delay(1000);
digitalWrite(2, LOW);
delay(1000);
}
๐น Step 11 โ Upload Code
Click:
๐ Upload (Arrow button)
If upload fails:
Hold BOOT button while clicking upload
Release when uploading starts.
Wait for:
โDone Uploadingโ
๐น Step 12 โ Verify LED Blink
If LED starts blinking:
โ
Setup successful
โ
ESP32 working
โ
IDE working
โ
Driver working
Congratulations ๐
๐ฅ๏ธ PART 6 โ Test Serial Monitor
Now test serial communication.
Replace code with:
void setup() {
Serial.begin(115200);
}
void loop() {
Serial.println("ESP32 Setup Successful!");
delay(1000);
}
Upload.
๐น Step 13 โ Open Serial Monitor
Click:
๐ Tools โ Serial Monitor
Set baud rate to:
115200
You should see:
If yes โ everything is configured correctly.
โ ๏ธ Common Problems & Solutions
โ Error: โFailed to connectโ
Solution:
-
Hold BOOT button while uploading
-
Check correct COM port
-
Check driver
โ Error: No COM Port
Solution:
-
Install driver
-
Try different USB cable
-
Try different USB port
โ Error: Compilation Failed
Solution:
-
Ensure ESP32 board installed
-
Select correct board
๐ง Why This Setup Is Important
Every project in this course depends on:
-
Correct board selection
-
Correct port
-
Correct baud rate
-
Proper driver installation
If setup is wrong โ projects wonโt work.
๐ Lesson Summary
In this lesson, we:
-
Installed Arduino IDE
-
Installed ESP32 board package
-
Installed USB driver
-
Selected correct board
-
Selected correct COM port
-
Uploaded test code
-
Verified serial monitor output
Your development environment is now ready.