Table of Contents

lamaPLC: ESP32 / ESP8266

ESP32 / ESP8266 The ESP32 can operate as a standalone system or as a slave device to a host MCU, reducing communication stack overhead on the central application processor. It can interface with other systems to provide Wi-Fi and Bluetooth functionality via its SPI/SDIO or I²C/UART interfaces. The ESP32 / ESP8266 was designed by Espressif Systems and is manufactured by TSMC using their 40 nm process

Different between ESP32 and ESP8266

The main differences are that the ESP32 has significantly more processing power (a dual-core CPU), more memory, and Bluetooth, while the ESP8266 is older, single-core, and Wi-Fi-only. The ESP32 is better suited to complex projects due to its improved performance and peripheral features, while the ESP8266 is a more affordable choice for simple IoT applications.

Types of ESP32 / ESP8266

Type of ESP32CPUMax clock speedConnectivityRAMGPIOADCSecurityPeripherials/Note
ESP8266
Cost-effective and highly integrated Wi-Fi MCU for IoT applications

ESP8266MOD
Lolin D1 Mini
Single-core L106 32-bit RISC160 MHzWi-Fi only160KB SRAM1710-bit ADCTLS encryption, validate certificatesSPI, I2C, and UART, no TWAI
ESP32
Integrated Wi-Fi and Bluetooth connectivity for a wide-range of applications
Dual-core LX6/LX7240 MHzWi-Fi and Bluetooth (BLE)520KB3412-bit ADCSecure Boot, Flash Encryption, HMACEthernet, USB, touch sensors, CAN, and hall sensor, 1 TWAI
ESP32-DOWD
Wide variety of applications, ranging from low-power sensors networks

ESP32-WROOM-32D
Dual-core LX6240 MHzWi-Fi and Bluetooth (BLE)520KB32two 12-bit SAR ADCSecure Boot, Flash EncryptionSD card, UART, SPI, SDIO, I2C, LED PWM, Motor PWM, I2S, IR, pulse counter, GPIO, capacitive touch sensor, ADC, DAC, TWAI® (compatible with ISO 11898-1, i.e., CAN Specification 2.0)
ESP32-C2
Small-sized, cost-effective SoC
Single-core RISC-V120 MHzWi-Fi 2.4 GHz, Bluetooth 5 (LE)272 KB SRAM
576 KB ROM
2012-bit ADCSecure Boot, Flash EncryptionSPI, UART, I2C, LED PWM controller, General DMA controller (GDMA), SAR ADC, no TWAI
ESP32-C3
A cost-effective RISC-V MCU with Wi-Fi and Bluetooth 5 (LE) connectivity for secure IoT applications
Single-core RISC-V160 MHzWi-Fi 2.4 GHz, Bluetooth 5 (LE)400 KB SRAM
384 KB ROM
2212-bit ADCSecure Boot, Flash EncryptionCost-sensitive applications, Pin compatible with ESP8266, 1 TWAI
ESP32-C5
2.4 and 5 GHz dual-band Wi-Fi 6 MCU, along with Bluetooth 5 (LE) and 802.15.4 for secure and reliable connectivity
Single-core 32-bit RISC-V240 MHzWi-Fi 6 2.4/5 GHz, Bluetooth 5 (LE), Thread, Zigbee, Matter, HomeKit, MQTT384KB SRAM
320KB ROM
2912-bit ADCSecure boot, flash, and PSRAM encryption, and cryptographic acceleratorsADC, SPI, UART, I2C, I2S, RMT, PWM, 2 TWAI
ESP32-C6
A low-power and cost-effective 2.4 GHz Wi-Fi 6 + Bluetooth 5 (LE) + Thread/Zigbee SoC
Single-core RISC-V160 MHzWi-Fi 6 2.4 GHz, Bluetooth 5.3 (LE), Thread, Zigbee, Matter512 KB SRAM
320 KB ROM
30 (QFN40) or 22 (QFN32)12-bit ADCRSA-3072 supportMatter Gateways, Thread Border Routers or Zigbee Matter Bridges, SPI, UART, I2C, I2S, RMT, TWAI, PWM, SDIO, Motor Control PWM, 2 TWAI
ESP32-C61
Delivering affordable Wi-Fi 6 connectivity
Single-core RISC-V160 MHzWi-Fi 6 2.4 GHz, Bluetooth 5.3 (LE) + Mesh 1.1, Matter320 KB SRAM
256 KB ROM
30 (QFN40) or 22 (QFN32)12-bit ADCsecure boot, flash and PSRAM encryptionI2C, I2S, SPI, UART, LED PWM, 2 TWAI, ADC, GPIO, LP IO, Timers, and GDMA. Specialized peripherals include the Event Task Matrix (ETM) for automation-triggered tasks and the Analog Voltage Comparator for easy zero-crossing detection
ESP32-H2
Low power and secure connectivity
Single-core 32-bit RISC-V96 MHzWi-Fi 2.4 GHz, Bluetooth 5 (LE), Thread, Zigbee, Matter320KB SRAM
128KB ROM
1912-bit ADCSecure Boot, Flash EncryptionADC, SPI, UART, I2C, I2S, RMT, 1 TWAI, GDMA and LED PWM
ESP32-S2
Secure and Powerful Wi-Fi MCU with Numerous I/O Capabilities

