Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

How to Use FireBeetle 2 ESP32-E (N16R2) IoT Board: Examples, Pinouts, and Specs

Image of FireBeetle 2 ESP32-E (N16R2) IoT BoardDesign with FireBeetle 2 ESP32-E (N16R2) IoT Board in Cirkit Designer

Introduction

The FireBeetle 2 ESP32-E (N16R2), manufactured by DFRobot, is a compact and powerful IoT development board designed for wireless applications. It features the ESP32-E microcontroller, which integrates built-in Wi-Fi and Bluetooth capabilities, making it an excellent choice for a wide range of IoT projects. Its low power consumption, small form factor, and versatile connectivity options make it ideal for applications such as smart home devices, wearable electronics, and industrial IoT systems.

Explore Projects Built with FireBeetle 2 ESP32-E (N16R2) IoT Board

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of NUCLEO-F303RE and ESP8266 Based Air Quality Monitoring System with I2C LCD Display and Buzzer Alerts: A project utilizing FireBeetle 2 ESP32-E (N16R2) IoT Board in a practical application
NUCLEO-F303RE and ESP8266 Based Air Quality Monitoring System with I2C LCD Display and Buzzer Alerts

This circuit features a NUCLEO-F303RE microcontroller board interfaced with an ESP8266 ESP-01 WiFi module for wireless connectivity, an MQ-2 gas sensor for detecting combustible gases, a buzzer module for audible alerts, and an LCD display for visual feedback. The microcontroller communicates with the LCD via I2C and with the WiFi module via UART. The buzzer is driven by one of the microcontroller's timers, and the gas sensor's analog output is connected to an ADC pin on the microcontroller for gas concentration measurement.

Open Project in Cirkit Designer
Image of ESP32-Based Environmental Monitoring System with NeoPixel Feedback and I2C Sensor Integration: A project utilizing FireBeetle 2 ESP32-E (N16R2) IoT Board in a practical application
ESP32-Based Environmental Monitoring System with NeoPixel Feedback and I2C Sensor Integration

This circuit features an ESP32 microcontroller as the central processing unit, interfacing with a variety of sensors and peripherals. It includes an MQ-2 gas sensor, a BH1750 light sensor, multiple Adafruit NeoPixel LED sticks, a DHT22 temperature and humidity sensor, an IR transmitter, and piezo sensors. The ESP32 manages an I2C bus connecting the BH1750 and two LCD displays, controls a stepper motor via a driver module, reads analog signals from the MQ-2 sensor, and drives NeoPixel LEDs and the IR transmitter. The circuit appears to be designed for environmental monitoring and response with visual feedback and actuation capabilities.

Open Project in Cirkit Designer
Image of ESP32-Based Multi-Sensor Monitoring System: A project utilizing FireBeetle 2 ESP32-E (N16R2) IoT Board in a practical application
ESP32-Based Multi-Sensor Monitoring System

This circuit features an ESP32 microcontroller connected to various sensors: an MQ-2 gas sensor, a KY-038 sound sensor, a DHT22 temperature and humidity sensor, and an SHT113 flame sensor. The ESP32 reads analog signals from the MQ-2, KY-038, and SHT113 sensors, and digital signals from the MQ-2, KY-038, SHT113, and DHT22 sensors. Additionally, there is a red LED that can be controlled by the ESP32, likely for indicating status or alerts.

Open Project in Cirkit Designer
Image of ESP32-Based Fire Alert System with LCD Display and Buzzer: A project utilizing FireBeetle 2 ESP32-E (N16R2) IoT Board in a practical application
ESP32-Based Fire Alert System with LCD Display and Buzzer

This circuit features an ESP32 microcontroller connected to a flame sensor and a buzzer for fire detection, with an I2C LCD display for user interface. The ESP32 reads the flame sensor's digital output and activates the buzzer as an alarm when a flame is detected. The LCD display shows the system status and alerts, providing a visual indication of fire presence or safety.

Open Project in Cirkit Designer

Common Applications


Technical Specifications

Key Technical Details

Parameter Specification
Microcontroller ESP32-E (dual-core Xtensa LX6 processor)
Clock Speed Up to 240 MHz
Flash Memory 16 MB
SRAM 520 KB
Wireless Connectivity Wi-Fi (802.11 b/g/n), Bluetooth 4.2 (BLE)
Operating Voltage 3.3V
Input Voltage Range 3.3V - 5.5V
GPIO Pins 22 (including ADC, DAC, I2C, SPI, UART, PWM)
ADC Resolution 12-bit
DAC Resolution 8-bit
Power Consumption Ultra-low power (deep sleep current <10 µA)
Dimensions 27 mm x 52 mm
Weight 7.5 g

