today I want to tell you briefly another Firmware for the ESP8266 Controller introduce: ESP-Easy.
We already know the standard firmware from Espressif with LUA, the AT-Firmware or Arduino core. ESP Easy is aimed primarily at beginners, but also suitable in order to in the short term, hardware concepts, and is now in the Smart Home sector is pretty popular. As an Out-of-the-Box Software, many Sensors will allow you to test, read, and then publish.
ESP Easy is available in several versions, the current version bears the title Mega and contains all of the Tools and experimental features which may, however, affect the stability negatively. Therefore, I want to show today is how to compile the Firmware yourself, and then to its Controller loads. We use this Platform.IO and opt for Version 2.0
As Platform.IO installed and used we have already shown in previous posts.
We thus start with the Download of the Firmware, this can be found here:
Load the directory as usual, on/with GitHub and extract it to documents\PlatformIO\Projects. Then start visual Studio code with PlatformIO and open the project folder:
Navigate to platformio.ini and comment out the unneeded versions from, for our example, we will use the normal Version for 4096k memory:
For a simple comment you can the respective position mark, and with the right mouse button in the command palette open:
Then open the command palette, select "line comment add"
Or "line comment toggle" and the highlighted area is commented out:
should all entries in the platformio.ini be commented out except the two in the Screenshot visible areas. Now we can Compile already, press in the small blue bar on the tick: PlatformIO:Build. Should the process exit with error:
you can Ignore it and still Compile the Code then runs through:
Now you can use the Flash-start the process, we use this time a NodeMCU Amica V2:
In the connection starts up, the Controller is in AP mode and ready for configuration, the password for the AP is "configesp"
If you successfully connected to the network can have your Controller configured. It should automatically open the Config-page of the ESP. If this is not the case, you can manually navigate to http://192.168.4.1 . You should not have access to the Web Interface, you can start to get the Controller and reconnect, note that the Board needs some time to initialize when you first Start everything.
Now the desired Wi-Fi enter. During the subsequent restart of the controller, this is a Bay in the registered network, and its DHCP-based address.
The Firmware is quite well documented, there are many Tutorials for the different Sensors exist. The data to be transmitted usually to a web server or via MQTT sent.
The complete documentation for it here
In a following post we will have a Sensor connection and a temperature alarm with a BME implement, so it remains exciting...
Until the next post :)