Wemos S2 mini
Single-core Xtensa LX7240 MHzWi-Fi 2.4 GHz, USB OTG320KB SRAM
128KB ROM
432 × 13-bit SAR ADCRSA-3072 supportCamera Interface, fit for lower-power applications like secure IoT
ESP32-S3
Powerful AI acceleration Reliable security features

ESP32-S3 Super Mini
Dual-core Xtensa LX7240 MHzWi-Fi 2.4 GHz, Bluetooth 5 (LE), USB OTG512KB SRAM
384KB ROM
452 × 12-bit SAR ADCRSA-4096 supportCamera Interface, Accelerate machine learning applications
ESP32-P4
High-performing SoC offering extensive IO connectivity, HMI, and security
Dual-core RISC-V400 MHzWi-Fi 6, Bluetooth 5 (LE), USB OTG, ACK, AWS IoT ExpressLink, etc768KB SRAM55-Secure Boot, Flash Encryption, cryptographic accelerators, and TRNG ensureSPI, I2S, I2C, LED PWM, MCPWM, RMT, ADC, UART, 3 TWAI. Additionally, it supports USB OTG 2.0 HS, Ethernet, and SDIO Host 3.0. Parallel display and camera interfaces.

Wemos / Lolin D1 Mini

Wemos D1 MiniWemos D1 MiniWemos D1 Mini

Wemos / Lolin D1 Mini Features

A mini wifi board with 4MB flash based on ESP-8266EX / MOD

Wemos / Lolin D1 Mini Control Pins

- The RST pin is the reset pin. Pulling this pin low resets the microcontroller, which is equivalent to pressing the board's reset button.

- The D1 Mini uses the FLASH pin to decide when to boot into the bootloader. By pulling this pin low during power-up, you can put the D1 Mini into flashing mode, which is required for programming the board with new firmware.

- The WAKE pin wakes the D1 Mini from deep sleep.
Wemos / Lolin D1 Mini control pins

Wemos / Lolin D1 Mini UART

For most ESP32 boards, the UART pin assignment is as follows:

UART PortTXRXRemarks
UART0GPIO 1GPIO 3Used for Serial Monitor and uploading code; Can be assigned to other GPIOs
UART1GPIO 10GPIO 9Must be assigned to other GPIOs
UART2GPIO 17GPIO 16Can be assigned to other GPIOs

About UART1 (GPIO 9 and GPIO 10) – these GPIOs are connected to the ESP32 SPI flash memory, so you can’t use them like that. To use UART1 to communicate with other devices, you must define different pins using the HardwareSerial library.

ESP32-WROOM-32D

