FireBeetle 2 ESP32-E (N16R2) IoT Microcontroller-DFRobot

1. Introduction

No longer worry about insufficient memory or lack of PSRAM space when using FireBeetle 2 ESP32-E! Now, there is a version of FireBeetle 2 ESP32-E(N16R2) with 16M Flash and 2M PSRAM, offering enhanced memory capacity and operating space.

This product improves memory capacity and operating space, providing better performance when running applications such as LVGL graphics library for interface design and interaction. It is based on Espressif's ESP32-WROOM-32E-N16R2 module, featuring a 32-bit dual-core processor with a clock frequency of up to 240MHz, and supporting WiFi and Bluetooth dual-mode communication. It is highly suitable for IoT scenarios.

In terms of product design, FireBeetle 2 ESP32-E(N16R2) has the following features:

Rich peripheral interfaces

Including 17 digital pins, 11 analog pins, 3 UART interfaces, 1 SPI interface, 1 I2C interface, 1 I2S interface, and 2 DAC interfaces, it can meet various hardware connection requirements.

Dual power supply modes

Supporting USB and external 3.7V lithium battery power supply, it can automatically switch between power sources in dual power supply mode. It also supports USB and external DC charging modes.

Support for multiple programming methods

Including Arduino IDE, ESP-IDF, MicroPython, etc., catering to the programming preferences of different developers.

Compact design, easy to embed

With dimensions of only 25.4mm × 60mm, it has onboard WiFi and Bluetooth antennas and adopts a stamp hole design, making it easy to embed or integrate into PCB prototypes.

Wide range of application scenarios

It is suitable not only for home automation renovation, IoT project prototyping, IoT remote control, remote robot control, but also for projects running LVGL graphics library for interface design or interaction.

Furthermore, this product is one of the low-power IoT development boards in the FireBeetle series. If it does not meet your requirements, you can refer to the FireBeetle Series Selection Guide to choose a more suitable model.

2. Features

3. Specifications

Power Parameters

MCU Parameters

Wireless Parameters

Peripheral Parameters

Other Parameters

4. Board Overview

No. Function Description
USB Interface Program download and power supply, 4.75V-5.5V compatible
Charging Indicator Red LED for indicating charging status: 1. Off when fully charged or not charged; 2. On when charging; 3. Quick flash when powered by USB, and no battery connected.
User Button Controlled by pin IO27/D4
Li-ion Battery Port Support 3.5V-4.2V
Onboard RGB Light WS2812 RGB LED, controlled by pin IO5/D8
Onboard LED LED controlled by pin IO2/D9
Reset Button Press to reset program
Low-power Solder Jumper Pad Designed for low power mode and default to be connected. Slightly cut off the thin wire with a knife to disconnect it. When disconnected, static power consumption can be reduced by 500 μA. The power consumption can be reduced to 13 μA after controlling the maincontroller to enter the sleep mode through the program.
Note: when the pad is disconnected, you can only drive RGB LED light via the USB Power supply.
GDI DFRobot dedicated Display interface. Refer to the GDI part of this page.
ESP32-E Module ESP32-WROOM-32E-N16R2

5. Pinout

Categroy Description
Control FireBeetle enable/reset pins
Touch Pin with capacitive touch function
Analog Analog pin
Port PIN Default physical pin number of the chip, which can be used to directly control the corresponding pin
Arduino IDE In Arduino IDE, the pin numbers have been remapped by FireBeetle, and you can directly use this symbol to control the corresponding pin
RTC PIN FireBeetle 2 ESP32-E supports low power function, and in Deep-sleep mode, only RTC pin keeps working and can be used as a wave-up source. When RTC pin is used as an output pin, it keeps outputting level value when the chip is in Deep-sleep mode, while as an input pin, it can wake up the chip from Deep-sleep.
GND Common ground for all power supplies and logics
Power When powered by 5V-USB, VCC outputs about 4.7V and 3V3 outputs 3.3V; When powered by 4V li-ion battery, VCC outputs about 4V and 3V3 outputs 3.3V(Actual measurement)

FireBeetle 2 ESP32-E(N16R2) has up to 21 physical GPIOs, which are mainly for connecting peripherals like sensors, actuators, etc. Meanwhile, these IO pins can be multiplexed for other functions such as UART, SPI, I2C and so on. The table below provides users with a detailed description of FireBeetle 2 ESP32-E(N16R2) GPIO.

Pin Number Name Function ADC Communication Remark
GPIO 0 0/D5 Used as input or output ADC2_CH1 Occupied when using USB transmission
GPIO 1 1/TXD Used as input or output UART0_TX Occupied when using USB power supply and serial printing
GPIO 2 2/D9 Used as input or output ADC2_CH2 For controlling onboard LED by outputting digital signal
GPIO 3 3/RXD Used as input or output UART0_RX Occupied when using USB power supply and serial printing
GPIO 4 4/D12 Used as input or output ADC2_CH0
GPIO 12 12/D13 Used as input or output ADC2_CH5
GPIO 13 13/D7 Used as input or output ADC2_CH4
GPIO 14 14/D6 Used as input or output ADC2_CH6
GPIO 15 15/A4 Used as input or output ADC2_CH3
GPIO 18 18/SCK Used as input or output SPI_SCK
GPIO 19 19/MISO Used as input or output SPI_MISO
GPIO 21 21/SDA Used as input or output I2C_SDA
GPIO 22 22/SCL Used as input or output I2C_SCL
GPIO 23 23/MOSI Used as input or output SPI_MOSI
GPIO 25 25/D2 Used as input or output ADC2_CH8 DAC_1(Range: 0-255; Output Voltage: 0-3.3V)
GPIO 26 26/D3 Used as input or output ADC2_CH9 DAC_2(Range: 0-255; Output Voltage: 0-3.3V)
GPIO 34 34/A2 Used as input only ADC1_CH6
GPIO 35 35/A3 Used as input only ADC1_CH7
GPIO 36 36/A0 Used as input only
GPIO 39 39/A1 Used as input only

Note:

6. Dimension

7. Getting Started (Use for first time)

7.1 Download Arduino IDE

7.2 Configure Arduino IDE

It is required to install ESP32 board in Arduino IDE for using FireBeetle 2 ESP32-E for the first time.

8. Arduino Tutorials

Note: FireBeetle 2 ESP32-E(N16R2) does not have the IO16/D11 pin available. If this pin is used in the following tutorials, please modify the configuration to use another pin.

The basic tutorials (click here to jump) include tutorials on GPIO, RGB LED, serial communication, capacitive touch sensor, interrupts, I2C, SPI, and GDI.

The advanced tutorials (click here to jump) include tutorials on Deep Sleep mode, SD card, WiFi, Bluetooth, Alibaba Cloud IoT, and IFTTT.

FAQ

  1. Cannot add board link to Arduino IDE?

    A: First off all, make sure the Network connection is in good condition. Hope this post from Arduino helps. If that doesn't work, try replacing the board link from

    https://downloadcd.dfrobot.com.cn/FireBeetle/package_DFRobot_index.json to http://downloadcd.dfrobot.com.cn/FireBeetle/package_DFRobot_index.json and reload it.

  2. When using the SD library, the serial monitor does not show any print output or displays a connection failure after uploading the program.

    A: Press RST button to reset and try again.

  3. The driver is not installed automatically after plugging into the device?

    A: FireBeetle 2 ESP32-E(N16R2) uses the CH340 serial chip, which can be used without installing a driver in most devices. If you find that the driver is not automatically installed when you plug in the device, you can manually install it yourself:

For any other questions, advice or cool ideas to share, please visit the DFRobot Forum.

More Documents