Electronics

ESP32 WROOM Module

AED 12.50

1

Description

The ESP32 WROOM Module is a compact and versatile all-in-one module that comes with built-in Wi-Fi and Bluetooth capabilities. It offers seamless wireless connectivity, making it perfect for Internet of Things (IoT) projects, wearables, and mobile devices. With its integrated functionality, the ESP32 WROOM Module simplifies the development process, allowing you to focus on building your applications without worrying about separate Wi-Fi or Bluetooth modules. It provides a convenient and efficient solution for adding wireless communication to your projects, saving you time and effort in the development phase.

 

Package Includes:

  • 1 x ESP32 WROOM Module

 

Features:

  • Wi-Fi Connectivity: The module comes with built-in Wi-Fi support, allowing devices to connect to wireless networks and access the internet.
  • Bluetooth Connectivity: It also integrates Bluetooth technology, enabling seamless communication and data exchange with other Bluetooth-enabled devices.
  • Dual-Core Processor: The ESP32 WROOM Module houses a powerful dual-core processor, offering enhanced processing capabilities for demanding applications.
  • Low Power Consumption: The module includes power-saving features and intelligent power management, making it suitable for battery-powered and energy-efficient devices.
  • Rich Set of I/O Pins: It provides a variety of input/output pins, including analog and digital pins, GPIOs, UART, SPI, I2C, and more, facilitating connectivity with external sensors, actuators, and other peripherals.
  • Secure Communication: The module supports encryption and authentication protocols, ensuring secure communication over Wi-Fi and Bluetooth connections.
  • Programmable with Arduino IDE: It can be easily programmed using the popular Arduino Integrated Development Environment (IDE), enabling rapid prototyping and development.
  • OTA (Over-the-Air) Updates: The ESP32 WROOM Module supports OTA updates, allowing firmware updates to be applied remotely, saving time and effort in device maintenance.
  • Libraries and Development Support: It benefits from a vast ecosystem of libraries, examples, and community support, making it easier to develop applications and troubleshoot any issues.
  • Compact Size: The module has a small form factor, making it suitable for space-constrained projects and devices.

 

Description:

The ESP32 WROOM Module is a compact and versatile all-in-one module designed by Espressif Systems. It boasts built-in Wi-Fi and Bluetooth capabilities, providing seamless wireless connectivity for a wide range of applications. With its dual-core processor, the module offers enhanced processing power, enabling it to handle demanding tasks with ease. One of the notable features of the ESP32 WROOM Module is its low power consumption, making it an excellent choice for battery-powered and energy-efficient devices. Its intelligent power management system optimizes energy usage, extending the device's operational life. Equipped with a rich set of I/O pins, including analog and digital pins, GPIOs, UART, SPI, and I2C, the module offers extensive flexibility for connecting and interfacing with external sensors, actuators, and other peripherals. Security is a top priority with the ESP32 WROOM Module, as it supports encryption and authentication protocols, ensuring secure communication over Wi-Fi and Bluetooth connections. This is particularly crucial in IoT applications where data privacy and integrity are paramount. The module can be easily programmed using the popular Arduino Integrated Development Environment (IDE), providing a familiar and user-friendly platform for rapid prototyping and development. It also supports Over-the-Air (OTA) updates, allowing firmware updates to be applied remotely, simplifying device maintenance and ensuring the latest features and bug fixes are readily available. the ESP32 WROOM Module benefits from a vast ecosystem of libraries, examples, and a supportive community. This wealth of resources streamlines development and troubleshooting processes, empowering developers to unleash their creativity and bring innovative projects to life.

 

Principle of Work:

The ESP32 WROOM Module is based on the ESP32 system-on-a-chip (SoC), which comprises a microcontroller unit (MCU) with integrated Wi-Fi and Bluetooth connectivity. The module houses the ESP32 SoC, along with additional components such as power regulators, crystal oscillators, and capacitors. Internally, the ESP32 SoC consists of two high-performance Tensilica LX6 CPU cores, clocked at up to 240 MHz, which can handle a wide range of tasks. It also includes a rich set of peripherals, including digital and analog I/O pins, UART, SPI, I2C, and more, enabling seamless integration with various external devices.