ESP32-WROOM-32DESP32-WROOM-32DESP32-WROOM-32D

ESP32-WROOM-32D Features

ESP32-WROOM-32D UART

For most ESP32 boards, the UART pin assignment is as follows:

UART PortTXRXRemarks
UART0GPIO 1GPIO 3Used for Serial Monitor and uploading code; Can be assigned to other GPIOs
UART1GPIO 10GPIO 9Must be assigned to other GPIOs
UART2GPIO 17GPIO 16Can be assigned to other GPIOs

About UART1 (GPIO 9 and GPIO 10) – these GPIOs are connected to the ESP32 SPI flash memory, so you can’t use them like that. To use UART1 to communicate with other devices, you must define different pins using the HardwareSerial library.

Wemos S2 mini

Wemos S2 miniWemos S2 miniWemos S2 mini

Wemos S2 mini features

Wemos S2 mini UART

For most ESP32 boards, the UART pin configuration is as follows:

UART PortTXRXRemarks
UART0GPIO 1GPIO 3Used for Serial Monitor and uploading code; Can be assigned to other GPIOs
UART1GPIO 10GPIO 9Must be assigned to other GPIOs
UART2GPIO 17GPIO 16Can be assigned to other GPIOs

About UART1 (GPIO 9 and GPIO 10) – these GPIOs are connected to the ESP32 SPI flash memory, so you can’t use them for other purposes. To use UART1 to communicate with other devices, you need to assign different pins using the HardwareSerial library.

Wemos S2 mini Arduino

Choose the board LOLIN S2 MINI or LOLIN S2 PICO.

ESP32-S3 Super Mini

ESP32-S3 Super MiniESP32-S3 Super MiniESP32-S3 Super Mini pinout

Problem: When connecting the unit to Windows 10, the USB connection cycles on and off.

Solution: To fix a disconnected ESP32-C3 Super Mini on Windows 10, first try a manual boot mode: press and hold the boot button, then press and release the reset button, and finally release the boot button.

It includes both RST (reset) and BOOT buttons. The BOOT button puts the board into bootloader mode for uploading code, while the RST button resets the board—useful for restarting and running newly uploaded code.

ESP32-S3 Features

ESP32-S3 UART

Using an ESP32-S3, the UART assignment is completely different from other ESP modules. The following table shows the default RX and TX pins for UART0, UART1, and UART2 on the ESP32-S3:

UART PortTXRXRemarks
UART0GPIO 43GPIO 44Cannot be changed
UART1GPIO 17GPIO 18Can be assigned to other GPIOs
UART2--Assign any pins of your choice

Sources

https://www.espressif.com/en/products/
https://www.wemos.cc/en/latest/tutorials/s2/get_started_with_arduino_s2.html
https://documentation.espressif.com/esp32-s2_datasheet_en.pdf
https://documentation.espressif.com/esp32-wroom-32d_esp32-wroom-32u_datasheet_en.pdf

Communication topics on lamaPLC

