get-started-devkitc.rst 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  1. ESP32-DevKitC V4 Getting Started Guide
  2. ======================================
  3. :link_to_translation:`zh_CN:[中文]`
  4. This guide shows how to start using the ESP32-DevKitC V4 development board.
  5. What You Need
  6. -------------
  7. * ESP32-DevKitC V4 board
  8. * USB A / micro USB B cable
  9. * Computer running Windows, Linux, or macOS
  10. You can skip the introduction sections and go directly to Section `Start Application Development`_.
  11. .. _DevKitC-Overview:
  12. Overview
  13. --------
  14. ESP32-DevKitC V4 is a small-sized ESP32-based development board produced by `Espressif <https://espressif.com>`_. 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-DevKitC V4 on a breadboard.
  15. To cover a wide range of user requirements, the following versions of ESP32-DevKitC V4 are available:
  16. - different ESP32 modules
  17. - `ESP32-WROOM-DA <https://www.espressif.com/sites/default/files/documentation/esp32-wroom-da_datasheet_en.pdf>`_
  18. - `ESP32-WROOM-32E <https://www.espressif.com/sites/default/files/documentation/esp32-wroom-32e_esp32-wroom-32ue_datasheet_en.pdf>`_
  19. - `ESP32-WROOM-32UE <https://www.espressif.com/sites/default/files/documentation/esp32-wroom-32e_esp32-wroom-32ue_datasheet_en.pdf>`_
  20. - `ESP32-WROOM-32D <https://www.espressif.com/sites/default/files/documentation/esp32-wroom-32d_esp32-wroom-32u_datasheet_en.pdf>`_
  21. - `ESP32-WROOM-32U <https://www.espressif.com/sites/default/files/documentation/esp32-wroom-32d_esp32-wroom-32u_datasheet_en.pdf>`_
  22. - `ESP32-SOLO-1 <https://www.espressif.com/sites/default/files/documentation/esp32-solo-1_datasheet_en.pdf>`_
  23. - `ESP32-WROVER-E <https://www.espressif.com/sites/default/files/documentation/esp32-wrover-e_esp32-wrover-ie_datasheet_en.pdf>`_
  24. - `ESP32-WROVER-IE <https://www.espressif.com/sites/default/files/documentation/esp32-wrover-e_esp32-wrover-ie_datasheet_en.pdf>`_
  25. - male or female pin headers.
  26. For details please refer to `ESP Product Selector <https://products.espressif.com/#/product-selector?names=>`_.
  27. Functional Description
  28. ----------------------
  29. The following figure and the table below describe the key components, interfaces and controls of the ESP32-DevKitC V4 board.
  30. .. _get-started-esp32-devkitc-board-front:
  31. .. figure:: ../../../_static/esp32-devkitc-functional-overview.jpg
  32. :align: center
  33. :alt: ESP32-DevKitC V4 with ESP-WROOM-32 module soldered
  34. ESP32-DevKitC V4 with ESP32-WROOM-32 module soldered
  35. .. list-table::
  36. :widths: 25 75
  37. :header-rows: 1
  38. * - Key Component
  39. - Description
  40. * - ESP32-WROOM-32
  41. - A module with ESP32 at its core. For more information, see `ESP32-WROOM-32 Datasheet`_.
  42. * - EN
  43. - Reset button.
  44. * - Boot
  45. - Download button. Holding down **Boot** and then pressing **EN** initiates Firmware Download mode for downloading firmware through the serial port.
  46. * - USB-to-UART Bridge
  47. - Single USB-UART bridge chip provides transfer rates of up to 3 Mbps.
  48. * - Micro USB Port
  49. - USB interface. Power supply for the board as well as the communication interface between a computer and the ESP32-WROOM-32 module.
  50. * - 5V Power On LED
  51. - Turns on when the USB or an external 5V power supply is connected to the board. For details see the schematics in `Related Documents`_.
  52. * - I/O
  53. - Most of the pins on the ESP module are broken out to the pin headers on the board. You can program ESP32 to enable multiple functions such as PWM, ADC, DAC, I2C, I2S, SPI, etc.
  54. .. note::
  55. The pins D0, D1, D2, D3, CMD and CLK are used internally for communication between ESP32 and SPI flash memory. They are grouped on both sides near the USB connector. Avoid using these pins, as it may disrupt access to the SPI flash memory / SPI RAM.
  56. .. note::
  57. The pins GPIO16 and GPIO17 are available for use only on the boards with the modules ESP32-WROOM and ESP32-SOLO-1. The boards with ESP32-WROVER modules have the pins reserved for internal use.
  58. Power Supply Options
  59. --------------------
  60. There are three mutually exclusive ways to provide power to the board:
  61. * Micro USB port, default power supply
  62. * 5V / GND header pins
  63. * 3V3 / GND header pins
  64. .. warning::
  65. 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.
  66. Header Block
  67. ------------
  68. The two tables below provide the **Name** and **Function** of I/O header pins on both sides of the board, as shown in :ref:`get-started-esp32-devkitc-board-front`. The numbering and names are the same as in the `ESP32-DevKitC V4 schematics`_ (PDF).
  69. J1
  70. ^^^
  71. === ==== ===== ===================================
  72. No. Name Type Function
  73. === ==== ===== ===================================
  74. 1 3V3 P 3.3 V power supply
  75. 2 EN I CHIP_PU, Reset
  76. 3 IO36 I GPIO36, ADC1_CH0, S_VP
  77. 4 IO39 I GPIO39, ADC1_CH3, S_VN
  78. 5 IO34 I GPIO34, ADC1_CH6, VDET_1
  79. 6 IO35 I GPIO35, ADC1_CH7, VDET_2
  80. 7 IO32 I/O GPIO32, ADC1_CH4, TOUCH_CH9, XTAL_32K_P
  81. 8 IO33 I/O GPIO33, ADC1_CH5, TOUCH_CH8, XTAL_32K_N
  82. 9 IO25 I/O GPIO25, ADC1_CH8, DAC_1
  83. 10 IO26 I/O GPIO26, ADC2_CH9, DAC_2
  84. 11 IO27 I/O GPIO27, ADC2_CH7, TOUCH_CH7
  85. 12 IO14 I/O GPIO14, ADC2_CH6, TOUCH_CH6, MTMS
  86. 13 IO12 I/O GPIO12, ADC2_CH5, TOUCH_CH5, MTDI
  87. 14 GND G Ground
  88. 15 IO13 I/O GPIO13, ADC2_CH4, TOUCH_CH4, MTCK
  89. 16 IO9 I/O GPIO9, D2
  90. 17 IO10 I/O GPIO10, D3
  91. 18 IO11 I/O GPIO11, CMD
  92. 19 5V0 P 5 V power supply
  93. === ==== ===== ===================================
  94. J3
  95. ^^^
  96. === ==== ===== ====================================
  97. No. Name Type Function
  98. === ==== ===== ====================================
  99. 1 GND G Ground
  100. 2 IO23 I/O GPIO23
  101. 3 IO22 I/O GPIO22
  102. 4 IO1 I/O GPIO1, U0TXD
  103. 5 IO3 I/O GPIO3, U0RXD
  104. 6 IO21 I/O GPIO21
  105. 7 GND G Ground
  106. 8 IO19 I/O GPIO19
  107. 9 IO18 I/O GPIO18
  108. 10 IO5 I/O GPIO5
  109. 11 IO17 I/O GPIO17
  110. 12 IO16 I/O GPIO16
  111. 13 IO4 I/O GPIO4, ADC2_CH0, TOUCH_CH0
  112. 14 IO0 I/O GPIO0, ADC2_CH1, TOUCH_CH1, Boot
  113. 16 IO2 I/O GPIO2, ADC2_CH2, TOUCH_CH2
  114. 17 IO15 I/O GPIO15, ADC2_CH3, TOUCH_CH3, MTDO
  115. 17 IO8 I/O GPIO8, D1
  116. 18 IO7 I/O GPIO7, D0
  117. 19 IO6 I/O GPIO6, SCK
  118. === ==== ===== ====================================
  119. P: Power supply;
  120. I: Input;
  121. O: Output.
  122. Pin Layout
  123. ^^^^^^^^^^^
  124. .. figure:: ../../../_static/esp32-devkitC-v4-pinout.png
  125. :align: center
  126. :scale: 45%
  127. :alt: ESP32-DevKitC (click to enlarge)
  128. ESP32-DevKitC Pin Layout (click to enlarge)
  129. Note on C15
  130. -----------
  131. The component C15 may cause the following issues on earlier ESP32-DevKitC V4 boards:
  132. * The board may boot into Download mode
  133. * If you output clock on GPIO0, C15 may impact the signal
  134. In case these issues occur, please remove the component. The figure below shows C15 highlighted in yellow.
  135. .. figure:: ../../../_static/esp32-devkitc-c15-location.png
  136. :align: center
  137. :alt: Location of C15 (colored yellow) on ESP32-DevKitC V4 board
  138. :figclass: align-center
  139. :width: 30%
  140. Location of C15 (yellow) on ESP32-DevKitC V4 board
  141. Start Application Development
  142. ------------------------------
  143. Before powering up your ESP32-DevKitC V4, please make sure that the board is in good condition with no obvious signs of damage.
  144. After that, 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 example project onto your board.
  145. Board Dimensions
  146. ----------------
  147. .. figure:: ../../../_static/esp32-devkitc-dimensions-back.jpg
  148. :align: center
  149. :scale: 80%
  150. :alt: Dimensions of ESP32-DevKitC board with ESP32-WROOM-32 module soldered - back (click to enlarge)
  151. Dimensions of ESP32-DevKitC board with ESP32-WROOM-32 module soldered - back (click to enlarge)
  152. Related Documents
  153. -----------------
  154. * `ESP32-DevKitC V4 schematics`_ (PDF)
  155. * `ESP32 Datasheet`_ (PDF)
  156. * `ESP32-WROOM-DA Datasheet`_ (PDF)
  157. * `ESP32-WROOM-32 Datasheet`_ (PDF)
  158. * `ESP32-WROOM-32D and ESP32-WROOM-32U Datasheet`_ (PDF)
  159. * `ESP32-WROVER Datasheet`_ (PDF)
  160. * `ESP32-WROVER-B Datasheet`_ (PDF)
  161. * `ESP Product Selector`_
  162. For further design documentation for the board, please contact us at `sales@espressif.com <sales@espressif.com>`_.
  163. .. _ESP32-DevKitC V4 schematics: https://dl.espressif.com/dl/schematics/esp32_devkitc_v4-sch.pdf
  164. .. _ESP32 Datasheet: https://www.espressif.com/sites/default/files/documentation/esp32_datasheet_en.pdf
  165. .. _ESP32-WROOM-32 Datasheet: https://espressif.com/sites/default/files/documentation/esp32-wroom-32_datasheet_en.pdf
  166. .. _ESP32-WROOM-32D and ESP32-WROOM-32U Datasheet: https://www.espressif.com/sites/default/files/documentation/esp32-wroom-32d_esp32-wroom-32u_datasheet_en.pdf
  167. .. _ESP32-WROVER Datasheet: https://espressif.com/sites/default/files/documentation/esp32-wrover_datasheet_en.pdf
  168. .. _ESP32-WROVER-B Datasheet: https://www.espressif.com/sites/default/files/documentation/esp32-wrover-b_datasheet_en.pdf
  169. .. _ESP32-WROOM-DA Datasheet: https://www.espressif.com/sites/default/files/documentation/esp32-wroom-da_datasheet_en.pdf
  170. .. _ESP Product Selector: https://products.espressif.com/#/product-selector?names=
  171. .. toctree::
  172. :hidden:
  173. get-started-devkitc-v2