Random Nerd Tutorials
Shares

Category Archives for ESP32

MicroPython – Getting Started with MQTT on ESP32/ESP8266

Shares

In this tutorial, we’ll show you how to use MQTT to exchange data between two ESP32/ESP8266 boards using MicroPython firmware. As an example, we’ll exchange simple text messages between two ESP boards. The idea is to use the concepts learned here to exchange sensor readings, or commands. Learn ESP32 with Arduino IDE This our complete […]

Continue Reading

ESP32 Over-the-air (OTA) Programming – Web Updater Arduino IDE

Shares

Quick guide that shows how to do over-the-air (OTA) programming with the ESP32 using the OTA Web Updater in Arduino IDE. The OTA Web Updater allows you to update/upload new code to your ESP32 using a browser, without the need to make a serial connection between the ESP32 and your computer. Learn ESP32 with Arduino IDE […]

Continue Reading

ESP32 Flash Memory – Store Permanent Data (Write and Read)

Shares
Save permanent data on the ESP32 flash memory

In this article we’ll show you how to store and read values from the ESP32 flash memory using Arduino IDE. The data saved in the flash memory remains there even when the ESP32 resets or when power is removed. As an example we’ll show you how to save the last GPIO state. Learn ESP32 with […]

Continue Reading

ESP32/ESP8266 MicroPython Web Server – Control Outputs

Shares

Learn how to build a web server to control the ESP32 or ESP8266 outputs using MicroPython framework. As an example we’ll build a web server with ON and OFF buttons to control the on-board LED of the ESP32/ESP8266. We’ll use sockets and the Python socket API. Learn ESP32 with Arduino IDE This our complete guide to […]

Continue Reading

ESP32 PWM with Arduino IDE

Shares

In this tutorial we’ll show you how to generate PWM signals with the ESP32 using Arduino IDE. As an example we’ll build a simple circuit that dims an LED using the LED PWM controller of the ESP32. We’ll also show you how you can get the same PWM signal on different GPIOs at the same […]

Continue Reading

MicroPython with ESP32 and ESP8266: Interacting with GPIOs

Shares

In this article we’re going to take a look on how to interact with the ESP32 and ESP8266 GPIOs using MicroPython. We’ll show you how to read digital and analog inputs, how to control digital outputs and how to generate PWM signals. Learn ESP32 with Arduino IDE This our complete guide to program the ESP32 […]

Continue Reading

ESP32 Web Server using SPIFFS (SPI Flash File System)

Shares

In this tutorial we’ll show you how to build a web server that serves HTML and CSS files stored on the ESP32 filesystem. Instead of having to write the HTML and CSS text into the Arduino sketch, we’ll create separated HTML and CSS files. For demonstration purposes, the web server we’ll build controls an ESP32 […]

Continue Reading

Install ESP32 Filesystem Uploader on Arduino IDE

Shares

The ESP32 contains a Serial Peripheral Interface Flash File System (SPIFFS). SPIFFS is a lightweight filesystem created for microcontrollers with a flash chip, which are connected by SPI bus, like the ESP32 flash memory. In this article we’re going to show how to easily upload files to the ESP32 filesystem using a plugin for the […]

Continue Reading

Install uPyCraft IDE – Linux Ubuntu Instructions

Shares

There are different firmwares that you can use to program the ESP32 and ESP8266 boards. If you want to program the ESP32 or ESP8266 board using the MicroPython firmware, we recommend using uPyCraft IDE. uPyCraft IDE runs in any major operating system. In this tutorial we’ll show you how to install the uPyCraft IDE for […]

Continue Reading

How to use ESP32 Dual Core with Arduino IDE

Shares

The ESP32 comes with 2 Xtensa 32-bit LX6 microprocessors: core 0 and core 1. So, it is dual core. When we run code on Arduino IDE, by default, it runs on core 1. In this post we’ll show you how to run code on the ESP32 second core by creating tasks. You can run pieces of code simultaneously […]

Continue Reading

ESP32 Static/Fixed IP Address

Shares
ESP32-static-IP-address

If you’re running a web server or Wi-Fi client with your ESP32 and every time you restart your board the ESP32 has a new IP address, you can follow this tutorial to assign a static/fixed IP address to your ESP32 board. Learn ESP32 with Arduino IDE This our complete guide to program the ESP32 with […]

Continue Reading

ESP32 Pinout Reference: Which GPIO pins should you use?

Shares

The ESP32 chip comes with 48 pins with multiple functions. Not all pins are exposed in all ESP32 development boards, and there are some pins that cannot be used. There are many questions on how to use the ESP32 GPIOs. What pins should you use? What pins should you avoid using in your projects? This […]

Continue Reading

Getting Started with the ESP32 Development Board

Shares

This article is a getting started guide for the ESP32 development board. If you’re familiar with the ESP8266, the ESP32 is its sucessor. The ESP32 is loaded with lots of new features. The most relevant: it combines WiFi and Bluetooth wireless capabilities and it’s dual core.  Learn ESP32 with Arduino IDE This our complete guide to program the ESP32 […]

Continue Reading

ESP32 Web Server with BME280 – Mini Weather Station

Shares

In this tutorial you’re going to learn how to create a web server with the ESP32 to display readings from the BME280 sensor module. The BME280 sensor measures temperature, humidity, and pressure. So, you can easily build a mini and compact weather station and monitor the measurements using your ESP32 web server. Learn ESP32 with […]

Continue Reading
1 2 3