Set up Arduino IDE for ESP32

You need to do this once on your computer. After that, putting code on a board takes a minute. These steps are the same for Windows, Mac and Linux.

1. Install Arduino IDE

Download Arduino IDE 2 from arduino.cc/en/software and install it.

2. Add the ESP32 boards

  1. Open File › Preferences (on a Mac: Arduino IDE › Settings).
  2. In Additional boards manager URLs, paste: https://espressif.github.io/arduino-esp32/package_esp32_index.json
  3. Press OK.
  4. Open Tools › Board › Boards Manager, search for esp32 and install esp32 by Espressif Systems.

The RPal code has been checked with versions 2.0.17 and 3.3 of this package, and the newest version is fine.

3. Connect the board

  1. Plug the ESP32 into the computer with a USB cable. It must be a data cable: some cables only charge.
  2. Choose Tools › Board › esp32 › ESP32 Dev Module.
  3. Choose the board's port under Tools › Port. On Windows it's a COM port, on a Mac something like /dev/cu.usbserial or /dev/cu.wchusbserial.
  4. Set Tools › Upload Speed to 115200.

No port appears? Try another cable first. On Windows the board may need a USB driver: boards with a CP2102 chip use the Silicon Labs CP210x driver, and boards with a CH340 chip use the WCH CH340 driver. The chip's name is printed on the small chip next to the USB socket.

4. Upload the code

  1. Download the .ino file from the build guide and open it in Arduino IDE. If it asks to move the file into a folder with the same name, press OK.
  2. Press the Upload button (the arrow at the top left).
  3. Wait for Done uploading. This takes about a minute the first time.

Stuck at "Connecting…"? Hold the board's BOOT button until the upload starts, then let go.

5. Check it works

Open Tools › Serial Monitor and set it to 115200 baud. Every second you'll see a line like BT: 22.50 C. Warm the thermocouple tip with your fingers and the number goes up.

If it says no reading, check the wiring in the build guide.

Back to Bluetooth thermometers.