Course Content
IoT Engineering Course using ESP32 with 12 Real-World Projects

๐Ÿ“˜ 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

  1. Open browser

  2. Go to:
    ๐Ÿ‘‰ https://www.arduino.cc/en/software

  3. Click Download Arduino IDE

Choose your operating system:

  • Windows

  • macOS

  • Linux

For most students โ†’ Windows 64-bit Installer


๐Ÿ”น Step 2 โ€“ Install Arduino IDE

  1. Open downloaded file

  2. Click I Agree

  3. Keep default settings

  4. Click Install

  5. Wait until installation completes

  6. 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
orย 
https://dl.espressif.com/dl/package_esp32_index.json

If something already exists there:

Separate with comma.

Example:

ย 
existing_link,https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
ย 

Click OK


๐Ÿ”น Step 5 โ€“ Open Board Manager

Click:

๐Ÿ‘‰ Tools โ†’ Board โ†’ Boards Manager

Search for:

ย 
ESP32
ย 

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:

ย 
ESP32 Setup Successful!
ย 

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.

Scroll to Top