Skip to main content

The Edge Devices - Sonoff, ESP8266 and Tasmota

Sonoff, ESP8266 and Tasmota, how are these 3 components related? This can be viewed as a computer where Sonoff is the computer, ESP8266 is the CPU and Tasmota is the Operating System.

Sonoff is one of many companies in China which manufactures smart home WIFI connected devices such as switches, plugs and lights. Their devices are very popular among DIY smart home builders because they make it convenient to flash custom firmware. I have bought a few of such devices, Basic SwitchRF-Wifi SwitchWall socket and Light Switch. This can be easily found on Aliexpress, Taobao and Banggood, Videos and articles on how to modify to custom firmware can be found on Youtube.

ESP8266 is one of the amazing makers modules that come out after Arduino. Espressif has make the ESP Microcontroller programmable using the Arduino IDE. The library has the entire TCP stack built in making it possible to be programmed as a mini web server, tcp/udp server/client. There a complete library available which make this task a lot easier.

Tasmota is an open source project created by arendst. The software that allowed Sonoff hardware and ESP8266 based modules to have unlimited interfacing capabilities using minimal programming effort. It has OTA capability, MQTT connectivity and a web interface to configure the module. Kudos to him to be able to squeeze so much functionalities into a 1 MBits flash, that is 128kb of flash.


Comments

Popular posts from this blog

Xiaomi Mi Flora Chinese and International version comparison

Xiaomi Miflora sensor allows monitoring of the surrounding environment of the plant. It can monitor temperature, soil moisture, conductivity (acidity of the soil), ambience light. There are 2 versions of the sensor, international and Chinese version. Realistically, I cannot see the difference between the 2 versions. The left-hand side is the Chinese version and the right is the international version. Other than the packaging, the main difference is the price of the sensor. The International version cost 2x more. In other forums, there are discussions that the Chinese version cannot connect to the MiHome App. I have set my MiHome app to connect to China server and it is able to register the sensor correctly. For my usage, I will be connecting to Openhab to monitor the plants andusing  Thomas Dietrich MiFlora mqtt daemon  as the bridge between Openhab and the sensor. The International version is detected as Flower care and the firmware version is 3.1.9 wh...

Using ESP-Link transparent bridge (ESP-01 and Arduino Pro Mini)

Recently stumbled across an interesting open source project ESP-Link . Its main purpose is to network-enable a non-network microcontroller (MCU) such as Arduino Uno, Pro mini or Nano using ESP8266. The author termed it as "Transparent Bridge". The ESP and MCU  communicate via the serial link and there is a companion Arduino library EL-Client  for the MCU to connect up the network using MQTT, REST, TCP and UDP. Setup I have put together an ESP-01 and an Arduino Pro Mini for this experiment. I have chosen a 3.3 version Pro mini so that I do not need to do any voltage level shifting between the I/O pins. In order to have a stable voltage source, the ESP8266 is powered by Pro Mini and the Pro Mini "RAW" pin is connected to a 5v USB power source. The RAW pin can take voltage up to 12V. The reset pin of Pro Mini is connected to GPIO 0 of ESP-01. This enables the ESP-01 to reset the Pro Mini.   I have linked up an APDS 9960 sensor to it and periodically se...