Introduction to the ESP32-family microcontrollers
The ESP32 is the successor to the popular ESP8266 development board. It has similar wireless capabilities as the ESP8266, but it also supports a wide range of peripheral devices such as capacitive touch sensors, digital-to-analog converters (DACs), digital signal processors (DSPs), serial ports, and more. This makes it an ideal solution for DIY Internet of Things Projects and Smart Home Projects. The ESP32 is a series of microcontroller chips developed by Espressif. It's often used in devices such as smartwatches and home automation systems. ESP32 is a system on a chip that integrates the following features:- Wi-Fi (2.4 GHz band)
- Bluetooth
- Dual high performance Xtensa® 32-bit LX6 CPU cores
- Ultra Low Power co-processor
- Multiple peripherals
- Compatible with Arduino IDE: You will be pleased to learn that one can program the ESP32 in the Arduino style for those who already know how to program the Arduino board.
- Support for MicroPython: MicroPython firmware, which is a re-implementation of Python 3 intended for microcontrollers and embedded systems, can be used to program the ESP32.
- Rich input/output interface for peripherals: The ESP32 can read data from the outside world and send commands/signals to the outside world with a wide range of input and output peripherals like capacitive touch, ADCs, DACs, UART, SPI, I2C, and PWM.
- Low-cost: An ESP32 can be purchased for as little as €7, making it easily accessible to the general public;
- Low-power: When compared to other microcontrollers, the ESP32 uses very little power and supports low-power mode states like deep sleep to save power; It is based on a 3.3 volt system, compared to 5v TTL on an Arduino.
- Integrated Wi-Fi: The ESP32 is essential for IoT and Home Automation projects because it can easily connect to a Wi-Fi network, to connect to the internet (station mode) or create its own Wi-Fi wireless network (access point mode) so that other devices can connect to it. You can have multiple devices communicating with each other using their Wi-Fi capabilities;
- It utilizes a unique Wi-Fi protocol: the 802.11 LR. This has a huge range compared to other modes, but slow speed. As long as both the soft-AP and the station are connected to an ESP32 device, the 802.11 LR mode can achieve a line of sight range of 1 000 meter! This is a remarkable accomplishment for an out-of-the-box board, while directional antennas and other tricks can push this limit even further. (I have seen a true 1 233,5 meter with the internal antenna and that was not even the end of range.)
- Bluetooth: The ESP32 is useful for a wide range of Internet of Things applications because it supports both Bluetooth classic and Bluetooth Low Energy (BLE).
- Dual-core: The majority of ESP32s have two cores, and they come with two 32-bit LX6 Xtensa microprocessors.