Now you're going to install Arduino IDE.
If you already have it installed, you need to go to:
File > Preferences
Additional Board Manager URLS
- Go to
Tools > Board > Boards Manager...
- Type esp32 and install
esp32 by Espressif Systems
Now plug your ESP32 to your computer via the USB port.
Upload whatever example you want to try to make sure your ESP32 works properly, I recommend
Wifi > WiFiScan.
If you get a permission error while uploading your example, such as :
could not open port /dev/ttyUSB0: [Errno 13] Permission denied: '/dev/ttyUSB0'
sudo chmod a+rw /dev/ttyUSB0
Another example you could also try is the
WebServer > HelloServer
Make sure to change the value of
const char* ssid to your own SSID (your wifi network's name) and add your wifi's password in
const char* password.
Upload the code, open the Serial Monitor at a baud rate of 115200. Then take your ESP32 and press the EN button on it to do a reset. You'll now be able to see something like this on the serial monitor if everything goes well:
-> Connected to Wifi
-> IP address: 192.168.0.00
-> MDNS responder started
-> HTTP server started
Your web server is online!
Enter the IP address it gave you in your browser and be greeted by your sweet ESP32.