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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313
  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. This board integrates complete Wi-Fi functions. 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.
  7. .. figure:: ../../../_static/esp32-s2-devkitc-1-v1-isometric.png
  8. :align: center
  9. :alt: ESP32-S2-DevKitC-1 with the ESP32-S2-SOLO Module
  10. :figclass: align-center
  11. ESP32-S2-DevKitC-1 with the ESP32-S2-SOLO Module
  12. The document consists of the following major sections:
  13. - `Getting Started`_: Overview of ESP32-S2-DevKitC-1 and hardware/software setup instructions to get started.
  14. - `Hardware Reference`_: More detailed information about the ESP32-S2-DevKitC-1's hardware.
  15. - `Hardware Revision Details`_: Revision history, known issues, and links to user guides for previous versions (if any) of ESP32-S2-DevKitC-1.
  16. - `Related Documents`_: Links to related documentation.
  17. Getting Started
  18. ===============
  19. 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.
  20. Description of Components
  21. -------------------------
  22. .. _user-guide-s2-devkitc-1-v1-board-front:
  23. .. figure:: ../../../_static/esp32-s2-devkitc-1-v1-annotated-photo.png
  24. :align: center
  25. :alt: ESP32-S2-DevKitC-1 - front
  26. :figclass: align-center
  27. ESP32-S2-DevKitC-1 - front
  28. The key components of the board are described in a clockwise direction.
  29. .. list-table::
  30. :widths: 30 70
  31. :header-rows: 1
  32. * - Key Component
  33. - Description
  34. * - On-board module (ESP32-S2-SOLO or ESP32-S2-SOLO-U in the above figure)
  35. - ESP32-S2-SOLO series modules with an on-board PCB antenna or a connector for an external antenna. This series of modules have multiple options for flash and PSRAM size. For more information, please refer to :ref:`user-guide-s2-devkitc-1-v1-ordering-info`.
  36. * - 3.3 V Power On LED
  37. - Turns on when the USB power is connected to the board.
  38. * - USB-to-UART Bridge
  39. - Single USB-to-UART bridge chip provides transfer rates up to 3 Mbps.
  40. * - Pin Headers
  41. - 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`.
  42. * - ESP32-S2 USB Port
  43. - 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.
  44. * - Reset Button
  45. - Press this button to restart the system.
  46. * - Boot Button
  47. - Download button. Holding down **Boot** and then pressing **Reset** initiates Firmware Download mode for downloading firmware through the serial port.
  48. * - USB-to-UART Port
  49. - 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.
  50. * - RGB LED
  51. - Addressable RGB LED, driven by GPIO18.
  52. * - 5 V to 3.3 V LDO
  53. - Power regulator that converts a 5 V supply into a 3.3 V output.
  54. Start Application Development
  55. -----------------------------
  56. Before powering up your ESP32-S2-DevKitC-1, please make sure that it is in good condition with no obvious signs of damage.
  57. Required Hardware
  58. ^^^^^^^^^^^^^^^^^
  59. - ESP32-S2-DevKitC-1
  60. - USB 2.0 cable (Standard-A to Micro-B)
  61. - Computer running Windows, Linux, or macOS
  62. .. note::
  63. 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.
  64. Hardware Setup
  65. ^^^^^^^^^^^^^^
  66. Connect the board with the computer using **USB-to-UART Port** or **ESP32-S2 USB Port**. In subsequent steps, **USB-to-UART Port** will be used by default.
  67. Software Setup
  68. ^^^^^^^^^^^^^^
  69. 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/en/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.
  70. Contents and Packaging
  71. ----------------------
  72. .. _user-guide-s2-devkitc-1-v1-ordering-info:
  73. Ordering Information
  74. ^^^^^^^^^^^^^^^^^^^^
  75. The development board has a variety of variants to choose from, as shown in the table below.
  76. .. list-table::
  77. :header-rows: 1
  78. :widths: 41 24 9 8 18
  79. * - Ordering Code
  80. - On-board Module [#]_
  81. - Flash
  82. - PSRAM
  83. - Antenna
  84. * - ESP32-S2-DevKitC-1-N8R2
  85. - ESP32-S2-SOLO-2
  86. (Recommended)
  87. - 8 MB
  88. - 2 MB
  89. - PCB on-board antenna
  90. * - ESP32-S2-DevKitC-1U-N8R2
  91. - ESP32-S2-SOLO-2U
  92. (Recommended)
  93. - 8 MB
  94. - 2 MB
  95. - External antenna connector
  96. * - ESP32-S2-DevKitC-1
  97. - ESP32-S2-SOLO
  98. - 4 MB
  99. - ---
  100. - PCB on-board antenna
  101. * - ESP32-S2-DevKitC-1U
  102. - ESP32-S2-SOLO-U
  103. - 4 MB
  104. - ---
  105. - External antenna connector
  106. * - ESP32-S2-DevKitC-1R
  107. - ESP32-S2-SOLO
  108. - 4 MB
  109. - 2 MB
  110. - PCB on-board antenna
  111. * - ESP32-S2-DevKitC-1RU
  112. - ESP32-S2-SOLO-U
  113. - 4 MB
  114. - 2 MB
  115. - External antenna connector
  116. .. [#] The ESP32-S2-SOLO-2 and ESP32-S2-SOLO-2U modules use chip revision v1.0, and the rest use chip revision v0.0. For more information about chip revisions, please refer to `ESP32-S2 Series SoC Errata`_.
  117. Retail Orders
  118. ^^^^^^^^^^^^^
  119. 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.
  120. For retail orders, please go to https://www.espressif.com/en/contact-us/get-samples.
  121. Wholesale Orders
  122. ^^^^^^^^^^^^^^^^
  123. If you order in bulk, the boards come in large cardboard boxes.
  124. For wholesale orders, please go to https://www.espressif.com/en/contact-us/sales-questions.
  125. Hardware Reference
  126. ==================
  127. Block Diagram
  128. -------------
  129. The block diagram below shows the components of ESP32-S2-DevKitC-1 and their interconnections.
  130. .. figure:: ../../../_static/esp32-s2-devkitc-1-v1-block-diags.png
  131. :align: center
  132. :scale: 70%
  133. :alt: ESP32-S2-DevKitC-1 (click to enlarge)
  134. :figclass: align-center
  135. ESP32-S2-DevKitC-1 (click to enlarge)
  136. Power Supply Options
  137. ^^^^^^^^^^^^^^^^^^^^
  138. There are three mutually exclusive ways to provide power to the board:
  139. - USB-to-UART Port and ESP32-S2 USB Port (either one or both), default power supply (recommended)
  140. - 5V and G (GND) pins
  141. - 3V3 and G (GND) pins
  142. .. _user-guide-s2-devkitc-1-v1-header-blocks:
  143. Header Block
  144. ------------
  145. 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`_ (PDF).
  146. J1
  147. ^^^
  148. === ========= ========== ==========================================================================
  149. No. Name Type [#]_ Function
  150. === ========= ========== ==========================================================================
  151. 1 3V3 P 3.3 V power supply
  152. 2 3V3 P 3.3 V power supply
  153. 3 RST I CHIP_PU
  154. 4 4 I/O/T RTC_GPIO4, GPIO4, TOUCH4, ADC1_CH3
  155. 5 5 I/O/T RTC_GPIO5, GPIO5, TOUCH5, ADC1_CH4
  156. 6 6 I/O/T RTC_GPIO6, GPIO6, TOUCH6, ADC1_CH5
  157. 7 7 I/O/T RTC_GPIO7, GPIO7, TOUCH7, ADC1_CH6
  158. 8 15 I/O/T RTC_GPIO15, GPIO15, U0RTS, ADC2_CH4, XTAL_32K_P
  159. 9 16 I/O/T RTC_GPIO16, GPIO16, U0CTS, ADC2_CH5, XTAL_32K_N
  160. 10 17 I/O/T RTC_GPIO17, GPIO17, U1TXD, ADC2_CH6, DAC_1
  161. 11 18 [#]_ I/O/T RTC_GPIO18, GPIO18, U1RXD, ADC2_CH7, DAC_2, CLK_OUT3, RGB LED
  162. 12 8 I/O/T RTC_GPIO8, GPIO8, TOUCH8, ADC1_CH7
  163. 13 3 I/O/T RTC_GPIO3, GPIO3, TOUCH3, ADC1_CH2
  164. 14 46 I GPIO46
  165. 15 9 I/O/T RTC_GPIO9, GPIO9, TOUCH9, ADC1_CH8, FSPIHD
  166. 16 10 I/O/T RTC_GPIO10, GPIO10, TOUCH10, ADC1_CH9, FSPICS0, FSPIIO4
  167. 17 11 I/O/T RTC_GPIO11, GPIO11, TOUCH11, ADC2_CH0, FSPID, FSPIIO5
  168. 18 12 I/O/T RTC_GPIO12, GPIO12, TOUCH12, ADC2_CH1, FSPICLK, FSPIIO6
  169. 19 13 I/O/T RTC_GPIO13, GPIO13, TOUCH13, ADC2_CH2, FSPIQ, FSPIIO7
  170. 20 14 I/O/T RTC_GPIO14, GPIO14, TOUCH14, ADC2_CH3, FSPIWP, FSPIDQS
  171. 21 5V P 5 V power supply
  172. 22 G G Ground
  173. === ========= ========== ==========================================================================
  174. J3
  175. ^^^
  176. === ==== ===== ============================================================
  177. No. Name Type Function
  178. === ==== ===== ============================================================
  179. 1 G G Ground
  180. 2 TX I/O/T U0TXD, GPIO43, CLK_OUT1
  181. 3 RX I/O/T U0RXD, GPIO44, CLK_OUT2
  182. 4 1 I/O/T RTC_GPIO1, GPIO1, TOUCH1, ADC1_CH0
  183. 5 2 I/O/T RTC_GPIO2, GPIO2, TOUCH2, ADC1_CH1
  184. 6 42 I/O/T MTMS, GPIO42
  185. 7 41 I/O/T MTDI, GPIO41, CLK_OUT1
  186. 8 40 I/O/T MTDO, GPIO40, CLK_OUT2
  187. 9 39 I/O/T MTCK, GPIO39, CLK_OUT3
  188. 10 38 I/O/T GPIO38, FSPIWP
  189. 11 37 I/O/T SPIDQS, GPIO37, FSPIQ
  190. 12 36 I/O/T SPIIO7, GPIO36, FSPICLK
  191. 13 35 I/O/T SPIIO6, GPIO35, FSPID
  192. 14 0 I/O/T RTC_GPIO0, GPIO0
  193. 15 45 I/O/T GPIO45
  194. 16 34 I/O/T SPIIO5, GPIO34, FSPICS0
  195. 17 33 I/O/T SPIIO4, GPIO33, FSPIHD
  196. 18 21 I/O/T RTC_GPIO21, GPIO21
  197. 19 20 I/O/T RTC_GPIO20, GPIO20, U1CTS, ADC2_CH9, CLK_OUT1, USB_D+
  198. 20 19 I/O/T RTC_GPIO19, GPIO19, U1RTS, ADC2_CH8, CLK_OUT2, USB_D-
  199. 21 G G Ground
  200. 22 G G Ground
  201. === ==== ===== ============================================================
  202. .. [#] P: Power supply; I: Input; O: Output; T: High impedance.
  203. .. [#] GPIO18 is not pulled up on boards with an ESP32-S2-SOLO-2 or ESP32-S2-SOLO-2U module.
  204. Pin Layout
  205. ^^^^^^^^^^
  206. .. figure:: ../../../_static/esp32-s2-devkitc-1-v1-pinout.png
  207. :align: center
  208. :scale: 45%
  209. :alt: ESP32-S2-DevKitC-1 (click to enlarge)
  210. :figclass: align-center
  211. ESP32-S2-DevKitC-1 Pin Layout (click to enlarge)
  212. Hardware Revision Details
  213. =========================
  214. This is the first revision of this board released.
  215. Related Documents
  216. =================
  217. * `ESP32-S2 Series Chip Revision v1.0 Datasheet`_ (PDF)
  218. * `ESP32-S2 Series Chip Revision v0.0 Datasheet <https://www.espressif.com/sites/default/files/documentation/esp32-s2_datasheet_en.pdf>`_ (PDF)
  219. * `ESP32-S2 Series SoC Errata`_ (PDF)
  220. * `ESP32-S2-SOLO-2 & ESP32-S2-SOLO-2U Module Datasheet <https://www.espressif.com/sites/default/files/documentation/esp32-s2-solo-2_esp32-s2-solo-2u_datasheet_en.pdf>`_ (PDF)
  221. * `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)
  222. * `ESP32-S2-DevKitC-1 Schematic`_ (PDF)
  223. * `ESP32-S2-DevKitC-1 PCB Layout <https://dl.espressif.com/dl/schematics/PCB_ESP32-S2-DevKitC-1_V1_20210508.pdf>`_ (PDF)
  224. * `ESP32-S2-DevKitC-1 Dimensions <https://dl.espressif.com/dl/schematics/DXF_ESP32-S2-DevKitC-1_V1_20210511.pdf>`_ (PDF)
  225. * `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
  226. For further design documentation for the board, please contact us at `sales@espressif.com <sales@espressif.com>`_.
  227. .. _NRND: https://www.espressif.com/en/products/longevity-commitment?id=nrnd
  228. .. _ESP32-S2 Series Chip Revision v1.0 Datasheet: https://www.espressif.com/sites/default/files/documentation/esp32-s2-v1.0_datasheet_en.pdf
  229. .. _ESP32-S2 Series SoC Errata: https://espressif.com/sites/default/files/documentation/esp32-s2_errata_en.pdf
  230. .. _ESP32-S2-DevKitC-1 Schematic: https://dl.espressif.com/dl/schematics/esp-idf/SCH_ESP32-S2-DEVKITC-1_V1_20220817.pdf