user-guide-s2-devkitc-1.rst 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. ===================
  2. ESP32-S2-DevKitC-1
  3. ===================
  4. :link_to_translation:`zh_CN:[中文]`
  5. This user guide will help you get started with ESP32-S2-DevKitC-1 and will also provide more in-depth information.
  6. ESP32-S2-DevKitC-1 is an entry-level development board based on ESP32-S2-SOLO (on-board PCB antenna) or ESP32-S2-SOLO-U (external antenna connector), which are two general-purpose modules with a 4 MB SPI flash. This board integrates complete Wi-Fi functions.
  7. Most of the I/O pins 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-DevKitC-1 on a breadboard.
  8. .. figure:: ../../../_static/esp32-s2-devkitc-1-v1-isometric.png
  9. :align: center
  10. :alt: ESP32-S2-DevKitC-1 with the ESP32-S2-SOLO Module
  11. :figclass: align-center
  12. ESP32-S2-DevKitC-1 with the ESP32-S2-SOLO Module
  13. The document consists of the following major sections:
  14. - `Getting Started`_: Overview of ESP32-S2-DevKitC-1 and hardware/software setup instructions to get started.
  15. - `Hardware Reference`_: More detailed information about the ESP32-S2-DevKitC-1's hardware.
  16. - `Hardware Revision Details`_: Revision history, known issues, and links to user guides for previous versions (if any) of ESP32-S2-DevKitC-1.
  17. - `Related Documents`_: Links to related documentation.
  18. Getting Started
  19. ===============
  20. This section provides a brief introduction of ESP32-S2-DevKitC-1, instructions on how to do the initial hardware setup and how to flash firmware onto it.
  21. Description of Components
  22. -------------------------
  23. .. _user-guide-s2-devkitc-1-v1-board-front:
  24. .. figure:: ../../../_static/esp32-s2-devkitc-1-v1-annotated-photo.png
  25. :align: center
  26. :alt: ESP32-S2-DevKitC-1 - front
  27. :figclass: align-center
  28. ESP32-S2-DevKitC-1 - front
  29. The key components of the board are described in a clockwise direction.
  30. .. list-table::
  31. :widths: 30 70
  32. :header-rows: 1
  33. * - Key Component
  34. - Description
  35. * - ESP32-S2-SOLO or ESP32-S2-SOLO-U
  36. - ESP32-S2-SOLO and ESP32-S2-SOLO-U are two general-purpose Wi-Fi modules. ESP32-S2-SOLO comes with an on-board PCB antenna and ESP32-S2-SOLO-U comes with a connector for an external antenna. ESP32-S2-SOLO or ESP32-S2-SOLO-U on the board may come either with a 4 MB flash, or a 4 MB flash plus a 2 MB PSRAM embedded in the chip.
  37. * - 3.3 V Power On LED
  38. - Turns on when the USB power is connected to the board.
  39. * - USB-to-UART Bridge
  40. - Single USB-to-UART bridge chip provides transfer rates up to 3 Mbps.
  41. * - Pin Headers
  42. - All available GPIO pins (except for the SPI bus for flash) are broken out to the pin headers on the board. For details, please see :ref:`user-guide-s2-devkitc-1-v1-header-blocks`.
  43. * - ESP32-S2 USB Port
  44. - ESP32-S2 full-speed USB OTG interface, compliant with the USB 1.1 specifications. The interface is used for power supply to the board, for flashing applications to the chip, and for communication with the chip using USB 1.1 protocols.
  45. * - Reset Button
  46. - Press this button to restart the system.
  47. * - Boot Button
  48. - Download button. Holding down **Boot** and then pressing **Reset** initiates Firmware Download mode for downloading firmware through the serial port.
  49. * - USB-to-UART Port
  50. - A Micro-USB port used for power supply to the board, for flashing applications to the chip, as well as the communication with the chip via the on-board USB-to-UART bridge.
  51. * - RGB LED
  52. - Addressable RGB LED, driven by GPIO18.
  53. * - 5 V to 3.3 V LDO
  54. - Power regulator that converts a 5 V supply into a 3.3 V output.
  55. Start Application Development
  56. -----------------------------
  57. Before powering up your ESP32-S2-DevKitC-1, please make sure that it is in good condition with no obvious signs of damage.
  58. Required Hardware
  59. ^^^^^^^^^^^^^^^^^
  60. - ESP32-S2-DevKitC-1
  61. - USB 2.0 cable (Standard-A to Micro-B)
  62. - Computer running Windows, Linux, or macOS
  63. .. note::
  64. 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.
  65. Hardware Setup
  66. ^^^^^^^^^^^^^^
  67. Connect the board with the computer using **USB-to-UART Port**. Connection using **ESP32-S2 USB Port** is not fully documented. In subsequent steps, **USB-to-UART Port** will be used by default.
  68. Software Setup
  69. ^^^^^^^^^^^^^^
  70. Please proceed to `ESP-IDF Get Started <https://docs.espressif.com/projects/esp-idf/en/latest/esp32s2/get-started/index.html>`_, where Section `Installation Step by Step <https://docs.espressif.com/projects/esp-idf/zh_CN/latest/esp32s2/get-started/index.html#get-started-step-by-step>`_ will quickly help you set up the development environment and then flash an application example into your ESP32-S2-DevKitC-1.
  71. Contents and Packaging
  72. ----------------------
  73. Retail orders
  74. ^^^^^^^^^^^^^
  75. If you order a few samples, each ESP32-S2-DevKitC-1 comes in an individual package in either antistatic bag or any packaging depending on your retailer.
  76. For retail orders, please go to https://www.espressif.com/en/company/contact/buy-a-sample.
  77. Wholesale Orders
  78. ^^^^^^^^^^^^^^^^
  79. If you order in bulk, the boards come in large cardboard boxes.
  80. For wholesale orders, please go to https://www.espressif.com/en/contact-us/sales-questions.
  81. Hardware Reference
  82. ==================
  83. Block Diagram
  84. -------------
  85. The block diagram below shows the components of ESP32-S2-DevKitC-1 and their interconnections.
  86. .. figure:: ../../../_static/esp32-s2-devkitc-1-v1-block-diags.png
  87. :align: center
  88. :scale: 70%
  89. :alt: ESP32-S2-DevKitC-1 (click to enlarge)
  90. :figclass: align-center
  91. ESP32-S2-DevKitC-1 (click to enlarge)
  92. Power Supply Options
  93. ^^^^^^^^^^^^^^^^^^^^
  94. There are three mutually exclusive ways to provide power to the board:
  95. - USB-to-UART Port and ESP32-S2 USB Port (either one or both), default power supply (recommended)
  96. - 5V and G (GND) pins
  97. - 3V3 and G (GND) pins
  98. .. _user-guide-s2-devkitc-1-v1-header-blocks:
  99. Header Block
  100. -------------
  101. 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-s2-devkitc-1-v1-board-front`. The numbering is the same as in the `ESP32-S2-DevKitC-1 Schematic <https://dl.espressif.com/dl/schematics/SCH_ESP32-S2-DEVKITC-1_V1_20210508.pdf>`_ (PDF).
  102. J1
  103. ^^^
  104. === ==== ========== ==========================================================================
  105. No. Name Type [#]_ Function
  106. === ==== ========== ==========================================================================
  107. 1 3V3 P 3.3 V power supply
  108. 2 3V3 P 3.3 V power supply
  109. 3 RST I CHIP_PU
  110. 4 4 I/O/T RTC_GPIO4, GPIO4, TOUCH4, ADC1_CH3
  111. 5 5 I/O/T RTC_GPIO5, GPIO5, TOUCH5, ADC1_CH4
  112. 6 6 I/O/T RTC_GPIO6, GPIO6, TOUCH6, ADC1_CH5
  113. 7 7 I/O/T RTC_GPIO7, GPIO7, TOUCH7, ADC1_CH6
  114. 8 15 I/O/T RTC_GPIO15, GPIO15, U0RTS, ADC2_CH4, XTAL_32K_P
  115. 9 16 I/O/T RTC_GPIO16, GPIO16, U0CTS, ADC2_CH5, XTAL_32K_N
  116. 10 17 I/O/T RTC_GPIO17, GPIO17, U1TXD, ADC2_CH6, DAC_1
  117. 11 18 I/O/T RTC_GPIO18, GPIO18, U1RXD, ADC2_CH7, DAC_2, CLK_OUT3, RGB LED
  118. 12 8 I/O/T RTC_GPIO8, GPIO8, TOUCH8, ADC1_CH7
  119. 13 3 I/O/T RTC_GPIO3, GPIO3, TOUCH3, ADC1_CH2
  120. 14 46 I GPIO46
  121. 15 9 I/O/T RTC_GPIO9, GPIO9, TOUCH9, ADC1_CH8, FSPIHD
  122. 16 10 I/O/T RTC_GPIO10, GPIO10, TOUCH10, ADC1_CH9, FSPICS0, FSPIIO4
  123. 17 11 I/O/T RTC_GPIO11, GPIO11, TOUCH11, ADC2_CH0, FSPID, FSPIIO5
  124. 18 12 I/O/T RTC_GPIO12, GPIO12, TOUCH12, ADC2_CH1, FSPICLK, FSPIIO6
  125. 19 13 I/O/T RTC_GPIO13, GPIO13, TOUCH13, ADC2_CH2, FSPIQ, FSPIIO7
  126. 20 14 I/O/T RTC_GPIO14, GPIO14, TOUCH14, ADC2_CH3, FSPIWP, FSPIDQS
  127. 21 5V P 5 V power supply
  128. 22 G G Ground
  129. === ==== ========== ==========================================================================
  130. J3
  131. ^^^
  132. === ==== ===== ============================================================
  133. No. Name Type Function
  134. === ==== ===== ============================================================
  135. 1 G G Ground
  136. 2 TX I/O/T U0TXD, GPIO43, CLK_OUT1
  137. 3 RX I/O/T U0RXD, GPIO44, CLK_OUT2
  138. 4 1 I/O/T RTC_GPIO1, GPIO1, TOUCH1, ADC1_CH0
  139. 5 2 I/O/T RTC_GPIO2, GPIO2, TOUCH2, ADC1_CH1
  140. 6 42 I/O/T MTMS, GPIO42
  141. 7 41 I/O/T MTDI, GPIO41, CLK_OUT1
  142. 8 40 I/O/T MTDO, GPIO40, CLK_OUT2
  143. 9 39 I/O/T MTCK, GPIO39, CLK_OUT3
  144. 10 38 I/O/T GPIO38, FSPIWP
  145. 11 37 I/O/T SPIDQS, GPIO37, FSPIQ
  146. 12 36 I/O/T SPIIO7, GPIO36, FSPICLK
  147. 13 35 I/O/T SPIIO6, GPIO35, FSPID
  148. 14 0 I/O/T RTC_GPIO0, GPIO0
  149. 15 45 I/O/T GPIO45
  150. 16 34 I/O/T SPIIO5, GPIO34, FSPICS0
  151. 17 33 I/O/T SPIIO4, GPIO33, FSPIHD
  152. 18 21 I/O/T RTC_GPIO21, GPIO21
  153. 19 20 I/O/T RTC_GPIO20, GPIO20, U1CTS, ADC2_CH9, CLK_OUT1, USB_D+
  154. 20 19 I/O/T RTC_GPIO19, GPIO19, U1RTS, ADC2_CH8, CLK_OUT2, USB_D-
  155. 21 G G Ground
  156. 22 G G Ground
  157. === ==== ===== ============================================================
  158. .. [#] P: Power supply; I: Input; O: Output; T: High impedance.
  159. Pin Layout
  160. ^^^^^^^^^^^
  161. .. figure:: ../../../_static/esp32-s2-devkitc-1-v1-pinout.png
  162. :align: center
  163. :scale: 15%
  164. :alt: ESP32-S2-DevKitC-1 (click to enlarge)
  165. :figclass: align-center
  166. ESP32-S2-DevKitC-1 Pin Layout (click to enlarge)
  167. Hardware Revision Details
  168. =========================
  169. This is the first revision of this board released.
  170. Related Documents
  171. =================
  172. * `ESP32-S2 Series Chip Datasheet <https://www.espressif.com/sites/default/files/documentation/esp32-s2_datasheet_en.pdf>`_ (PDF)
  173. * `ESP32-S2-SOLO & ESP32-S2-SOLO-U Module Datasheet <https://www.espressif.com/sites/default/files/documentation/esp32-s2-solo_esp32-s2-solo-u_datasheet_en.pdf>`_ (PDF)
  174. * `ESP32-S2-DevKitC-1 Schematic <https://dl.espressif.com/dl/schematics/SCH_ESP32-S2-DEVKITC-1_V1_20210508.pdf>`_ (PDF)
  175. * `ESP32-S2-DevKitC-1 PCB Layout <https://dl.espressif.com/dl/schematics/PCB_ESP32-S2-DevKitC-1_V1_20210508.pdf>`_ (PDF)
  176. * `ESP32-S2-DevKitC-1 Dimensions <https://dl.espressif.com/dl/schematics/DXF_ESP32-S2-DevKitC-1_V1_20210511.pdf>`_ (PDF)
  177. * `ESP32-S2-DevKitC-1 Dimensions source file <https://dl.espressif.com/dl/schematics/DXF_ESP32-S2-DevKitC-1_V1_20210511.dxf>`_ (DXF) - You can view it with `Autodesk Viewer <https://viewer.autodesk.com/>`_ online
  178. For further design documentation for the board, please contact us at `sales@espressif.com <sales@espressif.com>`_.