Installing the ESP32 Board in Arduino IDE
Go to this website, follow steps 1–5 in the installation process. (Don’t do “Testing the Installation”)
Once you’re done with the installation, go to
Tools > Board > ESP32 Arduino, and choose
Tools > Port, take a look at what you have there. Now connect your ESP32 to the computer, go to
Tools > Portagain, and choose the new option that appeared.
That’s it. Congratulations.
It’s time to run a first example.
- Go to
File > Examples > 01.Basics, click on
- Press the “right arrow” button on the top left to upload the code onto the ESP32.
- When you see “Connecting” on the bottom of the screen, press the right button on the ESP32.
Printing increasing numbers
Upload the following code to your ESP32, then click on the on the top right corner. This is called “Serial Monitor”.
Printing random numbers, then plotting!
- Upload the following code to your ESP32.
- Open the Serial Monitor (). Now close it, and
- Go to
Tools > Serial Plotter.
Floats, functions, conditionals
We will now learn how to deal with floats, how to define our own functions, and how to write conditionals (if/else).