230V WiFi relay with D1 mini and ESP Easy.

ESP Easy is a firmware designed to create devices easily with ESP modules. Here we’ll use a Wemos D1 Mini with a 230V relay shield.

1. Loading firmware

First let’s clone Esptool from Github. Esptool is a A python-based, open source, platform independent, utility to communicate with the ROM bootloader in Espressif ESP8266 & ESP32 chips.

Clone it :

And move to the cloned folder :

Download the last ESP Easy stable firmware from https://www.letscontrolit.com/wiki/index.php/ESPEasy#Loading_firmware and unzip it.

Then plug the D1 Mini and check the dmesg output :

Output should be something like :

Then you are ready to load the firmware to the board :

If everything is going well, output should be something like :

2. Configuration

You sould see a new encrypted network ESP_0. The password is espconfig.

Once connected, all the configuration is web based. Let’s connect our module to our WiFi network.

One connected, you can proceed to main configuration.

From now, we can already use HTTP requests to change states of I/Os :

You can easily write a simple webpage with an ajax request :

Leave a Reply

Your email address will not be published. Required fields are marked *