Pin Configuration and Descriptions

Below is the pinout for the FireBeetle 2 ESP32-E (N16R2). For a detailed pinout diagram, refer to the manufacturer part ID: Pinout Diagram.

Pin Name Pin Number Functionality
VIN 1 Power input (3.3V - 5.5V)
GND 2, 3 Ground
3V3 4 3.3V output for powering external components
GPIO0 5 General-purpose I/O, boot mode selection
GPIO1 6 UART TX (default), general-purpose I/O
GPIO2 7 General-purpose I/O, ADC, PWM
GPIO3 8 UART RX (default), general-purpose I/O
GPIO4 9 General-purpose I/O, ADC, PWM
GPIO5 10 General-purpose I/O, ADC, PWM
GPIO12 11 General-purpose I/O, ADC, PWM
GPIO13 12 General-purpose I/O, ADC, PWM
GPIO14 13 General-purpose I/O, ADC, PWM
GPIO15 14 General-purpose I/O, ADC, PWM
GPIO16 15 General-purpose I/O, ADC, PWM
GPIO17 16 General-purpose I/O, ADC, PWM
GPIO18 17 SPI SCK, general-purpose I/O
GPIO19 18 SPI MISO, general-purpose I/O
GPIO21 19 I2C SDA, general-purpose I/O
GPIO22 20 I2C SCL, general-purpose I/O
GPIO23 21 SPI MOSI, general-purpose I/O
EN 22 Enable pin (active high)

Usage Instructions

How to Use the FireBeetle 2 ESP32-E in a Circuit

  1. Powering the Board:

    • Connect the VIN pin to a power source (3.3V - 5.5V) or use the onboard USB-C connector for power and programming.
    • Ensure the GND pin is connected to the ground of your circuit.
  2. Programming the Board:

    • Install the Arduino IDE and add the ESP32 board package via the Board Manager.
    • Select "FireBeetle-ESP32" as the board type in the Arduino IDE.
    • Connect the board to your computer using a USB-C cable and upload your code.
  3. Connecting Peripherals:

    • Use the GPIO pins to connect sensors, actuators, or other peripherals.
    • For I2C devices, connect SDA to GPIO21 and SCL to GPIO22.
    • For SPI devices, use GPIO18 (SCK), GPIO19 (MISO), and GPIO23 (MOSI).
  4. Wireless Connectivity:

    • Use the built-in Wi-Fi and Bluetooth capabilities for wireless communication.
    • Configure the Wi-Fi or Bluetooth settings in your code as needed.

Important Considerations and Best Practices

Example Code for Arduino UNO Integration

Below is an example of using the FireBeetle 2 ESP32-E to connect to a Wi-Fi network and send data to a server:

#include <WiFi.h>

// Replace with your network credentials
const char* ssid = "Your_SSID";
const char* password = "Your_PASSWORD";

void setup() {
  Serial.begin(115200); // Initialize serial communication
  delay(1000);

  // Connect to Wi-Fi
  Serial.print("Connecting to Wi-Fi");
  WiFi.begin(ssid, password);
  while (WiFi.status() != WL_CONNECTED) {
    delay(500);
    Serial.print(".");
  }
  Serial.println("\nConnected to Wi-Fi");
}

void loop() {
  // Example: Print the IP address
  Serial.print("IP Address: ");
  Serial.println(WiFi.localIP());
  delay(5000); // Wait 5 seconds before repeating
}

Troubleshooting and FAQs

Common Issues and Solutions

  1. Board Not Detected by Arduino IDE:

    • Ensure the correct board type ("FireBeetle-ESP32") is selected in the Arduino IDE.
    • Install the necessary USB drivers for the FireBeetle 2 ESP32-E.
  2. Wi-Fi Connection Fails:

    • Double-check the SSID and password in your code.
    • Ensure the Wi-Fi network is operational and within range.
  3. GPIO Pin Not Working:

    • Verify that the pin is not being used for another function (e.g., ADC, PWM).
    • Check for short circuits or incorrect wiring.
  4. High Power Consumption:

    • Use deep sleep mode to reduce power consumption in battery-powered applications.
    • Disconnect unused peripherals to minimize current draw.

FAQs


This concludes the documentation for the FireBeetle 2 ESP32-E (N16R2) IoT board. For additional resources, visit the DFRobot official website.