ESP32MINI1 User Manual Preliminary v0.1 Espressif Systems Copyright © 2021 www.espressif.
About This Manual This user manual shows how to get started with ESP32-MINI-1 module. Document Updates Please always refer to the latest version on https://www.espressif.com/en/support/download/documents. Revision History For revision history of this document, please refer to the last page. Documentation Change Notification Espressif provides email notifications to keep customers updated on changes to technical documentation. Please subscribe at www.espressif.com/en/subscribe.
Contents Contents 1 Overview 4 1.1 Module Overview 4 1.2 Pin Description 4 2 Get Started on ESP32MINI1 7 2.1 What You Need 7 2.2 Hardware Connection 7 2.3 Set up Development Environment 8 2.3.1 Install Prerequisites 8 2.3.2 Get ESP-IDF 8 2.3.3 Set up Tools 9 2.3.4 Set up Environment Variables 9 2.4 Create Your First Project 9 2.4.1 Start a Project 9 2.4.2 Connect Your Device 9 2.4.3 Configure 10 2.4.4 Build the Project 10 2.4.
1 Overview 1 Overview 1.1 Module Overview ESP32-MINI-1 is a highly-integrated, small-sized Wi-Fi+Bluetooth® +Bluetooth® LE MCU module that has a rich set of peripherals. This module is an ideal choice for a wide variety of IoT applications, ranging from home automation, smart building, consumer electronics to industrial control, especially suitable for applications within a compact space, such as bulbs, switches and sockets. This module comes in two versions: • 85 °C version • 105 °C version Table 11.
1 Overview Table 12. Pin Definitions Name No. Type Function GND 1, 2, 27, 38 ~ 55 P Ground 3V3 3 P Power supply I36 4 I GPIO36, ADC1_CH0, RTC_GPIO0 I37 5 I GPIO37, ADC1_CH1, RTC_GPIO1 I38 6 I GPIO38, ADC1_CH2, RTC_GPIO2 I39 7 I GPIO39, ADC1_CH3, RTC_GPIO3 EN 8 I High: enables the chip Low: the chip powers off Note: do not leave the pin floating I34 9 I GPIO34, ADC1_CH6, RTC_GPIO4 I35 IO32 10 I GPIO35, ADC1_CH7, RTC_GPIO5 11 I/O GPIO32, XTAL_32K_P (32.
1 Overview Table 12 – cont’d from previous page Name No. Type IO22 33 I/O GPIO22, VSPIWP, U0RTS, EMAC_TXD1 IO21 34 I/O GPIO21, VSPIHD, EMAC_TX_EN RXD0 35 I/O GPIO3, U0RXD, CLK_OUT2 TXD0 36 I/O GPIO1, U0TXD, CLK_OUT3, EMAC_RXD2 NC 37 - 1 Function No connect Pins GPIO6, GPIO7, GPIO8, GPIO11, GPIO16, and GPIO17 on the ESP32-U4WDH chip are connected to the SPI flash integrated on the module and are not led out.
2 Get Started on ESP32-MINI-1 2 Get Started on ESP32MINI1 2.1 What You Need To develop applications for ESP32-MINI-1 module you need: • 1 x ESP32-MINI-1 module • 1 x Espressif RF testing board • 1 x USB-to-Serial board • 1 x Micro-USB cable • 1 x PC running Linux In this user guide, we take Linux operating system as an example. For more information about the configuration on Windows and macOS, please refer to ESP-IDF Programming Guide. 2.2 Hardware Connection 1.
2 Get Started on ESP32-MINI-1 7. After download, remove the jumper on IO0 and GND. 8. Power up the RF testing board again. ESP32-MINI-1 will switch to working mode. The chip will read programs from flash upon initialization. Note: IO0 is internally logic high. If IO0 is set to pull-up, the Boot mode is selected. If this pin is pull-down or left floating, the Download mode is selected. For more information on ESP32-MINI-1, please refer to ESP32-MINI-1 Datasheet. 2.
2 Get Started on ESP32-MINI-1 ESP-IDF will be downloaded into ~/esp/esp-idf. Consult ESP-IDF Versions for information about which ESP-IDF version to use in a given situation. 2.3.3 Set up Tools Aside from the ESP-IDF, you also need to install the tools used by ESP-IDF, such as the compiler, debugger, Python packages, etc. ESP-IDF provides a script named ’install.sh’ to help set up the tools in one go. cd ~/esp/esp−idf ./ install .sh 2.3.
2 Get Started on ESP32-MINI-1 2.4.3 Configure Navigate to your ‘hello_world’ directory from Step 2.4.1. Start a Project, set ESP32 chip as the target and run the project configuration utility ‘menuconfig’. cd ~/esp/hello_world idf .py set−target esp32 idf .py menuconfig Setting the target with ‘idf.py set-target esp32’ should be done once, after opening a new project. If the project contains some existing builds and configuration, they will be cleared and initialized.
2 Get Started on ESP32-MINI-1 −− Building empty aws_iot component due to configuration −− Component names: ... −− Component paths: ... ... (more lines of build system output) [527/527] Generating hello −world.bin esptool .py v2.3.1 Project build complete. To flash , run this command: ../../../ components/esptool_py/esptool/esptool.py −p (PORT) −b 921600 write_flash −−flash_mode dio −−flash_size detect −−flash_freq 40m 0x10000 build/hello−world.bin build 0x1000 build /bootloader/bootloader.
2 Get Started on ESP32-MINI-1 Configuring flash size ... Auto−detected Flash size : 4MB Flash params set to 0x0220 Compressed 22992 bytes to 13019... Wrote 22992 bytes (13019 compressed) at 0x00001000 in 0.3 seconds ( effective 558.9 kbit/s )... Hash of data verified . Compressed 3072 bytes to 82... Wrote 3072 bytes (82 compressed) at 0x00008000 in 0.0 seconds ( effective 5789.3 kbit/s )... Hash of data verified . Compressed 136672 bytes to 67544... Wrote 136672 bytes (67544 compressed) at 0x00010000 in 1.
2 Get Started on ESP32-MINI-1 That’s all what you need to get started with ESP32-MINI-1 module! Now you are ready to try some other examples in ESP-IDF, or go right to developing your own applications. Espressif Systems 13 ESP32-MINI-1 User Manual (Preliminary v0.
3 Learning Resources 3 Learning Resources 3.1 MustRead Documents The following link provides documents related to ESP32. • ESP32 Datasheet This document provides an introduction to the specifications of the ESP32 hardware, including overview, pin definitions, functional description, peripheral interface, electrical characteristics, etc. • ESP32 ECO V3 User Guide This document describes differences between V3 and previous ESP32 silicon wafer revisions.
3 Learning Resources • ESP-IDF This webpage links users to the official IoT development framework for ESP32. • ESP32 Resources This webpage provides the links to all available ESP32 documents, SDK and tools. Espressif Systems 15 ESP32-MINI-1 User Manual (Preliminary v0.
Revision History Revision History Date Version Release notes 2021-01-14 V0.1 Preliminary release Espressif Systems 16 ESP32-MINI-1 User Manual (Preliminary v0.
Disclaimer and Copyright Notice Information in this document, including URL references, is subject to change without notice. ALL THIRD PARTY’S INFORMATION IN THIS DOCUMENT IS PROVIDED AS IS WITH NO WARRANTIES TO ITS AUTHENTICITY AND ACCURACY. NO WARRANTY IS PROVIDED TO THIS DOCUMENT FOR ITS MERCHANTABILITY, NONINFRINGEMENT, FITNESS FOR ANY PARTICULAR PURPOSE, NOR DOES ANY WARRANTY OTHERWISE ARISING OUT OF ANY PROPOSAL, SPECIFICATION OR SAMPLE.