Random Nerd Tutorials
Shares

Category Archives for ESP32

[SOLVED] Failed to connect to ESP32: Timed out waiting for packet header

Shares

Learn how to fix the: “Failed to connect to ESP32: Timed out waiting for packet header” error when trying to upload new code to your ESP32 board once for all.

Continue Reading

ESP32 Troubleshooting Guide

Shares

The ESP32 has a few common problems, specially when you are trying to upload new sketches or install the ESP32 add-on on the Arduino IDE. This guide is dedicated to the ESP32 when programmed with Arduino IDE. Here, we provide a compilation with some of the most common problems with the ESP32 and how to fix them. Learn 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?

Continue Reading

How to Use I2C LCD with ESP32 on Arduino IDE (ESP8266 compatible)

Shares

This tutorial shows how to use the I2C LCD (Liquid Crystal Display) with the ESP32 using Arduino IDE. We’ll show you how to wire the display, install the library and try sample code to write text on the LCD: static text, and scroll long messages. You can also use this guide with the ESP8266. Learn […]

Continue Reading

Alexa (Echo) with ESP32 and ESP8266 – Voice Controlled Relay

Shares

In this project, you’re going to learn how to control the ESP8266 or the ESP32 with voice commands using Alexa (Amazon Echo Dot). As an example, we’ll control two 12V lamps connected to a relay module. We’ll also add two 433 MHz RF wall panel switches to physically control the lamps.  Learn ESP32 with Arduino […]

Continue Reading

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 is our […]

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 is our complete guide […]

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 is our complete guide to program the […]

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
1 2 3