today I would like to briefly introduce another firmware for the ESP8266 controller: ESP-Easy.
We already know the standard firmware from Espressif with LUA, the AT firmware or also ArduinoCore. ESP Easy is mainly aimed at beginners, but is also suitable for implementing hardware concepts at short notice and is now quite popular in the smart home sector. As out-of-the-box software, many sensors can be tested, read out and then published.
ESP Easy is available in several versions, the current version is called Mega and contains all tools and experimental functions which can however negatively influence the stability. So today I want to show how to compile the firmware yourself and then load it on your controller. We use Platform.IO and choose version 2.0.
How to install and use Platform.IO we have already shown in previous posts.
So we start with the download of the firmware, which is available here:
Download the directory as usual via/with GitHub and unzip it to Documents\PlatformIO\Projects. Then launch VisualStudioCode with PlatformIO and open the project folder:
Then navigate to platformio.ini and comment out the versions you don't need, for our example we use the normal version for 4096k memory:
For simple commenting out you can mark the respective place and open the command palette with the right mouse button:
Then the command palette opens, select "Add line comment" here
Or also "Toggle line comment" and the marked area will be commented out:
Now all entries in the platformio.ini should be commented out except for the two areas shown in the screenshot. Now we are ready to compile, press the check mark in the small blue bar: PlatformIO:Build. If the process aborts with an error:
you can ignore it and just compile it again, the code will run through:
Now you can start the flash process, we use a NodeMCU Amica V2 this time:
Afterwards the controller reboots and is ready for configuration in AP mode, the password for the AP is "configesp".
When you have successfully connected to the network, you can configure your controller. The Config page of the ESP should open automatically. If this is not the case, you can manually navigate to http://192.168.4.1. If you do not get access to the web interface you can restart the controller and connect again, note that the board needs some time to initialize everything at the first start.
Now enter the desired WLAN. When the controller is restarted, it logs into the entered network and can be reached via its DHCP address.
The firmware is quite well documented, there are many tutorials for the different sensors. The data is usually transferred to a web server or sent via MQTT.
The complete documentation can be found here
In a following article we will connect a sensor and implement a temperature alarm with a BME, so it remains exciting...
Until the next post :)