user-guide-devkitm-1-v1.rst 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  1. =====================
  2. ESP32-S2-DevKitM-1(U)
  3. =====================
  4. :link_to_translation:`zh_CN:[中文]`
  5. This user guide provides information on Espressif's small-sized development board ESP32-S2-DevKitM-1(U).
  6. ESP32-S2-DevKitM-1(U) is a general-purpose development board based on `ESP32-S2FH4 <https://www.espressif.com/sites/default/files/documentation/esp32-s2_datasheet_en.pdf>`__ chip, which falls into ESP32-S2 chip series. With a rich peripheral set and optimized pinout, this board allows rapid prototyping.
  7. ESP32-S2-DevKitM-1 is embedded with `ESP32-S2-MINI-1 <https://www.espressif.com/sites/default/files/documentation/esp32-s2-mini-1_esp32-s2-mini-1u_datasheet_en.pdf>`__ module (on-board PCB antenna), while ESP32-S2-DevKitM-1U with `ESP32-S2-MINI-1U <https://www.espressif.com/sites/default/files/documentation/esp32-s2-mini-1_esp32-s2-mini-1u_datasheet_en.pdf>`__ module (external antenna connector).
  8. +----------------------+-----------------------+
  9. | |ESP32-S2-DevKitM-1| | |ESP32-S2-DevKitM-1U| |
  10. +----------------------+-----------------------+
  11. | ESP32-S2-DevKitM-1 | ESP32-S2-DevKitM-1U |
  12. +----------------------+-----------------------+
  13. .. |ESP32-S2-DevKitM-1| image:: ../../../_static/esp32-s2-devkitm-1-v1-isometric.png
  14. .. |ESP32-S2-DevKitM-1U| image:: ../../../_static/esp32-s2-devkitm-1u-v1-isometric.png
  15. The document consists of the following major sections:
  16. - `Getting started`_: Provides an overview of the ESP32-S2-DevKitM-1(U) and hardware/software setup instructions to get started.
  17. - `Hardware reference`_: Provides more detailed information about the ESP32-S2-DevKitM-1(U)'s hardware.
  18. - `Hardware Revision Details`_: Revision history, known issues, and links to user guides for previous versions (if any) of ESP32-S2-DevKitM-1(U).
  19. - `Related Documents`_: Gives links to related documentation.
  20. Getting Started
  21. ===============
  22. This section describes how to get started with ESP32-S2-DevKitM-1(U). It begins with a few introductory sections about the ESP32-S2-DevKitM-1(U), then Section `Start Application Development`_ provides instructions on how to get the ESP32-S2-DevKitM-1(U) ready and flash firmware into it.
  23. Overview
  24. --------
  25. ESP32-S2-DevKitM-1(U) is entry-level development board equipped with either ESP32-S2-MINI-1 or ESP32-S2-MINI-1U module. Most of the I/O pins on the module are broken out to the pin headers on both sides for easy interfacing. Developers can either connect peripherals with jumper wires or mount ESP32-S2-DevKitM-1(U) on a breadboard.
  26. Contents and Packaging
  27. ----------------------
  28. Retail orders
  29. ^^^^^^^^^^^^^
  30. If you order a few samples, each ESP32-S2-DevKitM-1(U) comes in an individual package in either antistatic bag or any packaging depending on your retailer.
  31. For retail orders, please go to https://www.espressif.com/en/company/contact/buy-a-sample.
  32. Wholesale Orders
  33. ^^^^^^^^^^^^^^^^
  34. If you order in bulk, the boards come in large cardboard boxes.
  35. For wholesale orders, please go to https://www.espressif.com/en/contact-us/sales-questions.
  36. Description of Components
  37. -------------------------
  38. .. _user-guide-devkitm-1-v1-board-front:
  39. .. figure:: ../../../_static/esp32-s2-devkitm-1-v1-annotated-photo.png
  40. :align: center
  41. :alt: ESP32-S2-DevKitM-1 - front
  42. :figclass: align-center
  43. ESP32-S2-DevKitM-1 - front
  44. .. figure:: ../../../_static/esp32-s2-devkitm-1u-v1-annotated-photo.png
  45. :align: center
  46. :alt: ESP32-S2-DevKitM-1U - front
  47. :figclass: align-center
  48. ESP32-S2-DevKitM-1U - front
  49. The key components of the board are described in a clockwise direction.
  50. .. list-table::
  51. :widths: 30 70
  52. :header-rows: 1
  53. * - Key Component
  54. - Description
  55. * - ESP32-S2-MINI-1 or ESP32-S2-MINI-1U
  56. - ESP32-S2-MINI-1 and ESP32-S2-MINI-1U are two powerful, generic Wi-Fi MCU modules that integrate ESP32-S2FH4 chip. ESP32-S2-MINI-1 comes with a PCB antenna, and ESP32-S2-MINI-1U with an external antenna connector. They both feature a 4 MB external SPI flash.
  57. * - Pin Headers
  58. - All available GPIO pins (except for the SPI bus for flash) are broken out to the pin headers on the board. Users can program ESP32-S2FH4 chip to enable multiple functions such as SPI, I2S, UART, I2C, touch sensors, PWM etc. For details, please see :ref:`user-guide-devkitm-1-v1-header-blocks`.
  59. * - 3.3 V Power On LED
  60. - Turns on when the USB power is connected to the board.
  61. * - USB to UART Bridge
  62. - Single USB-UART bridge chip provides transfer rates up to 3 Mbps.
  63. * - Reset Button
  64. - Reset button.
  65. * - Micro-USB Port
  66. - USB interface. Power supply for the board as well as the communication interface between a computer and the ESP32-S2FH4 chip.
  67. * - Boot Button
  68. - Download button. Holding down **Boot** and then pressing **Reset** initiates Firmware Download mode for downloading firmware through the serial port.
  69. * - RGB LED
  70. - Addressable RGB LED, driven by GPIO18.
  71. * - 5 V to 3.3 V LDO
  72. - Power regulator that converts a 5 V supply into a 3.3 V output.
  73. * - External Antenna Connector
  74. - On **ESP32-S2-MINI-1U** module only. For connector dimensions, please refer to Section External Antenna Connector Dimensions in `ESP32-S2-MINI-1 & ESP32-S2-MINI-1U Datasheet <https://www.espressif.com/sites/default/files/documentation/esp32-s2-mini-1_esp32-s2-mini-1u_datasheet_en.pdf>`_.
  75. Start Application Development
  76. -----------------------------
  77. Before powering up your ESP32-S2-DevKitM-1(U), please make sure that it is in good condition with no obvious signs of damage.
  78. Required Hardware
  79. ^^^^^^^^^^^^^^^^^
  80. - ESP32-S2-DevKitM-1(U)
  81. + For ESP32-S2-DevKitM-1U, an antenna is also required.
  82. - USB 2.0 cable (Standard-A to Micro-B)
  83. - Computer running Windows, Linux, or macOS
  84. .. note::
  85. Be sure to use an appropriate USB cable. Some cables are for charging only and do not provide the needed data lines nor work for programming the boards.
  86. Software Setup
  87. ^^^^^^^^^^^^^^
  88. Please proceed to :doc:`../../get-started/index`, where Section :ref:`get-started-step-by-step` will quickly help you set up the development environment and then flash an application example into your ESP32-S2-DevKitM-1(U).
  89. .. note::
  90. ESP32-S2 series of chips only is only supported in ESP-IDF master or version v4.2 and higher.
  91. Hardware Reference
  92. ==================
  93. Block Diagram
  94. -------------
  95. A block diagram below shows the components of ESP32-S2-DevKitM-1 and their interconnections.
  96. .. figure:: ../../../_static/esp32-s2-devkitm-1-v1-block-diagram.png
  97. :align: center
  98. :scale: 70%
  99. :alt: ESP32-S2-DevKitM-1(U) (click to enlarge)
  100. :figclass: align-center
  101. ESP32-S2-DevKitM-1(U) (click to enlarge)
  102. Power Supply Options
  103. ^^^^^^^^^^^^^^^^^^^^
  104. There are three mutually exclusive ways to provide power to the board:
  105. - Micro-USB Port, default power supply
  106. - 5V and GND pin headers
  107. - 3V3 and GND pin headers
  108. It is recommended to use the first option: Micro-USB Port.
  109. .. _user-guide-devkitm-1-v1-header-blocks:
  110. Header Block
  111. ------------
  112. The two tables below provide the **Name** and **Function** of the pin headers on both sides of the board (J1 and J3). The pin header names are shown in :ref:`user-guide-devkitm-1-v1-board-front`. The numbering is the same as in the `ESP32-S2-DevKitM-1(U) Schematics <https://dl.espressif.com/dl/schematics/ESP32-S2-DevKitM-1_V1_Schematics.pdf>`_ (PDF).
  113. J1
  114. ^^^
  115. === ==== ========== =============================================================
  116. No. Name Type [#]_ Function
  117. === ==== ========== =============================================================
  118. 1 3V3 P 3.3 V power supply
  119. 2 0 I/O/T RTC_GPIO0, GPIO0
  120. 3 1 I/O/T RTC_GPIO1, GPIO1, TOUCH1, ADC1_CH0
  121. 4 2 I/O/T RTC_GPIO2, GPIO2, TOUCH2, ADC1_CH1
  122. 5 3 I/O/T RTC_GPIO3, GPIO3, TOUCH3, ADC1_CH2
  123. 6 4 I/O/T RTC_GPIO4, GPIO4, TOUCH4, ADC1_CH3
  124. 7 5 I/O/T RTC_GPIO5, GPIO5, TOUCH5, ADC1_CH4
  125. 8 6 I/O/T RTC_GPIO6, GPIO6, TOUCH6, ADC1_CH5
  126. 9 7 I/O/T RTC_GPIO7, GPIO7, TOUCH7, ADC1_CH6
  127. 10 8 I/O/T RTC_GPIO8, GPIO8, TOUCH8, ADC1_CH7
  128. 11 9 I/O/T RTC_GPIO9, GPIO9, TOUCH9, ADC1_CH8, FSPIHD
  129. 12 10 I/O/T RTC_GPIO10, GPIO10, TOUCH10, ADC1_CH9, FSPICS0, FSPIIO4
  130. 13 11 I/O/T RTC_GPIO11, GPIO11, TOUCH11, ADC2_CH0, FSPID, FSPIIO5
  131. 14 12 I/O/T RTC_GPIO12, GPIO12, TOUCH12, ADC2_CH1, FSPICLK, FSPIIO6
  132. 15 13 I/O/T RTC_GPIO13, GPIO13, TOUCH13, ADC2_CH2, FSPIQ, FSPIIO7
  133. 16 14 I/O/T RTC_GPIO14, GPIO14, TOUCH14, ADC2_CH3, FSPIWP, FSPIDQS
  134. 17 15 I/O/T RTC_GPIO15, GPIO15, U0RTS, ADC2_CH4, XTAL_32K_P
  135. 18 16 I/O/T RTC_GPIO16, GPIO16, U0CTS, ADC2_CH5, XTAL_32K_N
  136. 19 17 I/O/T RTC_GPIO17, GPIO17, U1TXD, ADC2_CH6, DAC_1
  137. 20 5V P 5 V power supply
  138. 21 G G Ground
  139. === ==== ========== =============================================================
  140. J3
  141. ^^^
  142. === ==== ===== ========================================================
  143. No. Name Type Function
  144. === ==== ===== ========================================================
  145. 1 G G Ground
  146. 2 RST I CHIP_PU
  147. 3 46 I GPIO46
  148. 4 45 I/O/T GPIO45
  149. 5 RX I/O/T U0RXD, GPIO44, CLK_OUT2
  150. 6 TX I/O/T U0TXD, GPIO43, CLK_OUT1
  151. 7 42 I/O/T MTMS, GPIO42
  152. 8 41 I/O/T MTDI, GPIO41, CLK_OUT1
  153. 9 40 I/O/T MTDO, GPIO40, CLK_OUT2
  154. 10 39 I/O/T MTCK, GPIO39, CLK_OUT3
  155. 11 38 I/O/T GPIO38, FSPIWP
  156. 12 37 I/O/T SPIDQS, GPIO37, FSPIQ
  157. 13 36 I/O/T SPIIO7, GPIO36, FSPICLK
  158. 14 35 I/O/T SPIIO6, GPIO35, FSPID
  159. 15 34 I/O/T SPIIO5, GPIO34, FSPICS0
  160. 16 33 I/O/T SPIIO4, GPIO33, FSPIHD
  161. 17 26 I/O/T SPICS1, GPIO26
  162. 18 21 I/O/T RTC_GPIO21, GPIO21
  163. 19 20 I/O/T RTC_GPIO20, GPIO20, U1CTS, ADC2_CH9, CLK_OUT1, USB_D+
  164. 20 19 I/O/T RTC_GPIO19, GPIO19, U1RTS, ADC2_CH8, CLK_OUT2, USB_D-
  165. 21 18 I/O/T RTC_GPIO18, GPIO18, U1RXD, ADC2_CH7, DAC_2, CLK_OUT3, RGB LED
  166. === ==== ===== ========================================================
  167. .. [#] P: Power supply; I: Input; O: Output; T: High impedance.
  168. Pin Layout
  169. ^^^^^^^^^^^
  170. .. figure:: ../../../_static/esp32-s2-devkitm-1-v1-pin-layout.png
  171. :align: center
  172. :scale: 15%
  173. :alt: ESP32-S2-DevKitM-1(U) (click to enlarge)
  174. :figclass: align-center
  175. ESP32-S2-DevKitM-1(U) Pin Layout (click to enlarge)
  176. Hardware Revision Details
  177. =========================
  178. This is the first revision of this board released.
  179. Related Documents
  180. =================
  181. * `ESP32-S2-DevKitM-1(U) Schematics <https://dl.espressif.com/dl/schematics/ESP32-S2-DevKitM-1_V1_Schematics.pdf>`_ (PDF)
  182. * `ESP32-S2-DevKitM-1(U) PCB Layout <https://dl.espressif.com/dl/schematics/ESP32-S2-DevKitM-1_V1_PCB_Layout.pdf>`_ (PDF)
  183. * `ESP32-S2-DevKitM-1(U) Dimensions <https://dl.espressif.com/dl/schematics/ESP32-S2-DevKitM-1_V1_Dimensions.pdf>`_ (PDF)
  184. * `ESP32-S2 Series Datasheet <https://www.espressif.com/sites/default/files/documentation/esp32-s2_datasheet_en.pdf>`_ (PDF)
  185. * `ESP32-S2-MINI-1 & ESP32-S2-MINI-1U Datasheet <https://www.espressif.com/sites/default/files/documentation/esp32-s2-mini-1_esp32-s2-mini-1u_datasheet_en.pdf>`_ (PDF)
  186. * `ESP Product Selector <https://products.espressif.com/#/product-selector?names=>`_
  187. For other design documentation for the board, please contact us at `sales@espressif.com <sales@espressif.com>`_.