PageDateTags
2025/11/10 18:53, , , , , , , , , , , , , , , , , , , , , , ,
2025/05/31 21:56, , , , , , ,
2025/05/31 22:51, , , , , , , ,
2025/11/19 21:52, , , , , , , , , , , , ,
2025/11/20 20:43, , , , , , , ,
2025/05/31 22:58, , , , , , , , , , , , , ,
2024/11/16 20:08, , , , , , , , , , , , , ,
2024/11/16 20:21, , , , , , , , ,
2024/11/16 19:43, , , , , , , , , , , , , ,
2024/11/16 00:16, , , , , ,
2024/11/17 00:26, , , , , , , , , , , , ,
2024/11/15 20:15, , , , , , , , , , ,
2025/09/23 21:03, , , , , , , , ,
2024/11/16 00:46, , , , ,
2025/05/31 22:50, , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
2025/09/23 19:25, , , , , ,
2024/11/15 20:18, , , , , , , , , , ,
2024/11/15 20:19, , , , , , , , , , ,
2024/11/15 20:21, , , , , , , , , , , ,
2025/11/19 21:42, , , , , , , , ,
2024/11/15 20:28, , , , , , , , , , , , , ,
2025/05/31 22:16, , , , , , ,
2024/11/16 01:26, , , , , , ,
2024/11/15 20:33, , , , , , , , , , , , , , ,
2024/11/15 21:15, , , , , , , ,
2024/11/16 19:09, , , , , , , , ,
2025/05/31 21:52, , , , , , , , , , , , , , , , , ,
2024/11/15 21:51, , , ,
2024/11/15 21:50, , , ,
2024/11/15 21:52, , , , ,
2024/11/17 00:33, , , ,
2024/11/16 20:44, , , , , , , , , ,
2024/11/15 21:58, , , , , , , ,
2025/11/20 21:49, , , , , , , , , , , , , , , , , , , , ,
2024/11/15 22:07, , , , , , , , , , ,
2025/02/11 20:21, , , , ,
2025/11/20 23:07, , , , , , , , , , ,
2024/11/16 18:46, , , , ,
2024/11/16 23:39, , , , , , , , , , , , ,
2024/11/15 23:36, , , , , , , , , , , , , , ,
2024/11/17 21:25, , , , ,
2024/11/17 21:43, , , , , , , , , , , , , , , , , , , , , , ,
2026/02/10 16:04, , , , , , , , , , , , ,
2026/02/09 13:15, , , , , , , , , , , ,
2025/11/18 22:44, , , , ,
2026/02/13 15:19, , , , , , , , , , ,
2026/02/13 21:22, , , , , , , , , ,
2026/02/13 20:41, , , , , , , , , , ,
2026/02/13 23:02, , , , , , , , , , , , ,
2026/02/08 22:23, , , , , , , ,
2025/10/09 20:52, , , , , ,
2025/05/31 21:32, , , , , , , ,
2026/02/09 13:34, , , , , , , , , , , , , ,
2025/11/21 23:07, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
2023/07/01 15:29, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
2026/02/11 18:09, , , , , , , , ,
2026/02/09 13:55, , , , , , , , , , , , , , , ,
2026/02/09 13:39, , , , , , , , , , , , , , , , , , , , , , , , ,
2026/02/15 23:15, , , , , , , , , , ,
2026/02/11 19:34, , , , , , , , , , ,
2024/11/15 20:17, , , , , , , , , , , , , , ,
2026/02/11 21:07, , , , , , , , , ,
2026/02/11 19:25, , , , ,
2026/02/12 19:34, , , , , , ,
2025/12/04 00:34, , , , , , , ,
2026/02/15 17:49, , , , , , , , , , , , , , , , , ,
2026/02/10 18:52, , , , , , , ,
2024/11/15 20:39, , , , , , , , ,
2025/12/10 17:08, , , , , , ,
2024/11/18 17:55, , , , , , , ,
2023/06/24 22:42, , , , , , , , , ,
2023/06/19 21:24, , , , , , , , , , , , ,
2026/02/08 23:27, , , , , , , , , , , , , , , ,
2026/02/09 13:48, , , , , , , , , , , , , ,
2025/11/22 18:48, , , , , ,
2026/02/15 21:28, , , , , , , , , , , , , , , , , , , , , , , ,
2026/02/09 16:09, , , , , , , , , , , , ,
2025/11/20 21:41, , , , , , ,
2023/06/24 22:43, , , , , ,
2026/02/09 15:44, , , , , , , , , , ,
2026/02/09 15:56, , , , , , , ,
2024/08/18 14:52, , , , , , ,
2026/02/11 19:09, , , , , , , , ,
2026/02/09 13:04, , , , , ,
2025/11/13 22:59, , , , , , , , , , , , , , , ,
2023/06/17 19:43, , , , ,
2023/06/01 11:45, , , , , , ,




This page has been accessed for: Today: 4, Until now: 40