ESP32
mikrokontrolér ESP32
ESP32 | |
---|---|
proc | Tensilica Xtensa LX6 |
arch | 32b |
cores | 2 |
freq | 160 - 240 MHz |
SRAM | 520 kB |
flash | 4 - 16 MB |
op. voltage | 3V3 |
max GPIO curr. | 40mA |
Block Diagram
ESP32 Peripherals Features
- 18 Analog-to-Digital Converter (ADC) channels
- 10 Capacitive sensing GPIOs
- 3 UART interfaces
- 3 SPI interfaces
- 2 I2C interfaces
- 16 PWM output channels
- 2 Digital-to-Analog Converters (DAC)
- 2 I2S interfaces
GPIO Pins
Mikrokontrolér ESP32 Wroom32 DevKit má spolu 25 GPIO pinov, pričom niekoľko z nich sú len vstupné piny.
Input Only Pins
- GPIO 34
- GPIO 35
- GPIO 36
- GPIO 39
Nie všetky piny majú na vstupe Pull-Up rezistor. Not all pins have input pullup, you need external pullup on these pins when using as input pullup.
Pins with internal pull up INPUT_PULLUP
- GPIO14
- GPIO16
- GPIO17
- GPIO18
- GPIO19
- GPIO21
- GPIO22
- GPIO23
Pins without internal pull up
- GPIO13
- GPIO25
- GPIO26
- GPIO27
- GPIO32
- GPIO33
I2C
When using the ESP32 with the Arduino IDE, you should use the ESP32 I2C default pins (supported by the Wire library):
- GPIO 21 (SDA)
- GPIO 22 (SCL)
SPI
By default, the pin mapping for SPI is:
SPI | MOSI | MISO | CLK | CS |
---|---|---|---|---|
VSPI | GPIO 23 | GPIO 19 | GPIO 18 | GPIO 5 |
HSPI | GPIO 13 | GPIO 12 | GPIO 14 | GPIO 15 |
Interrupts
Prerušenia môžu byť nastavené na všetky GPIO piny.
Pinout
Additional Readings
ESP32 Labs - Hands on labs for esp32 microcontroller as promo for conferences.