DIY Projects

The firmware ESP Easy Mega arrives on ESP32, test on the Wemos LoLin32 Lite, novelties of the firmware

1 esp easy mega main

The ESP Easy development team has just released a first version of the firmware adapted to the ESP32. In the previous article, we discovered the firmware MicroPython installed by default by Wemos on its new LoLin32 Lite development board. I propose today to install the ESP Easy firmware that has been adapted to work on this board. The 20000 version of ESP Easy Mega is a development version that certainly contains many bugs but the first tests are already very conclusive. At the moment, the firmware seems to work only on the new Wemos LoLin32 Lite. I tried unsuccessfully to install it on a generic Geekcreit ESP32 development board.

What do you need ?

The firmware is available for download on this page. It comes in the form of a ZIP file that contains the following files:

Download and unzip the ESPEasy32 R20000 file. For the moment, you will need a Windows PC to install the firmware. If you are on Linux or macOS, you only need to adapt the call command of the script

esptool.exe --chip esp32 --port COM%comport% --baud 256000 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size detect 0xe000 boot_app0.bin 0x1000 bootloader.bin 0x10000 ESPEasy32_R%build%.bin 0x8000 ESPEasy.ino.partitions.bin 

will become

sudo python --chip esp32 --port /dev/ttyXXX --baud 256000 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size detect 0xe000 boot_app0.bin 0x1000 bootloader.bin 0x10000 ESPEasy32_R%build%.bin 0x8000 ESPEasy.ino.partitions.bin

To learn more about the script, read this previous article.

For the moment the firmware has been validated only on the Wemos LoLin32 Lite. I tried my luck with a Geekcreit development board … without success. The firmware is installed but reboot loop.

Installing the CH341 driver

The LoLin32 features a CH341C Serial to USB converter. It is very likely that the Wemos LoLin32 Lite is not recognized by Windows, macOS or Linux on the hook. Follow this tutorial to install the appropriate drivers for your system.

Once the drivers have been installed, connect the ESP32 board to your PC and open PowerShell or the command prompt and run the mode command to find the COM port to which the board is connected.


Statut du périphérique COM3:
    Baud :            115200
    Parité :          None
    Bits de données : 8
    Bits d’arrêt :    1
    Temporisation :   OFF
    XON/XOFF :        OFF
    Protocole CTS :   OFF
    Protocole DSR :   OFF
    Sensibilité DSR : OFF
    Circuit DTR :     ON
    Circuit RTS :     ON

Statut du périphérique CON:
    Lignes :          9001
    Colonnes :        121
    Vitesse clavier : 31
    Délai clavier :   1
    Page de codes :   850

ESP Easy firmware installation for ESP32

Launch the flashSerial installation script. The command prompt opens. Enter the COM port (here 3) then the version number (here 20000). The installation starts immediately. At the end of the installation, press a key to restart the board.