To make the ESP32 WROOM Module programmable with the Arduino IDE, you need a few components:

  1. Computer: A computer running the Arduino IDE software. The Arduino IDE is available for Windows, macOS, and Linux.
  2. USB Cable: A USB cable to connect the ESP32 WROOM Module to your computer. The module typically has a micro USB port for this purpose.
  3. Arduino Core for ESP32: You need to install the Arduino core for ESP32 in the Arduino IDE. This core provides the necessary software libraries and tools to program the ESP32 module.
  4. Driver Installation (if required): In some cases, you may need to install specific drivers for the USB-to-serial converter chip on the ESP32 module. This depends on the specific module and the operating system you are using.

Once you have the above components, you can connect the ESP32 WROOM Module to your computer using the USB cable. Select the appropriate board and port settings in the Arduino IDE, and you're ready to start programming the module. With the Arduino IDE, you can write code using a simplified version of C/C++ programming language, leveraging the extensive set of libraries available for the ESP32. These libraries provide functions and abstractions that simplify complex tasks such as Wi-Fi communication, Bluetooth connectivity, sensor interfacing, and more. After writing your code, you can compile it in the Arduino IDE and upload it directly to the ESP32 WROOM Module. The module's bootloader allows it to accept new firmware over the USB connection, enabling easy and convenient programming.

 

Pinout of the Board:

 

 

Applications:

  • IoT devices: The ESP32 WROOM Module is a popular choice for IoT devices because it is small, low-power, and has a built-in WiFi module. This makes it ideal for devices that need to be connected to the internet, such as smart home devices, wearables, and industrial sensors.
  • Home automation: The ESP32 WROOM Module can be used to control a variety of home automation devices, such as lights, thermostats, and door locks. It can also be used to monitor the status of these devices and send alerts if something goes wrong.
  • Wearables: The ESP32 WROOM Module is a good choice for wearable devices because it is small and low-power. It can be used to track fitness data, monitor heart rate, and control music playback.
  • Industrial sensors: The ESP32 WROOM Module can be used to connect to a variety of industrial sensors, such as temperature sensors, pressure sensors, and gas sensors. This data can be used to monitor industrial processes and improve efficiency.
  • Robotics: The ESP32 WROOM Module can be used to control robots and other autonomous devices. It can be used to receive sensor data, control motors, and communicate with other devices.

 

 

Circuit:

 

To program the ESP32 WROOM Module, you can use an FTDI converter. There are two types of FTDI converters: one that only transmits and receives data, and one that also supplies a selectable supply voltage. You can find an FTDI converter on our website. Once you have the FTDI converter, you need to connect it to the ESP32 WROOM Module. The ground pins of the FTDI converter and the ESP32 WROOM Module must be connected together. The TX pin of the FTDI converter must be connected to the RX pin of the ESP32 WROOM Module, and the RX pin of the FTDI converter must be connected to the TX pin of the ESP32 WROOM Module.

Once the FTDI converter is connected to the ESP32 WROOM Module, you can use it to program the ESP32 WROOM Module.

Here is a table that summarizes the connections between the FTDI converter and the ESP32 WROOM Module:

FTDI converter pin ESP32 WROOM Module pin
Ground Ground
TX RX
RX

TX

 

Programming for the first time:

Here are the things you need to program the ESP32 WROOM Module with the Arduino IDE for the first time and on uploading:

  • An ESP32 WROOM Module
  • An FTDI converter
  • A computer with the Arduino IDE installed
  • A USB cable to connect the FTDI converter to the computer

Once you have all of the necessary hardware, you can follow these steps to program the ESP32 WROOM Module:

  1. Install the ESP32 board support package in the Arduino IDE.
  2. Open the Arduino IDE and create a new sketch.
  3. Select the ESP32 WROOM Module from the board list.
  4. Upload the sketch to the ESP32 WROOM Module.

Here are some additional details about each step:

  • To install the ESP32 board support package, go to File > Preferences and enter the following URL in the Additional Boards Manager URLs field: https://raw.githubusercontent.com/espressif/arduino-esp32/master/package_esp32_index.json
  • Then, go to Tools > Board > Board Manager and search for "ESP32". Select the ESP32 board support package and click Instal
  • To create a new sketch, go to File > New. This will create a new blank sketch.

  • To select the ESP32 WROOM Module from the board list, go to Tools > Board and select the ESP32 WROOM Module from the list.

  • To upload the sketch to the ESP32 WROOM Module, click the Upload button. This will upload the sketch to the ESP32 WROOM Module.

