Getting Started with ESP32 Development

Previously, I shared about the ESP8266, and someone commented to try the ESP32.

So I bought a few of them back, and of course, I thought about playing with everyone.

Let me introduce this development board.

Development board GitHub project link:

https://github.com/Xinyuan-LilyGO/T-QT

Download the repository code to local:

Getting Started with ESP32 Development

We can develop ESP32S3 using both ESP-IDF and Arduino SDK.

Getting Started with ESP32 Development

ESP-IDF runs on FreeRTOS, which is more suitable for embedded development, while Arduino feels more like a toy.

Both ESP-IDF and Arduino are tools for developing ESP32, each with its own advantages and disadvantages.

ESP-IDF:
Advantages:

– It is the official development framework for ESP32, providing more low-level control and flexibility, suitable for highly customized projects.

– Offers more comprehensive documentation and examples.

– Supports FreeRTOS, enabling multitasking and multithreading.

Disadvantages:

– Using ESP-IDF requires more programming knowledge and experience.

– The development process may require more configuration and debugging.

Arduino:
Advantages:

– Arduino is easier for beginners, with a more user-friendly interface and simpler API.

– There are a large number of libraries and examples available for Arduino, which can greatly shorten development time.

– The Arduino development environment is very mature and can run on multiple operating systems.

Disadvantages:

– Arduino’s flexibility is limited, and it may have constraints for projects that require more advanced control.

– Due to the use of higher-level APIs and libraries, Arduino may consume more resources, such as memory and processor time.

Therefore, the choice between using ESP-IDF or Arduino depends on personal needs and project requirements.

How to install the ESP-IDF environment?

Just follow the official instructions.

https://docs.espressif.com/projects/esp-idf/zh_CN/stable/esp32s3/get-started/linux-macos-setup.html

mkdir -p ~/esp

cd ~/esp

git clone -b v5.0.1 --recursive https://github.com/espressif/esp-idf.git

cd ~/esp/esp-idf

./install.sh esp32s3

I recorded some common commands encountered during the process.

. $HOME/esp/esp-idf/export.sh  // Set environment variables

idf.py set-target esp32s3 // Set target chip

idf.py menuconfig // Configuration


idf.py build // Build
idf.py -p PORT [-b BAUD] flash // Multi-partition full flash
idf.py app // Compile app

idf.py app-flash // Flash app


cp -r $IDF_PATH/examples/get-started/hello_world . // Copy reference example to current directory
git submodule update --init --recursiv // Update module repository

Installing Arduino:

Just download and install from the official website.

https://www.arduino.cc/en/software/

Arduino manages libraries this way:

Getting Started with ESP32 Development

However, we need to replace the contents downloaded from GitHub into the Arduino library directory.

Getting Started with ESP32 Development

Now, we open a project, then compile and flash.

Getting Started with ESP32 Development

Then we can see the display.

Getting Started with ESP32 Development

Brothers who like this little thing can place an order in the shopping cart.

Today is the weekend, I have time to answer everyone’s questions and also time to ship.

Long press to recognize

Getting Started with ESP32 Development

Getting Started with ESP32 Development

Getting Started with ESP32 Development

Leave a Comment