Getting started with the ESP32 Wifi module

The ESP32 Wifi module can replace an Arduino, as it has similar properties. Just like the Arduino Nano it can be mounted on a breadboard. This allows building very compact prototype circuits:

To get started, Sparkfun’s “ESP32 Thing Hookup Guide” is a good tutorial. I am not going to repeat that. If you want a quick start, jump right to the section “Installing the ESP32 Arduino Core”. Mount the module on a breadboard, connect a LED to one of it’s ports and continue with “Arduino Example: Blink”. If using Blynk you can start with the example sketch “ESP8266_Shield” via File > Examples > Blynk > Boards_WiFi or load my complete example: esp32_blynk.ino

Specifics for the LOLIN32 Lite

If you have a LOLIN32 Lite, right after installation of the ESP32 Arduino Core, set the Board to “WEMOS LOLIN32” and Upload Speed to 115200:

For the Serial Monitor set the speed to 115200 also.

Hook up a Humidity & Temperature sensor

For this example, I added a DHT sensor connected to pin 0 of the ESP32 (you can use the pin numbers as printed on the module). It also needs a pull up resistor (4K7 or 10K) between VCC and the DATA pin, like this example.
For the DHT sensor, use the ESP specific library, via Sketch > Include Library > Manage Libraries, search for “DHT”, pick “DHT sensor library for ESPx”.

I used the same Blynk App as used for the ESP8266 Blynk introduction. this will show the Humidity & Temperature values in the LCD Widget of the Blynk App: