ESP32 WIFI Connection Guide
Using ESP32, the most commonly used feature is its WIFI functionality. esptutorial (esptutorial.com) shares how to connect ESP32 to WIFI (join a WIFI access point/wireless router), and after a successful connection, obtain the IP address and check the WIFI strength.
Program HighlightsThe steps to connect ESP32 to WIFI are roughly as follows:
First, use WiFi.mode() to configure the ESP32 WIFI mode. Note that in most programs, the WIFI mode is set first, so it is defined as a priority. H ...
ESP32 Module Pinout
ESP32 Module Pinout
ESP32 Development Board Pinout
Important to note upfront, it is not recommended to use the following pins when using the ESP32, as they may cause various unsolvable issues in your project.
Pins Not Recommended or Restricted for UseIt is not recommended to use Strapping pins, SPI flash pins, and input-only pins.
Strapping PinsGPIO 0 GPIO 2 GPIO 4 GPIO 5 (must be high during startup) GPIO 12 (must be low during startup) GPIO 15 (must be high during startup)
Note:
When using ext ...
ESP32 Data Verification Techniques in Serial Communication A Hands-On Guide to Checksum and BCC Methods
esptutorial (esptutorial.com) introduces some data verification methods used in serial communication or communication protocols to ensure that the received data is complete and correct. Common methods include checksum and Block Check Character (BCC).
ChecksumChecksum is used in data processing and data communication to verify the sum of a set of data items. It is usually represented in hexadecimal. If the checksum value exceeds hexadecimal FF, which is 255, its complement is required as the ch ...
ESP32 uses a level shifting module to convert 3.3V to 5V
ESP32 is a widely used WiFi + Bluetooth microcontroller, operating at 3.3V. The operating voltages for sensors vary, with many sensors requiring 5V. Directly connecting a 5V sensor to the ESP32’s I/O ports can result in excessive voltage, which may damage the ESP32.
Conversely,the ESP32’s pins can only handle a maximum voltage of 3.3V, which is inadequate for distinguishing between high and low signal levels in communication. For some sensors, a voltage above 3.7V is necessary to be recogni ...
ESP32 MAC address read and setting
Obtaining and setting the MAC address of ESP32/ESP8266First, Lingshun Lab (lingshunlab.com) introduces how to use Arduino IDE programming to obtain and set (modify) the MAC address of ESP32/ESP8266.
WiFi.macAddress()Usage 1: WiFi.macAddress()In obtaining the MAC address, the WiFi.macAddress() function is mainly used
In fact, the macAddress method calls the esp_wifi_get_mac function, and you can view relevant information. Before obtaining the MAC address, we do not need to connect to an ...
What is ESP? or ESP8266? or ESP32?
What is ESP?In the world of circuit development boards, ESP generally refers to a series of WiFi and Bluetooth modules and chips produced by Espressif Systems, with ESP8266 and ESP32 being the most famous. These modules are widely used in Internet of Things (IoT) devices, favored for their low cost, ease of use, and powerful capabilities.
However, the official recommendation now is to not use ESP8266 for product development, but to upgrade to ESP32-C2 instead. ESP32-C2 has a smaller size and str ...