Home ESP8266/ESP32 ESP32 - 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 in style with crypto-currency

SATA HAT

Add an SSD to Raspberry Pi 4 and turn it into a super-cooled NAS drive.

More HATs

Argon One

Enclose Raspberry Pi 4 inside this great case with custom I/O, cooling and GPIO

More cases on

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.

Free wireless doorbell (Amazon Dash button hack)

0
The most terrifying situation I can imagine* is missing a parcel

Raspberry Pi NAS: (NAS-pi) Modding like a boss #part2

0
Plex and RAID1 NAS drive build log

MagPi – auto-downloader

0
Grab each edition of Mag Pi as soon as possible!

HOW TO...

How to boot Raspberry Pi 4 from USB

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

Raspberry Pi Zero, Raspberry Pi 3A+ WiFi without keyboard or cables

0
Getting Raspberry Pi boards connected in seconds

Everything you need to start using JSON

0
It's JSON not Jason, just saying!

How to use Join App in NodeRED

0
The day finally comes where Join app is almost everywhere!

Driving LCD with Arduino and Raspberry Pi

0
Displaying things on an LCD screen is as easy as going through a cup of jellybeans while writing this tutorial!