And about the buttons:

  • you do not need to connect any button and press on it when programming the ESP32 WROOM Module. The ESP32 WROOM Module has a built-in bootloader that allows you to program it without pressing any buttons.
  • The bootloader is a small piece of software that is stored on the ESP32 WROOM Module. The bootloader allows you to upload new firmware to the ESP32 WROOM Module without having to physically open the module.
  • When you upload a new sketch to the ESP32 WROOM Module, the bootloader will first erase the old firmware and then upload the new firmware. The bootloader will then start the new firmware.
  • If you want to program the ESP32 WROOM Module without using the bootloader, you can do so by pressing the EN button on the module. Pressing the EN button will put the ESP32 WROOM Module into a special mode called download mode. In download mode, you can upload new firmware to the ESP32 WROOM Module using a serial terminal.
  • However, it is not recommended to program the ESP32 WROOM Module in download mode unless you are an experienced user. Programming the ESP32 WROOM Module in download mode can be risky and can damage the module if not done correctly.

 

Code:

This code will blink the built-in LED on the ESP32 WROOM Module at a rate of once per second:

// Import the necessary libraries.
#include "Arduino.h"

// Define the LED pin.
const int ledPin = 2;

// The setup function runs once when the device is powered on.
void setup() {
  // Set the LED pin as an output.
  pinMode(ledPin, OUTPUT);
}

// The loop function runs repeatedly forever.
void loop() {
  // Turn the LED on.
  digitalWrite(ledPin, HIGH);
  // Delay for a second.
  delay(1000);
  // Turn the LED off.
  digitalWrite(ledPin, LOW);
  // Delay for a second.
  delay(1000);
}
  • The LED pin is defined as 2 in the code. You can change this to any other GPIO pin that you want to use.
  • To run this code, you need to upload it to the ESP32 WROOM Module using the Arduino IDE. Once the code has been uploaded, the LED will start blinking.

 

Technical Details:

  • CPU and Memory
    • Xtensa® Dual-Core 32-bit LX6 microprocessors, up to 600 DMIPS
    • 448 KByte ROM
    • 520 KByte SRAM
    • 16 KByte SRAM in RTC
    • QSPI Flash/SRAM, up to 4 x 16 MBytes
    • Power supply: 2.2 V to 3.6 V
  • Clocks and Timers
    • Internal 8 MHz oscillator with calibration
    • Internal RC oscillator with calibration
    • External 2 MHz to 40 MHz crystal oscillator
    • External 32 kHz crystal oscillator for RTC with calibration
    • Two timer groups, including 2 x 64-bit timers and 1 x main watchdog in each group
    • RTC timer with sub-second accuracy
    • RTC watchdog
  • Advanced Peripheral Interfaces
    • 12-bit SAR ADC up to 18 channels
    • 2 × 8-bit D/A converters
    • 10 × touch sensors
    • Temperature sensor
    • 4 × SPI
    • 2 × I2S
    • 2 × I2C
    • 3 × UART
    • 1 host (SD/eMMC/SDIO)
    • 1 slave (SDIO/SPI)
    • Ethernet MAC interface with dedicated DMA and IEEE 1588 support
    • CAN 2.0
    • IR (TX/RX)
    • Motor PWM
    • LED PWM up to 16 channels
    • Hall sensor
    • Ultra low-power analog pre-amplifier
  • Operating Temperature Range: -40 ° C to + 85 ° C
  • Package size: 18mm x 25mm x 3mm

 

 

Resources:

 

Comparisons:

The ESP32-S2and the ESP32 WROOM are both an ESP wifi Bluetooth module which both are very similar this is a comparison of the ESP32 WROOM Module and the ESP32-S2:

Feature ESP32 WROOM Module ESP32-S2
Processor Xtensa® Dual-Core 32-bit LX6 Xtensa® Dual-Core 32-bit LX7
Clock speed 160 MHz 240 MHz
RAM 520 KB 800 KB
Flash 4 MB 8 MB
WiFi 802.11 b/g/n/ac 802.11 b/g/n/ac
Bluetooth 4.2 5.0
Power consumption 80 mW (active) 50 mW (active)
Dimensions 26 x 15 mm 26 x 15 mm

As you can see, the ESP32-S2 has a number of improvements over the ESP32 WROOM Module, including a faster processor, more RAM, and more flash memory. The ESP32-S2 also has a lower power consumption, which makes it a good choice for battery-powered applications. the ESP32 WROOM Module is still a good choice for many applications. It is less expensive than the ESP32-S2 and it is still very powerful. The best module for you will depend on your specific needs and application. If you need the fastest processor, the most RAM, or the lowest power consumption, then the ESP32-S2 is the better choice. If you are on a budget or you do not need the latest and greatest features, then the ESP32 WROOM Module is a good option.