HomeESP8266/ESP32ESP32 - getting started on Windows

ESP32 – getting started on Windows

All you need to know to start programming with ESP32

My previous ESP boards (8266) are great but it comes with one limitation – the number of usable pins. It was time to upgrade! And what an upgrade it is. 2 core processing, Bluetooth 4.2 and virtually all the space you will ever need for your sketches.

The boards are less and less expensive and you can order yours from Aliexpress. Here is the link for the one I got:

Buy ESP32

Buy it using these links to support NotEnoughTech.

ESP32 – getting started guide will help you to get your Windows PC ready to push files to the board.

ESP32 – getting started

Before we go to the meat of things, there are few downloads to do. I will put them in a nice list so you could get your machine ready:

Now that everything is installed we can start the set up of our toolchain. Open Git GUI. We will use Clone Existing Repository:

https://github.com/espressif/arduino-esp32.git
esp32 - getting started

Download it to a folder /espressif/esp32 anywhere on your drive. Once the operation is completed, open the directory and find tools/get.exe. Run the file and wait until an additional library is downloaded and extracted.

esp32 - getting started

Copy the entire ‘espressif’ folder into the Program Files (x84)/Arduino/hardware directory. Plug in the ESP32 and wait for the Windows to update the drivers. A COM port should be assigned to the ESP32 board. Make a note of the port (using the device manager).

Open up Arduino IDE and go to the board manager. This time you should see the ESP32 board. Select the board and upload the test sketch:

Arduino Sketch - WIFI
#include 
const char* ssid     = "SSID";
const char* password = "PASSWORD";

void setup()
{
    Serial.begin(115200);
    delay(10);

    // We start by connecting to a WiFi network

    Serial.println();
    Serial.println();
    Serial.print("Connecting to ");
    Serial.println(ssid);

    WiFi.begin(ssid, password);

    while (WiFi.status() != WL_CONNECTED) {
        delay(500);
        Serial.print(".");
    }

    Serial.println("");
    Serial.println("WiFi connected");
    Serial.println("IP address: ");
    Serial.println(WiFi.localIP());
}

void loop()
{}

Open up the serial monitor (baud 115200) to see if the board has connected successfully to the WIFI. You should be ready to rock!

I hope that this ESP32 – getting started guide made things short, sweet and easy for you. If you prefer to download the ready Arduino file here is the sketch for you:

Project Download

Download project files here. Bear in mind that Patreon supporters have early access to project files and videos.

PayPal

Nothing says "Thank you" better than keeping my coffee jar topped up!

Patreon

Support me on Patreon and get an early access to tutorial files and videos.

image/svg+xml

Bitcoin (BTC)

Use this QR to keep me caffeinated with BTC: 1FwFqqh71mUTENcRe9q4s9AWFgoc8BA9ZU

M5Paper

Programable, ESP32 based awesome dev platform with 4.7 e-ink display by M5Stack

More HATs

client-image
client-image

Argon One M.2

Enclose Raspberry Pi 4 inside this great case with custom I/O, cooling and GPIO and M.2 SSD support

More cases on

client-image
client-image

Best Raspberry Pi Projects

How to use Raspberry PI as WOL (wake on lan) server

0
While you could wake up your PC from a mobile directly, having a dedicated server capable of doing so is the best solution. The reason is simple. You can hook up as many devices as you wish with a single endpoint. This is why Raspberry Pi is perfect for this.

Slow Internet Warning

0
From time to time my Internet grinds to a stop. Since Raspberry Pi 4 comes with a 1Gbps Ethernet, I decided to take advantage of it and create a reporting system in NodeRED that will monitor and report when the ISP is not keeping the contractual agreements. Works with Alexa, Google Home, Android and Windows 10.

How fast Raspberry Pi NAS is?

0
Let's see how fast Raspberry Pi NAS really is?

Argon18: Argon ONE SSD modification

0
Argon One case just got better - now you can boot it from USB without ruining the design thanks to Argon 18: Argon One SSD modification

HOW TO...

It took me 2 months to boot CM4 from NVMe

0
Complete beginners guide to Compute Module 4 boot from NVMe.

Raspberry Pi Zero 2 W vs other Zero boards

0
It's time to test the Raspberry Pi Zero 2 W against other Raspberry Pi boards from Zero series: power, WiFi, temperature and core performance

C/C++ and MicroPython SDK for Raspberry Pi Pico on Windows

0
A guide to SDK toolchain for Raspberry Pi Pico and C/C++ , Micropython on Windows.

A comprehensive guide to Grafana & InfluxDB

0
How to use Grafana and InfluxDB on Raspberry Pi for IoT sensors in home automation

How to boot Raspberry Pi 4 from USB

0
How to set up and boot Raspberry Pi 4 from USB drive - headless guide.