ESP32 Static/Fixed IP Address using ESP-IDF

In this guide ESP-IDF guide, we will show you how to set a static IP address for your ESP32 development board. We will use an example sketch provided by ESP-IDF and explain APIs used to assign static IPs. Fixing an IP address resolves the issue of IP address is changed or a new IP address … Read more

ESP32 SNTP Module using ESP-IDF – Synchronize Time with NTP

In this ESP32 tutorial, we will learn to use LwIP SNTP module and time functions to get time from internet servers with ESP-IDF . SNTP also known as “Simple Network Time Protocol” is a protocol used to get the current time and date. LwIP SNTP library available in esp-idf is helpful to obtain the current … Read more

ESP32 Pulse Counter PCNT with ESP-IDF and Rotary Encoder Example

In this tutorial, we will learn to use pulse counter or PCNT module of ESP32 using ESP-IDF and introduce you to rotary encoder usage. We will briefly introduce rotary encoders and their working mechanism. Then include an introductory example provided in ESP-IDF under peripherals for PCNT (Pulse Counter). This will help you to understand how … Read more

ESP32 UART Communication using ESP-IDF

In this ESP32 ESP-IDF tutorial, we will look at UART communication ports of ESP32. Firstly, we will discuss some important UART driver library provided in ESP-IDF and then demonstrate example projects to transmit and receive data over UART. Through the example project we will learn how configure the UART settings and install UART driver to … Read more

ESP32 Set an Access Point (AP) using ESP-IDF

In this user guide, we will learn to set up our ESP32 board in soft-AP or access point mode using ESP-IDF. This guide includes the explanations of the necessary APIs required for W-Fi connection, details about the Wi-Fi driver, and an example sketch for ESP-IDF demonstrating the ESP32 board acting as an access point and … Read more

ESP32 ESP-IDF Connect with WiFi – Station Mode Example

In this user guide, we will learn to set up ESP32 in Station (STA) mode using ESP-IDF. In other words, we will see how to make WiFi connection and connect with an access point using esp-idf Wi-Fi drivers. This guide includes the explanations of the necessary APIs required for W-Fi connection, details about the Wi-Fi … Read more

ESP32 ESP-IDF FreeRTOS Timer and Delay using ESP-IDF

In this guide, we will show you how to use FreeRTOS timers and delays using ESP32 and ESP-IDF. This guide also includes a comparison of vTaskDelay() function provided by FreeRTOS with different delay values in milliseconds. The High Resolution Timer (ESP Timer) provided by FreeRTOS uses a 64 bit hardware timer. The FreeRTOS also provides … Read more

ESP32 ESP-IDF FreeRTOS Semaphore – Tasks Synchronization Examples

In this ESP32 ESP-IDF FreeRTOS Semaphore tutorial, we will learn how to use FreeRTOS Semaphore with ESP32 ESP-IDF. Semaphores are used to send a notification to other tasks or to synchronize different tasks whereas queues are used for intertask communication. Firstly, we will look at a sample code to learn how to use binary semaphores … Read more

ESP32 ESP-IDF FreeRTOS Queue Tutorial

In this ESP32 ESP-IDF FreeRTOS Queue tutorial, we will learn to create FreeRTOS Queues with ESP32 ESP-IDF. Previously we learned how to create FreeRTOS tasks with ESP32 ESP-IDF. However, creating separate tasks does not sufficient for a complete RTOS-based application because these independent tasks are smaller programs having their own stack, memory, and execution jobs. … Read more

ESP32 ESP-IDF FreeRTOS Tutorial: Learn to Create Tasks

In this ESP32 ESP-IDF FreeRTOS tutorial, we will learn to use FreeRTOS with ESP32 using ESP-IDF framework. The good thing about ESP-IDF is that it already has a port of FreeRTOS for ESP32. Therefore, we do not need to install additional libraries and drivers. ESP-IDF FreeRTOS is based on Vanilla FreeRTOS v10.4.3 In this tutorial, … Read more