get-started-pico-devkitm-2.rst 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355
  1. ESP32-PICO-DevKitM-2
  2. *********************
  3. :link_to_translation:`zh_CN:[中文]`
  4. Overview
  5. ===========
  6. ESP32-PICO-DevKitM-2 is an ESP32-based development board produced by `Espressif <https://espressif.com>`_.
  7. The core of this board is `ESP32-PICO-MINI-02(02U) <https://www.espressif.com/en/products/modules>`_ module with complete Wi-Fi and Bluetooth functionalities. The development board features a USB-to-UART Bridge circuit which allows developers to connect the board to a computer's USB port for flashing and debugging.
  8. All the IO signals and system power on ESP32-PICO-MINI-02(02U) are led out to two rows of 18 x 0.1" header pads on both sides of the development board for easy access. For compatibility with Dupont wires, all header pads are populated with two rows of male pin headers.
  9. .. note::
  10. ESP32-PICO-DevKitM-2 comes with male headers by default.
  11. ESP32-PICO-DevKitM-2 provides the users with hardware for development of applications based on the ESP32, making it easier for users to explore ESP32 functionalities.
  12. .. figure:: ../../../_static/esp32-pico-devkitm-2-overview.png
  13. :align: center
  14. :scale: 70%
  15. :alt: ESP32-PICO-DevKitM-2 (click to enlarge)
  16. :figclass: align-center
  17. ESP32-PICO-DevKitM-2 Overview (click to enlarge)
  18. This guide covers:
  19. - `Getting Started`_: Provides an overview of the ESP32-PICO-DevKitM-2 and software setup instructions to get started.
  20. - `Contents and Packaging`_: Provides information about packaging and contents for retail and wholesale orders.
  21. - `Hardware Reference`_: Provides more detailed information about the ESP32-PICO-DevKitM-2’s hardware.
  22. - `Hardware Revision Details`_: Covers revision history, known issues, and links to user guides for previous versions (if any) of the ESP32-PICO-DevKitM-2.
  23. - `Related Documents`_: Gives links to related documentation.
  24. Getting Started
  25. ===============
  26. This section describes how to get started with the ESP32-PICO-DevKitM-2. It begins with a few introductory sections about the ESP32-PICO-DevKitM-2, then Section `Start Application Development`_ provides instructions on how to flash firmware onto the ESP32-PICO-DevKitM-2.
  27. .. _get-started-pico-devkitm-2-board-front:
  28. Description of Components
  29. -----------------------------
  30. The following figure and the table below describe the key components, interfaces, and controls of the ESP32-PICO-DevKitM-2 board. We take the board with a ESP32-PICO-MINI-02 module as an example in the following sections.
  31. .. figure:: ../../../_static/esp32-pico-devkitm-2-layout-front.png
  32. :align: center
  33. :scale: 90%
  34. :alt: ESP32-PICO-DevKitM-2 (click to enlarge)
  35. :figclass: align-center
  36. ESP32-PICO-DevKitM-2 board layout - front (click to enlarge)
  37. Below is the description of the items identified in the figure starting from the top left corner and going clockwise.
  38. ================== =================================================================================================================================
  39. Key Component Description
  40. ================== =================================================================================================================================
  41. ESP32-PICO-MINI-02 Standard ESP32-PICO-MINI-02 module soldered to the ESP32-PICO-DevKitM-2 board. The complete ESP32 system on a chip (ESP32 SoC) has been integrated into the module. Users can also select the board with ESP32-PICO-MINI-02U soldered.
  42. LDO 5V-to-3.3V Low dropout voltage regulator (LDO).
  43. USB-to-UART bridge CP2102N, single-chip USB-UART bridge that offers up to 3 Mbps transfers rates.
  44. Micro-B USB Port USB interface. Power supply for the board as well as the communication interface between a computer and the board.
  45. 5V Power On LED This red LED turns on when power is supplied to the board. For details, see the schematic in `Related Documents`_.
  46. I/O Connector All the pins on ESP32-PICO-MINI-02 are broken out to pin headers. You can program ESP32 to enable multiple functions, such as PWM, ADC, DAC, I2C, I2S, SPI, etc. For details, please see Section `Pin Descriptions`_.
  47. BOOT Button Download button. Holding down **Boot** and then pressing **EN** initiates Firmware Download mode for downloading firmware through the serial port.
  48. EN Button Reset button.
  49. ================== =================================================================================================================================
  50. Start Application Development
  51. -----------------------------
  52. Before powering up your ESP32-PICO-DevKitM-2, please make sure that the board is in good condition with no obvious signs of damage.
  53. Required Hardware
  54. """"""""""""""""""""""""
  55. - 1 x ESP32-PICO-DevKitM-2
  56. - 1 x USB 2.0 A to Micro B cable
  57. - 1 x Computer running Windows, Linux, or macOS
  58. .. _user-guide-pico-devkitm-2-software-setup:
  59. Software Setup
  60. """"""""""""""""""""""""
  61. Please proceed to :doc:`../../get-started/index`, where Section :ref:`get-started-step-by-step` will quickly help you set up the development environment.
  62. Contents and Packaging
  63. =======================
  64. Retail Orders
  65. ---------------
  66. If you order one or several samples of the board, each ESP32-PICO-DevKitM-2 development board comes in an individual package.
  67. For retail orders, please go to https://www.espressif.com/en/company/contact/buy-a-sample.
  68. Wholesale Orders
  69. ------------------
  70. If you order in bulk, the boards come in large cardboard boxes.
  71. For wholesale orders, please go to https://www.espressif.com/en/contact-us/sales-questions.
  72. Hardware Reference
  73. =======================
  74. Block Diagram
  75. ------------------
  76. The block diagram below shows the main components of ESP32-PICO-DevKitM-2 and their interconnections.
  77. .. figure:: ../../../_static/esp32-pico-devkitm-2-block.png
  78. :align: center
  79. :scale: 70%
  80. :alt: ESP32-PICO-DevKitM-2 (click to enlarge)
  81. :figclass: align-center
  82. ESP32-PICO-DevKitM-2 Block Diagram (click to enlarge)
  83. Power Supply Options
  84. --------------------
  85. There are three mutually exclusive ways to provide power to the board:
  86. * Micro USB port, default power supply
  87. * 5V/GND header pins
  88. * 3V3/GND header pins
  89. .. warning::
  90. 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.
  91. Pin Descriptions
  92. ----------------
  93. The two tables below provide the **Name** and **Function** of I/O header pins on both sides of the board, see :ref:`get-started-pico-devkitm-2-board-front`. The pin numbering and header names are the same as in the schematic given in `Related Documents`_.
  94. Header J2
  95. """"""""""""
  96. .. list-table::
  97. :widths: 5 5 5 35
  98. :header-rows: 1
  99. * - No.
  100. - Name
  101. - Type
  102. - Function
  103. * - 1
  104. - IO20
  105. - I/O
  106. - GPIO20
  107. * - 2
  108. - IO21
  109. - I/O
  110. - GPIO21, VSPIHD, EMAC_TX_EN
  111. * - 3
  112. - IO22
  113. - I/O
  114. - GPIO22, VSPIWP, U0RTS, EMAC_TXD1
  115. * - 4
  116. - IO19
  117. - I/O
  118. - GPIO19, VSPIQ, U0CTS, EMAC_TXD0
  119. * - 5
  120. - IO8
  121. - I/O
  122. - GPIO8, SD_DATA1, HS1_DATA1, U2CTS
  123. * - 6
  124. - IO7
  125. - I/O
  126. - GPIO7, SD_DATA0, HS1_DATA0, U2RTS
  127. * - 7
  128. - IO5
  129. - I/O
  130. - GPIO5, VSPICS0, HS1_DATA6, EMAC_RX_CLK
  131. * - 8
  132. - NC
  133. - \-
  134. - NC
  135. * - 9
  136. - NC
  137. - \-
  138. - NC
  139. * - 10
  140. - RXD0
  141. - I/O
  142. - GPIO3, U0RXD :ref:`(See 1) <get-started-pico-devkitm-2-pin-notes>`, CLK_OUT2
  143. * - 11
  144. - TXD0
  145. - I/O
  146. - GPIO1, U0TXD :ref:`(See 1) <get-started-pico-devkitm-2-pin-notes>`, CLK_OUT3, EMAC_RXD2
  147. * - 12
  148. - IO35
  149. - I
  150. - ADC1_CH7, RTC_GPIO5
  151. * - 13
  152. - IO34
  153. - I
  154. - ADC1_CH6, RTC_GPIO4
  155. * - 14
  156. - IO38
  157. - I
  158. - GPIO38, ADC1_CH2, RTC_GPIO2
  159. * - 15
  160. - IO37
  161. - I
  162. - GPIO37, ADC1_CH1, RTC_GPIO1
  163. * - 16
  164. - EN
  165. - I
  166. - CHIP_PU
  167. * - 17
  168. - GND
  169. - P
  170. - Ground
  171. * - 18
  172. - VDD33 (3V3)
  173. - P
  174. - 3.3 V power supply
  175. Header J3
  176. """""""""""""
  177. .. list-table::
  178. :widths: 5 5 5 35
  179. :header-rows: 1
  180. * - No.
  181. - Name
  182. - Type
  183. - Function
  184. * - 1
  185. - GND
  186. - P
  187. - Ground
  188. * - 2
  189. - SENSOR_VP (FSVP)
  190. - I
  191. - GPIO36, ADC1_CH0, RTC_GPIO0
  192. * - 3
  193. - SENSOR_VN (FSVN)
  194. - I
  195. - GPIO39, ADC1_CH3, RTC_GPIO3
  196. * - 4
  197. - IO25
  198. - I/O
  199. - GPIO25, DAC_1, ADC2_CH8, RTC_GPIO6, EMAC_RXD0
  200. * - 5
  201. - IO26
  202. - I/O
  203. - GPIO26, DAC_2, ADC2_CH9, RTC_GPIO7, EMAC_RXD1
  204. * - 6
  205. - IO32
  206. - I/O
  207. - 32K_XP :ref:`(See 2a) <get-started-pico-devkitm-2-pin-notes>`, ADC1_CH4, TOUCH9, RTC_GPIO9
  208. * - 7
  209. - IO33
  210. - I/O
  211. - 32K_XN :ref:`(See 2b) <get-started-pico-devkitm-2-pin-notes>`, ADC1_CH5, TOUCH8, RTC_GPIO8
  212. * - 8
  213. - IO27
  214. - I/O
  215. - GPIO27, ADC2_CH7, TOUCH7, RTC_GPIO17, EMAC_RX_DV
  216. * - 9
  217. - IO14
  218. - I/O
  219. - ADC2_CH6, TOUCH6, RTC_GPIO16, MTMS, HSPICLK, HS2_CLK, SD_CLK, EMAC_TXD2
  220. * - 10
  221. - IO12
  222. - I/O
  223. - ADC2_CH5, TOUCH5, RTC_GPIO15, MTDI :ref:`(See 3) <get-started-pico-devkitm-2-pin-notes>`, HSPIQ, HS2_DATA2, SD_DATA2, EMAC_TXD3
  224. * - 11
  225. - IO13
  226. - I/O
  227. - ADC2_CH4, TOUCH4, RTC_GPIO14, MTCK, HSPID, HS2_DATA3, SD_DATA3, EMAC_RX_ER
  228. * - 12
  229. - IO15
  230. - I/O
  231. - ADC2_CH3, TOUCH3, RTC_GPIO13, MTDO, HSPICS0, HS2_CMD, SD_CMD, EMAC_RXD3
  232. * - 13
  233. - IO2
  234. - I/O
  235. - ADC2_CH2, TOUCH2, RTC_GPIO12, HSPIWP, HS2_DATA0, SD_DATA0
  236. * - 14
  237. - IO4
  238. - I/O
  239. - ADC2_CH0, TOUCH0, RTC_GPIO10, HSPIHD, HS2_DATA1, SD_DATA1, EMAC_TX_ER
  240. * - 15
  241. - IO0
  242. - I/O
  243. - ADC2_CH1, TOUCH1, RTC_GPIO11, CLK_OUT1, EMAC_TX_CLK
  244. * - 16
  245. - VDD33 (3V3)
  246. - P
  247. - 3.3V power supply
  248. * - 17
  249. - GND
  250. - P
  251. - Ground
  252. * - 18
  253. - EXT_5V (5V)
  254. - P
  255. - 5V power supply
  256. .. _get-started-pico-devkitm-2-pin-notes:
  257. The following notes give more information about the items in the tables above.
  258. 1. This pin is connected to the pin of the USB bridge chip on the board.
  259. 2. 32.768 kHz crystal oscillator:
  260. a) input
  261. b) output
  262. 3. The operating voltage of ESP32-PICO-DevKitM-2’s embedded SPI flash is 3.3 V. Therefore, the strapping pin MTDI should be pulled down during the module power-on reset. If connected, please make sure that this pin is not held up on reset.
  263. Pin Layout
  264. """"""""""""
  265. .. figure:: ../../../_static/esp32-pico-devkitm-2-pinout.png
  266. :align: center
  267. :scale: 50%
  268. :alt: ESP32-PICO-DevKitM-2 (click to enlarge)
  269. :figclass: align-center
  270. ESP32-PICO-DevKitM-2 Pin Layout (click to enlarge)
  271. Hardware Revision Details
  272. =========================
  273. No previous versions available.
  274. Related Documents
  275. =========================
  276. * `ESP32-PICO-MINI-02 & ESP32-PICO-MINI-1U Datasheet <https://www.espressif.com/sites/default/files/documentation/esp32-pico-mini-02_datasheet_en.pdf>`_ (PDF)
  277. * `ESP Product Selector <https://products.espressif.com/#/product-selector?names=>`_
  278. * `ESP32-PICO-DevKitM-2 Schematic <https://dl.espressif.com/dl/schematics/SCH_ESP32-PICO-DEVKITM-2_V1_0_20200812A.pdf>`_ (PDF)
  279. * `ESP32-PICO-DevKitM-2 PCB Layout <https://dl.espressif.com/dl/schematics/PCB_ESP32-PICO-DevKitM-2_V1.0_20200812.pdf>`_ (PDF)
  280. For other design documentation for the board, please contact us at sales@espressif.com.