Introduction: ESP-IDF for Modules ESP32 Complete Installation

About: Share - Learn - Makers. Projects, Articles, #automation, #PLC, #Arduino, #IoT and More PDAControl

A few months ago I purchased an ESP32 module, I investigated what methods exist to program it, since I consider it to be a very powerful hardware,

This time we will install and configure Espressif IoT Development Framework platform or

(ESP-IDF) from scratch, this is the official espressif development platform for the ESP32 modules.

If you want to get the most out of the ESP32 I consider a good possibility, although it is considered a bit more complex and very complete.

I have created this tutorial since the existing ones are not very explanatory, and in some cases they differ from the official espressif documentation for ESP-IDF.

Official Website:ESP-IDF espressif

Official Github: ESP-IDF

Well if you want to start in ESP32, in the following pages are very low price.

- ESP32 (Aliexpress )

- ESP32 (Bangood)

- ESP32 (ICStation)

You can visit PDAControl English

Documentation and full explanation

http://pdacontrolen.com/esp-idf-modules-esp32-comp...

Next Tutorials ESP-IDF, Arduino IDE, Mongoose OS

http://pdacontrolen.com/category/esp32/

Pueden Visitar PDAControl Español

Documentacion y explicacion Completa

http://pdacontroles.com/esp-idf-para-modulos-esp32...

Proximos Tutoriales ESP32 ESP-IDF, Arduino IDE, Mongoose OS

http://pdacontroles.com/category/esp32/

Step 1: ESP32 Module

If you do not know the ESP32 Modules, I have created this small documentation and video tutorial.

ESP32 eBox&Widora first review

http://pdacontrolen.com/first-tests-esp32-eboxwido...

Step 2: Installation ESP-IDF - ​Requirements

Requirements

  • PC with Linux Operating System (Ubuntu / Debian) or Virtualbox, in my case Lubuntu.
  • Toolchain to build the application for ESP32.
  • ESP-IDF that essentially contains API for ESP32.and scripts to operate the Toolchain.
  • A text editor, to edit or create programs.

PC with Linux operating system (Ubuntu / Debian) or Virtualbox

Since the installation on a Linux operating system, Lubuntu in my case, is a derivative of (Ubuntu), although there is a version of ESP-IDF for Windows, you recommend that you install a virtual machine with Linux.

Note: I think I like Linux in this case (Ubuntu / Debian) I personally prefer lubuntu, but it's the same.

Step 3: Installation Tutorial Step by Step + Example

Since the installation is very thorough, in this video you will see the installation step by step

Step 4: Easy Compile Download and Test "hello World"

Easy compile and download

punctually comparing ESP-IDF with the SDK for ESP8266 this version completely facilitates the compilation download and monitoring of the code using esptool.py

some commands available

  1. make menuconfig
  2. make all
  3. make flash
  4. make monitor

esp-idf allows integrations with some IDE's, such as Eclipse and Platformio. I personally prefer command terminal and text editor,

Step 5: ​Conclusions

Conclusions

If you decide to use ESP-IDF, I will mention some of its advantages. It is done in C and allows FreeRTOS, being designed by espressif directly there are more examples and documentation, less chance of finding errors or faults. of integration this allows us to think that we will be able to use a large part of the ESP32 characteristics.

If there is an Arduino IDE for ESP32 but I think it does not provide the security and complete control of the code, of course ESP-IDF requires more knowledge of C, and you would leave the Arduino conford zone and expand your knowledge.

and this guide is for that to open possibilities with ESP-IDF, Well that's my humble opinion. the only possible future disadvantage, dependence on espressif but with the existing thing you can do everything! to think about ESP32 at a professional / Industrial level

Although we will also do some tests later:

  • ESP32- Arduino IDE
  • ESP32 Mongoose OS.

You can visit PDAControl English

Documentation and full explanation

http://pdacontrolen.com/esp-idf-modules-esp32-com...

Next Tutorials ESP-IDF, Arduino IDE, Mongoose OS

http://pdacontrolen.com/category/esp32/

Pueden Visitar PDAControl Español

Documentacion y explicacion Completa

http://pdacontroles.com/esp-idf-para-modulos-esp3...

Proximos Tutoriales ESP32 ESP-IDF, Arduino IDE, Mongoose OS http://pdacontroles.com/category/esp32/

Wireless Contest

Participated in the
Wireless Contest