user-guide-devkitm-1.rst 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332
  1. ===================
  2. ESP32-DevKitM-1
  3. ===================
  4. :link_to_translation:`zh_CN:[中文]`
  5. This user guide will help you get started with ESP32-DevKitM-1 and will also provide more in-depth information.
  6. ESP32-DevKitM-1 is an ESP32-MINI-1(1U)-based development board produced by Espressif. Most of the I/O pins are broken out to the pin headers on both sides for easy interfacing. Users can either connect peripherals with jumper wires or mount ESP32-DevKitM-1 on a breadboard.
  7. +---------------------------+-------------------------------+
  8. | |ESP32-DevKitM-1 - front| | |ESP32-DevKitM-1 - isometric| |
  9. +---------------------------+-------------------------------+
  10. | ESP32-DevKitM-1 - front | ESP32-DevKitM-1 - isometric |
  11. +---------------------------+-------------------------------+
  12. .. |ESP32-DevKitM-1 - front| image:: ../../../_static/esp32-DevKitM-1-front.png
  13. .. |ESP32-DevKitM-1 - isometric| image:: ../../../_static/esp32-DevKitM-1-isometric.png
  14. The document consists of the following major sections:
  15. - `Getting started`_: Provides an overview of the ESP32-DevKitM-1 and hardware/software setup instructions to get started.
  16. - `Hardware reference`_: Provides more detailed information about the ESP32-DevKitM-1's hardware.
  17. - `Related Documents`_: Gives links to related documentaiton.
  18. Getting Started
  19. ===================
  20. This section describes how to get started with ESP32-DevKitM-1. It begins with a few introductory sections about the ESP32-DevKitM-1, then Section `Start Application Development`_ provides instructions on how to do the initial hardware setup and then how to flash firmware onto the ESP32-DevKitM-1.
  21. Overview
  22. -------------
  23. This is a small and convenient development board that features:
  24. - `ESP32-MINI-1, or ESP32-MINI-1U module <https://www.espressif.com/sites/default/files/documentation/esp32-mini-1_datasheet_en.pdf>`_
  25. - USB-to-serial programming interface that also provides power supply for the board
  26. - pin headers
  27. - pushbuttons for reset and activation of Firmware Download mode
  28. - a few other components
  29. Contents and Packaging
  30. --------------------------
  31. Retail orders
  32. ^^^^^^^^^^^^^^^^^^^^^^^^^^
  33. If you order a few samples, each ESP32-DevKitM-1 comes in an individual package in either antistatic bag or any packaging depending on your retailer.
  34. For retail orders, please go to https://www.espressif.com/en/contact-us/get-samples.
  35. Wholesale Orders
  36. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  37. If you order in bulk, the boards come in large cardboard boxes.
  38. For wholesale orders, please go to https://www.espressif.com/en/contact-us/sales-questions.
  39. Description of Components
  40. ----------------------------
  41. The following figure and the table below describe the key components, interfaces and controls of the ESP32-DevKitM-1 board. We take the board with a ESP32-MINI-1 module as an example in the following sections.
  42. .. figure:: ../../../_static/esp32-devkitm-1-v1-annotated-photo.png
  43. :align: center
  44. :alt: ESP32-DevKitM-1 - front
  45. :figclass: align-center
  46. ESP32-DevKitM-1 - front
  47. .. list-table::
  48. :widths: 25 75
  49. :header-rows: 1
  50. * - Key Component
  51. - Description
  52. * - On-board module
  53. - ESP32-MINI-1 module or ESP32-MINI-1U module. ESP32-MINI-1 comes with an on-board PCB antenna. ESP32-MINI-1U comes with an external antenna connector. The two modules both have a 4 MB flash in chip package. For details, please see `ESP32-MINI-1 & ESP32-MINI-1U Datasheet <https://www.espressif.com/sites/default/files/documentation/esp32-mini-1_datasheet_en.pdf>`_.
  54. * - 5 V to 3.3 V LDO
  55. - Power regulator converts 5 V to 3.3 V.
  56. * - Boot Button
  57. - Download button. Holding down **Boot** and then pressing **Reset** initiates Firmware Download mode for downloading firmware through the serial port.
  58. * - Reset Button
  59. - Reset Button
  60. * - Micro-USB Port
  61. - USB interface. Power supply for the board as well as the communication interface between a computer and the ESP32 chip.
  62. * - USB-to-UART Bridge
  63. - Single USB-UART bridge chip provides transfer rates up to 3 Mbps.
  64. * - 3.3 V Power On LED
  65. - Turns on when the USB is connected to the board. For details, please see the schematics in `Related Documents`_.
  66. * - I/O Connector
  67. - 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 chip to enable multiple functions.
  68. Start Application Development
  69. ----------------------------------
  70. Before powering up your ESP32-DevKitM-1, please make sure that it is in good condition with no obvious signs of damage.
  71. Required Hardware
  72. ^^^^^^^^^^^^^^^^^^^^^^
  73. - ESP32-DevKitM-1
  74. - USB 2.0 cable (Standard-A to Micro-B)
  75. - Computer running Windows, Linux, or macOS
  76. Software Setup
  77. ^^^^^^^^^^^^^^^^^^^^^
  78. 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 onto your ESP32-DevKitM-1.
  79. .. attention::
  80. ESP32-DevKitM-1 boards manufactured before December 2, 2021 have a single core module installed. To verify what module you have, please check module marking information in `PCN-2021-021 <https://www.espressif.com/sites/default/files/pcn_downloads/PCN-2021-021%20ESP32-U4WDH%20%E5%8D%87%E7%BA%A7%E4%B8%BA%E5%8F%8C%E6%A0%B8%E5%A4%84%E7%90%86%E5%99%A8%E4%BA%A7%E5%93%81.pdf>`_ . If your board has a single core module installed, please enable single core mode (:ref:`CONFIG_FREERTOS_UNICORE`) in :ref:`menuconfig <get-started-configure>` before flashing your applications.
  81. Hardware Reference
  82. ======================
  83. Block Diagram
  84. ----------------------
  85. A block diagram below shows the components of ESP32-DevKitM-1 and their interconnections.
  86. .. figure:: ../../../_static/esp32-DevKitM-1_v1_SystemBlock.png
  87. :align: center
  88. :alt: ESP32-DevKitM-1
  89. :figclass: align-center
  90. ESP32-DevKitM-1
  91. Power Source Select
  92. ----------------------
  93. There are three mutually exclusive ways to provide power to the board:
  94. * Micro USB port, default power supply
  95. * 5V and GND header pins
  96. * 3V3 and GND header pins
  97. .. warning::
  98. - The power supply must be provided using **one and only one of the options above**, otherwise the board and/or the power supply source can be damaged.
  99. - Power supply by micro USB port is recommended.
  100. Pin Descriptions
  101. -------------------
  102. The table below provides the Name and Function of pins on both sides of the board. For peripheral pin configurations, please refer to `ESP32 Datasheet`_.
  103. .. list-table::
  104. :header-rows: 1
  105. :widths: 10 12 12 66
  106. * - No.
  107. - Name
  108. - Type [1]_
  109. - Function
  110. * - 1
  111. - GND
  112. - P
  113. - Ground
  114. * - 2
  115. - 3V3
  116. - P
  117. - 3.3 V power supply
  118. * - 3
  119. - I36
  120. - I
  121. - GPIO36, ADC1_CH0, RTC_GPIO0
  122. * - 4
  123. - I37
  124. - I
  125. - GPIO37, ADC1_CH1, RTC_GPIO1
  126. * - 5
  127. - I38
  128. - I
  129. - GPIO38, ADC1_CH2, RTC_GPIO2
  130. * - 6
  131. - I39
  132. - I
  133. - GPIO39, ADC1_CH3, RTC_GPIO3
  134. * - 7
  135. - RST
  136. - I
  137. - Reset; High: enable; Low: powers off
  138. * - 8
  139. - I34
  140. - I
  141. - GPIO34, ADC1_CH6, RTC_GPIO4
  142. * - 9
  143. - I35
  144. - I
  145. - GPIO35, ADC1_CH7, RTC_GPIO5
  146. * - 10
  147. - IO32
  148. - I/O
  149. - GPIO32, XTAL_32K_P (32.768 kHz crystal oscillator input), ADC1_CH4, TOUCH9, RTC_GPIO9
  150. * - 11
  151. - IO33
  152. - I/O
  153. - GPIO33, XTAL_32K_N (32.768 kHz crystal oscillator output), ADC1_CH5, TOUCH8, RTC_GPIO8
  154. * - 12
  155. - IO25
  156. - I/O
  157. - GPIO25, DAC_1, ADC2_CH8, RTC_GPIO6, EMAC_RXD0
  158. * - 13
  159. - IO26
  160. - I/O
  161. - GPIO26, DAC_2, ADC2_CH9, RTC_GPIO7, EMAC_RXD1
  162. * - 14
  163. - IO27
  164. - I/O
  165. - GPIO27, ADC2_CH7, TOUCH7, RTC_GPIO17, EMAC_RX_DV
  166. * - 15
  167. - IO14
  168. - I/O
  169. - GPIO14, ADC2_CH6, TOUCH6, RTC_GPIO16, MTMS, HSPICLK, HS2_CLK, SD_CLK, EMAC_TXD2
  170. * - 16
  171. - 5V
  172. - P
  173. - 5 V power supply
  174. * - 17
  175. - IO12
  176. - I/O
  177. - GPIO12, ADC2_CH5, TOUCH5, RTC_GPIO15, MTDI [2]_, HSPIQ, HS2_DATA2, SD_DATA2, EMAC_TXD3
  178. * - 18
  179. - IO13
  180. - I/O
  181. - GPIO13, ADC2_CH4, TOUCH4, RTC_GPIO14, MTCK, HSPID, HS2_DATA3, SD_DATA3, EMAC_RX_ER
  182. * - 19
  183. - IO15
  184. - I/O
  185. - GPIO15, ADC2_CH3, TOUCH3, RTC_GPIO13, MTDO [2]_, HSPICS0, HS2_CMD, SD_CMD, EMAC_RXD3
  186. * - 20
  187. - IO2
  188. - I/O
  189. - GPIO2 [2]_, ADC2_CH2, TOUCH2, RTC_GPIO12, HSPIWP, HS2_DATA0, SD_DATA0
  190. * - 21
  191. - IO0
  192. - I/O
  193. - GPIO0 [2]_, ADC2_CH1, TOUCH1, RTC_GPIO11, CLK_OUT1, EMAC_TX_CLK
  194. * - 22
  195. - IO4
  196. - I/O
  197. - GPIO4, ADC2_CH0, TOUCH0, RTC_GPIO10, HSPIHD, HS2_DATA1, SD_DATA1, EMAC_TX_ER
  198. * - 23
  199. - IO9
  200. - I/O
  201. - GPIO9, HS1_DATA2, U1RXD, SD_DATA2
  202. * - 24
  203. - IO10
  204. - I/O
  205. - GPIO10, HS1_DATA3, U1TXD, SD_DATA3
  206. * - 25
  207. - IO5
  208. - I/O
  209. - GPIO5 [2]_, HS1_DATA6, VSPICS0, EMAC_RX_CLK
  210. * - 26
  211. - IO18
  212. - I/O
  213. - GPIO18, HS1_DATA7, VSPICLK
  214. * - 27
  215. - IO23
  216. - I/O
  217. - GPIO23, HS1_STROBE, VSPID
  218. * - 28
  219. - IO19
  220. - I/O
  221. - GPIO19, VSPIQ, U0CTS, EMAC_TXD0
  222. * - 29
  223. - IO22
  224. - I/O
  225. - GPIO22, VSPIWP, U0RTS, EMAC_TXD1
  226. * - 30
  227. - IO21
  228. - I/O
  229. - GPIO21, VSPIHD, EMAC_TX_EN
  230. * - 31
  231. - TXD0
  232. - I/O
  233. - GPIO1, U0TXD, CLK_OUT3, EMAC_RXD2
  234. * - 32
  235. - RXD0
  236. - I/O
  237. - GPIO3, U0RXD, CLK_OUT2
  238. .. [1] P: Power supply; I: Input; O: Output.
  239. .. [2] MTDI, GPIO0, GPIO2, MTDO, and GPIO5 are strapping pins. These pins are used to control several chip functions depending on binary voltage values applied to the pins during chip power-up or system reset. For description and application of the strapping pins, please refer to `ESP32 Datasheet`_ > Section *Strapping Pins*.
  240. Pin Layout
  241. ^^^^^^^^^^^
  242. .. figure:: ../../../_static/ESP32_DevKitM-1_pinlayout.png
  243. :align: center
  244. :scale: 43%
  245. :alt: ESP32-DevKitM-1 (click to enlarge)
  246. :figclass: align-center
  247. ESP32-DevKitM-1 (click to enlarge)
  248. Hardware Revision Details
  249. ============================
  250. No previous versions available.
  251. Related Documents
  252. ============================
  253. * `ESP32-MINI-1 & ESP32-MINI-1U Datasheet <https://www.espressif.com/sites/default/files/documentation/esp32-mini-1_datasheet_en.pdf>`_ (PDF)
  254. * `ESP32-DevKitM-1 Schematics <https://dl.espressif.com/dl/schematics/SCH_ESP32-DEVKITM-1_V1_20200910A.pdf>`_ (PDF)
  255. * `ESP32-DevKitM-1 PCB layout <https://dl.espressif.com/dl/schematics/PCB_ESP32-DevKitM-1_V1_20200910AE.pdf>`_ (PDF)
  256. * `ESP32-DevKitM-1 layout <https://dl.espressif.com/dl/schematics/ESP32-DevKitM-1_V1.dxf>`_ (DXF) - You can view it with `Autodesk Viewer <https://viewer.autodesk.com/>`_ online
  257. * `ESP32 Datasheet <https://www.espressif.com/sites/default/files/documentation/esp32_datasheet_en.pdf>`_ (PDF)
  258. * `ESP Product Selector <https://products.espressif.com/#/product-selector?names=>`_
  259. For other design documentation for the board, please contact us at sales@espressif.com.