Advertisement
IGLORENZ

The pins on the CYD ESP32-2432S028R

Jan 10th, 2024
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.68 KB | None | 0 0
  1. # Pins
  2.  
  3. This page talks about the pins on the CYD ESP32-2432S028R.
  4.  
  5. ## What pins are available on the CYD?
  6.  
  7. There are 3 easily accessible GPIO pins
  8.  
  9. |Pin|Location|Note|
  10. |---|---|----|
  11. |IO35|**P3** JST connector|Input only pin, no internal pull-ups available|
  12. |IO22|**P3** and **CN1** JST connector||
  13. |IO27|**CN1** JST connector||
  14.  
  15. If you need more than that, you need to start taking them from something else. An SD Card sniffer like mentioned in the [Add-ons](/ADDONS.md) is probably the next easiest.
  16.  
  17. After that you're probably de-soldering something!
  18.  
  19. ## Broken Out Pins
  20.  
  21. There are three 4P 1.25mm JST connectors on the board
  22.  
  23. ### P3
  24. |Pin|Use|Note|
  25. |---|---|----|
  26. |GND|||
  27. |IO35||Input only pin, no internal pull-ups available|
  28. |IO22||Also on the **CN1** connector|
  29. |IO21||Used for the TFT Backlight, so not really usable|
  30.  
  31. ### CN1
  32. This is a great candidate for I2C devices
  33.  
  34. |Pin|Use|Note|
  35. |---|---|----|
  36. |GND|||
  37. |IO22||Also on **P3** connector|
  38. |IO27|||
  39. |3.3V|||
  40.  
  41. ### P1
  42. |Pin|Use|Note|
  43. |---|---|----|
  44. |VIN|||
  45. |IO1(?)|TX|Maybe possible to use as a GPIO?|
  46. |IO3(?)|RX|Maybe possible to use as a GPIO?|
  47. |GND|||
  48.  
  49.  
  50. ## Buttons
  51.  
  52. The CYD has two buttons, reset and boot.
  53.  
  54. |Pin|Use|Note|
  55. |---|---|----|
  56. |IO0|BOOT|Can be used as an input in sketches|
  57.  
  58. ## Speaker
  59.  
  60. The speaker connector is a 2P 1.25mm JST connector that is connected to the amplifier, so not usable as GPIO at the speaker connector
  61.  
  62. |Pin|Use|Note|
  63. |---|---|----|
  64. |IO26|Connected to amp|`i2s_set_dac_mode(I2S_DAC_CHANNEL_LEFT_EN);`|
  65.  
  66. ## RGB LED
  67.  
  68. If your project requires additional pins to what is available elsewhere, this might be a good candidate to sacrifice.
  69.  
  70. Note: LEDs are "active low", meaning HIGH == off, LOW == on
  71.  
  72. |Pin|Use|Note|
  73. |---|---|----|
  74. |IO4|Red LED||
  75. |IO16|Green LED||
  76. |IO17|Blue LED||
  77.  
  78. ## SD Card
  79. Uses the VSPI
  80. Pin names are predefined in SPI.h
  81.  
  82. |Pin|Use|Note|
  83. |---|---|----|
  84. |IO5|SS||
  85. |IO18|SCK||
  86. |IO19|MISO||
  87. |IO23|MOSI||
  88.  
  89. ## Touch Screen
  90.  
  91. |Pin|Use|Note|
  92. |---|---|----|
  93. |IO25|XPT2046_CLK||
  94. |IO32|XPT2046_MOSI||
  95. |IO33|XPT2046_CS||
  96. |IO36|XPT2046_IRQ||
  97. |IO39|XPT2046_MISO||
  98.  
  99. ## LDR (Light Sensor)
  100.  
  101. |Pin|Use|Note|
  102. |---|---|----|
  103. |IO34|||
  104.  
  105. ## Display
  106. Uses the HSPI
  107.  
  108. |Pin|Use|Note|
  109. |---|---|----|
  110. |IO2|TFT_RS|AKA: TFT_DC|
  111. |IO12|TFT_SDO|AKA: TFT_MISO|
  112. |IO13|TFT_SDI|AKA: TFT_MOSI|
  113. |IO14|TFT_SCK||
  114. |IO15|TFT_CS||
  115. |IO21|TFT_BL|Also on P3 connector, for some reason|
  116.  
  117. ## Test points
  118. |Pad|Use|Note|
  119. |---|---|----|
  120. |S1|GND|near USB-SERIAL|
  121. |S2|3.3v|for ESP32|
  122. |S3|5v|near USB-SERIAL|
  123. |S4|GND|for ESP32|
  124. |S5|3.3v|for TFT|
  125. |JP0 (pad nearest USB socket)|5v|TFT LDO|
  126. |JP0|3.3v|TFT LDO|
  127. |JP3 (pad nearest USB socket)|5v|ESP32 LDO|
  128. |JP3|3.3v|ESP32 LDO|
  129.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement