差别
这里会显示出您选择的修订版和当前版本之间的差别。
| 后一修订版 | 前一修订版 | ||
| developmentboard:esp32-c3-1.28-lcd [2024/04/01 03:41] – 创建 admin | developmentboard:esp32-c3-1.28-lcd [2024/04/11 11:43] (当前版本) – admin12 | ||
|---|---|---|---|
| 行 1: | 行 1: | ||
| + | ====== ESP32-C3-1U-1.28 inch screen ====== | ||
| + | |||
| + | **Welcome to the QSZNTEC Workshop! ** | ||
| + | ===== Table of contents ===== | ||
| + | |||
| + | === 一、Introduction === | ||
| + | |||
| + | === === | ||
| + | |||
| + | === 二、Installing using Arduino IDE === | ||
| + | |||
| + | === === | ||
| + | |||
| + | === 三、sample program usage === | ||
| + | |||
| + | === === | ||
| + | |||
| + | ===== Getting Started ===== | ||
| + | |||
| + | ===== Introduction ===== | ||
| + | |||
| + | The objective of this post is to explain how to upload an Arduino program to the ESP32-C3 module, from QSZNTEC . | ||
| + | |||
| + | The ESP32-C3-MINI-1U WiFi and Bluetooth chip is the latest generation of Espressif products. It has a | ||
| + | |||
| + | Single Core 32-bit MCU, which Supporting IEEE 802.11b/g/n (2.4 GHz WiFi) and Bluetooth® 5 (LE). | ||
| + | |||
| + | ESP32-C3-MINI-1U series of SoCs is an ultra-low-power and highly-integrated MCU-based solution | ||
| + | |||
| + | that supports 2.4 GHz Wi-Fi and Bluetooth ® Low Energy (Bluetooth LE). The block diagram of | ||
| + | |||
| + | ESP32-C3-MINI-1U is shown below.32bit RISCV singlecore processor with afour-stage pipeline that | ||
| + | |||
| + | operates at up to 160MHz. Storage capacities ensured by 400 KB ofSRAM (16 KB for cache) and 384 KB | ||
| + | |||
| + | of ROM onthe chip, and SPI, Dual SPI, Quad SPI, and QPIinterfaces that allow connection to external | ||
| + | |||
| + | flash. | ||
| + | |||
| + | ===== Installing using Arduino IDE ===== | ||
| + | |||
| + | Programming the ESP32-C3-MINI-1U | ||
| + | |||
| + | An easy way to get started is by using the familiar Arduino IDE. While this is not necessarily the best | ||
| + | |||
| + | environment for working with the ESP32-C3-MINI-1U, | ||
| + | |||
| + | application, | ||
| + | |||
| + | we first need to install version 1.8.19 of the Arduino IDE (or greater), | ||
| + | |||
| + | installation was in “C/ | ||
| + | |||
| + | [[https:// | ||
| + | |||
| + | 2,This is the way to install Arduino-ESP32 directly from the Arduino IDE. Add Boards Manager Entry | ||
| + | |||
| + | Here is what you need to do to install the ESP32 boards into the Arduino IDE: | ||
| + | |||
| + | === (1) Open the Arduino IDE. === | ||
| + | |||
| + | {{: | ||
| + | |||
| + | === (2)Click on the File menu on the top menu bar. === | ||
| + | |||
| + | === (3)Click on the Preferences menu item. This will open a Preferences dialog box. === | ||
| + | |||
| + | {{: | ||
| + | |||
| + | === (4)You should be on the Settings tab in the Preferences dialog box by default. === | ||
| + | |||
| + | === (5)Look for the textbox labeled “Additional Boards Manager URLs”. === | ||
| + | |||
| + | === (6)If there is already text in this box add a coma at the end of it, then follow the next step. === | ||
| + | |||
| + | === (7)Paste the following link into the text box : === | ||
| + | |||
| + | Stable release link: [[https:// | ||
| + | |||
| + | Development release link: [[https:// | ||
| + | |||
| + | === (8)Click the OK button to save the setting. The textbox with the JSON link in it is illustrated here: === | ||
| + | |||
| + | {{: | ||
| + | |||
| + | === (9) In the Arduino IDE click on the Tools menu on the top menu bar. === | ||
| + | |||
| + | === (10) Scroll down to the Board: entry === | ||
| + | |||
| + | === (11) A submenu will open when you highlight the Board: entry. === | ||
| + | |||
| + | === (12) At the top of the submenu is Boards Manager. Click on it to open the Boards Manager dialog box. === | ||
| + | |||
| + | === (13)I n the search box in the Boards Manager enter “esp32”. === | ||
| + | |||
| + | {{: | ||
| + | |||
| + | === (14) You should see an entry for “esp32 by Espressif Systems”. Highlight this entry and click on the === | ||
| + | |||
| + | === Install button. This will install the ESP32 boards into your Arduino IDE === | ||
| + | |||
| + | {{: | ||
| + | |||
| + | Once the installation completes, we need to select the correct board options for the "ESP32 Arduino" | ||
| + | |||
| + | {{: | ||
| + | |||
| + | {{: | ||
| + | |||
| + | Set and In the programmer entry of the same tab, we choose “esptool”. | ||
| + | |||
| + | {{: | ||
| + | |||
| + | It’s important to note that after the code is uploaded, the device will start to run it. So, if we | ||
| + | |||
| + | want to upload a new program, wee need to reset the power of the device, in order to | ||
| + | |||
| + | guarantee that it enters flashing mode again. | ||
| + | |||
| + | First program Since this platform is based on Arduino, we can use many of the usual functions. As an example for the | ||
| + | |||
| + | first program, the code bellow starts the Serial port and prints “hello from ESP32” every second. | ||
| + | |||
| + | If everything is working fine, we will see the output in the serial console shown. | ||
| + | |||
| + | ** <font 16px/ | ||
| + | |||
| + | ** <font 16px/ | ||
| + | |||
| + | ** <font 16px/ | ||
| + | |||
| + | ** <font 16px/ | ||
| + | |||
| + | ** <font 16px/ | ||
| + | |||
| + | ** <font 16px/ | ||
| + | |||
| + | ** <font 16px/ | ||
| + | |||
| + | {{: | ||
| + | |||
| + | Again thank you for so much concern.. Hopefully, it's the beginning of a wonderful relationship! | ||
| + | |||
| + | ===== Sample program usage ===== | ||
| + | |||
| + | At present, only a preliminary explanation and introductory use are given to the samples displayed on | ||
| + | |||
| + | the screen, and the corresponding examples in the data center are found, as shown in the figure: | ||
| + | |||
| + | {{: | ||
| + | |||
| + | The examples in the red circle are all based on the LovyanGFX library as the basic application. This | ||
| + | |||
| + | library supports various commonly used driver chips, such as ST7735, ST7789, ILI9341, etc., and has | ||
| + | |||
| + | good compatibility. LovyanGFX library file installation: | ||
| + | |||
| + | Open the library manager in Arduino, search for LovyanGFX, and click instal . | ||
| + | |||
| + | {{: | ||
| + | |||
| + | {{: | ||
| + | |||
| + | Although the Arduino_GFX library has many advantages, it may also have a troublesome place for | ||
| + | |||
| + | ordinary users, that is, after the installation | ||
| + | |||
| + | ==== About the use of Factory_samples ==== | ||
| + | |||
| + | Find the data center 1_1_Factory_samples | ||
| + | |||
| + | As shown: | ||
| + | |||
| + | {{: | ||
| + | |||
| + | Download library files . | ||
| + | |||
| + | LovyanGFX library | ||
| + | |||
| + | {{: | ||
| + | |||
| + | After compiling, you can run 1_1_Factory_samples normally. | ||
| + | |||
| DOC& | DOC& | ||