ESP8266

In this chapter, we will install and configure a firmware called ESP-link on an ESP8266 SoC that connects an Arduino Mega2560 to the local WiFi. ESP-link is a small firmware packing features like hosting a WiFi hotspot, fetching date and time over the internet, a web server, MQTT client, REST API support, and an option to relay the serial output of the Arduino to its web console.

This chapter splits into:

  • Mega2560 WiFi: Hardware option 1 - Installing ESP-link on a special board with an Arduino Mega2560 and ESP8266 with 32Mbit (4MB) built-in flash.

  • ESP-01S: Hardware option 2 - Installing ESP-link on an ESP-01S with 8Mbit (1MB) built-in flash

  • ESP-link setup: Configuring ESP-link features

  • Google Sheets logging: Logging option 1 - Store data in Google Sheets using the REST API

  • MQTT: Logging option 2- Store data in a local database hosted by Home Assistant using the MQTT protocol