Comport (example 3, 4, ..)           :3
Build (example 20000, ..)           :20000
Using com port: 4
Using bin file: ESPEasy32_R20000.bin v2.1
Chip is ESP32D0WDQ6 (revision 0)
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 256000
Configuring flash size...
Auto-detected Flash size: 4MB
Compressed 8192 bytes to 47...
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.0 seconds (effective 5957.9 kbit/s)...
Hash of data verified.
Flash params set to 0x022f
Compressed 11072 bytes to 7420...
Wrote 11072 bytes (7420 compressed) at 0x00001000 in 0.3 seconds (effective 285.7 kbit/s)...
Hash of data verified.
Compressed 820960 bytes to 505252...
Wrote 820960 bytes (505252 compressed) at 0x00010000 in 21.0 seconds (effective 312.9 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 122...
Wrote 3072 bytes (122 compressed) at 0x00008000 in 0.0 seconds (effective 1755.4 kbit/s)...
Hash of data verified.

Hard resetting...

To make sure everything is correct, open the serial monitor from the Arduino IDE. You should have a boot report that indicates that the board is started in Access Point (AP) mode with the default IP address

INIT : Booting version: (custom)
INIT : Cold Boot
FS   : Mounting...
INIT : Free RAM:157580
INIT : SPI not enabled
WIFI : AP Mode disabled
WIFI : AP Mode ssid will be ESP_Easy_0 with address
WIFI : Could not connect to AP!
WIFI : AP Mode enabled
OTA  : Arduino OTA enabled on port 8266
WD   : Uptime 0 ConnectFailures 0 FreeMem 96652

Everything works, the board is waiting for a valid WiFi configuration. We find ourselves in known terrain!

Setting up the WiFi connection

Open the Windows WiFi Connection Manager and connect to the ESP_Easy_0 network. The default password is configesp. The configuration window opens. Choose the WiFi network to connect the ESP32 and enter the password. Confirm. The countdown starts.

The board reboots automatically and the IP address is assigned by the router is displayed. Close the window and connect to the LoLin32 Lite from a web browser.

What’s new in ESP Easy Mega

If you have not yet tested ESP Easy Mega (or v2), this is the opportunity to discover what’s new in this new version. We will quickly review the different pages. The first change is aesthetic. ESPEasy Mega gains clarity, the panel access buttons have been replaced by tabs. Black has been replaced by a less aggressive gray.

Main page

The first page with a lot of information was simplified.

ESP Easy ESP Easy Mega

Configuration page (config)

On this page you will find the Main Settings section that was present on the Main page of the v1. Interesting option, it is now possible to force the module to sleep if a connection to the WiFi network fails. This option will avoid draining the battery in case of power failure or WiFi router failure. If you have several projects based on ESP Easy, you can network them and exchange messages (commands, measurements, reports). To do this, assign a Unit Number to each module. We find the number on the summary of the main page.

 ESP Easy ESP Easy Mega

New Controller Page

A new Controller page is appearing. It is now possible to manage up to 3 different controllers. For example, you can communicate with Domoticz, Nodo, OpenHab, PiDome, FHEM, Generic HTTP for Jeedom, for example. At the same time, we will be able to send data to an online server such as Emoncms (for monitoring energy consumption) or ThingSpeak for recording and displaying measurements.

Standalone mode lets the ESP32 run in stand-alone mode. Enable must be checked to enable each controller individually.

Hardware Page

New options have been added. It is now possible to initialize the SPI bus and specify the CS (chip select) pin for SD board readers. As in the first version, it is possible to force the operating mode of each pin of the ESP32 (Default, Input, Output HIGH, Output LOW). Unlike the ESP8266 version, spindle registration is easier. GPIO-4 corresponds to pin 24 of the ESP32. The wiring is much easier!

Device page

It is still possible to manage up to 12 devices with ESP Easy Mega. Cala may seem like a lot for a connected object project, but some Device (Dummy Device) is needed to create rules as we’ve already seen in this tutorial or this one. There are always 3 pages of 4 devices. To move from one page to another, use the arrows in the upper left corner of the table

The configuration page is almost identical to the previous version. The changes are aesthetic and ergonomic. New modules have been added:

Sensors, analog or digital inputs

The novelties are in bold in the following tables

Pulse counter
  • TCR5000
  • BMP085/BMP180  : temperature from -40 to + 85°C, atmospheric pressure from 300 to 1100hPa
  • BME280 : temperature from -40 to + 85°C, humidity from 0 to 100%, atmospheric pressure from 300 to 1100 hPa
  • BMP280 : temperature from -40 to + 85°C, atmospheric pressure from 300 to 1100 hPa
  • MS5611
  • BH1750 : from 0 to 65535 lux, 16 bits.
  • TSL2561 : from 188 μLux to 88000 lux
Temperature and Humidity


ESP8266 analog input
External analog input
Digital inputs
Infrared receiver
  • GP2Y10 : size from 0,8µm. 0.5V for 0.1mg/m3.
Tension and Intensity, I2C INA219 sensor

Be careful to respect the characteristics of your sensor before any connection. You are responsible for any deterioration of your equipment. Caution, handling power is dangerous for your health. Do not make any connections if you do not have the skills

The module is now able to measure voltage, intensity and calculate power. Three measuring ranges are available: 32V / 2A, 32V / 1A, 16V / 0.4A

Actuators, screens

ESP8266 Numerical output : Led, servo, relais
More numerical outputs
  • PCA9685 : I2C, 16 chanels 12 bits
  NeoPixel, 3 modules
  • Basic 
  • Candle
  • Clock 

Page Notifications

A new notification system has been added. It is possible to create 4 different email notifications. The notify command is used to trigger the sending of a notification on an event or a threshold. For example, notification 1 will be sent when the board is started. The notify command accepts two parameters. The number of the notification (1 to 4) then the message (without quotation marks).

on System#Boot do 
   notify 1,system is started

Tools page

The tools page is full of novelties.

ESP Easy now has an entry point that provides a JSON containing the main info on the board as well as the status (or values) of each sensor. It is accessed using the IP address followed by /json, for example Here is an example of JSON generated by ESP Easy Mega

"Build": 20000,
"Unit": 0,
"Uptime": 1,
"Free RAM": 96236
"TaskName": "BME280",
"Temperature": 19.51,
"Humidity": 42.59,
"Pressure": 972.93
"TaskName": "Switch",
"Switch": 0.00

The Filesystem section allows you to list the files stored on the SPIFFS memory. We can now download a file. For example, you can use it to load a CSS style sheet. It is now possible to save the execution log on a microSD board (a player costs less than $3). All that’s missing is a controller that would create a data logger in minutes!

The Rule system is always disabled by default. To activate it, always go to Tools then Advanced and check Rules (end with Submit). It is now possible to create up to 4 Rules. Each Rules can not exceed 2048 characters.


This first version of ESP Easy Mega adapted to ESP32 modules is a real success. During all the tests, I did not encounter any particular problem or crash of the board. It installs in minutes from Windows. Its simple and effective interface is very easy to handle even if you have no concept of programming. The Rules system will help you evolve your projects by adding a little logic. You can easily switch on a lamp (using a relay) with a motion detector. The firmware works perfectly on the Wemos LoLin32 Lite. With its LiPo battery connector and built-in charging system, the ESP32 is now a credible alternative to the ESP8266! Hope the next update will be compatible with all ESP32 boards.

Compatible ESP Easy components specials

Click to rate this post!
[Total: 0 Average: 0]
Exit mobile version