Electronics Posts

ESP8266: Sming Framework with Eclipse on Arch Linux

Sming Framework with Eclipse

Sming Framework can be used from command line but it can also be configured to work with an integrated development environment (IDE). Before proceeding to setup Eclipse first configure Sming Framework on Arch Linux.

ESP8266: Sming Framework on Arch Linux

Sming Framework logo

Sming is an open source Framework for ESP8266 Wi-Fi Module. It simplifies development my allowing advanced features to be implemented with trivial amount of code compared to low level programming. Sming and Eclipse IDE can also be used to write, compile and flash Sming projects instead of using command line tools.

ESP8266: Send & Receive Data

Send & Receive Data with ESP8266 Wi-Fi Module

ESP8266 Wi-Fi module can be configured as a Station / Client or an Access Point. Once it the ESP8266 module is configured in either mode or both mode simultaneously it can be used to communicate with other Access Points or Clients. ESP8266 module can handle multiple connections if configured and send / receive data.

ESP8266: Configure as a Station / Client

Wire & configure ESP8266 07 Wi-Fi Module

The ESP8266 Wi-Fi module can function as a Station / Client which allows other Access Points (APs) to connect to it. Station (STA) mode is useful when the module will only send / push data to another device as opposed to receiving / serving data. Prior to setting up the module as a Station, wire & configure ESP8266 module. It is also possible to configure ESP8266 module as an Access Point or both AP and STA modes simultaneously.

ESP8266: Configure as an Access Point

Wire & configure ESP8266 ESP07 Wi-Fi Module

The ESP8266 Wi-Fi module can function as an Access Point allowing other Stations / Clients to connect to it like they would to any router. Prior to setting up the module for use wire & configure ESP8266 module. Besides configuring the module as an Access Point it is possible to configure ESP8266 module as a Client / Station or both modes simultaneously.

Ambilight Clone with Arduino & WS2801 LED Pixels

Setup Ambilight Clone with Arduino & WS2801 LED Pixels

There are multiple methods and devices to get Ambilight like effects. One of the simplest is to use Arduino with WS2801 or similar lights. Arduino is easy to program with the help of Adafruit library. Boblight Add-On for Kodi (XBMC) along with the Boblight Daemon outputs the required data from the video stream to Arduino via USB or possibly another communication method.

Setup Ambilight with Kodi & Boblight on Arch Linux

Ambilight with Boblight Add-on & Kodi / XBMC on Arch Linux

Boblight uses server-client model and consists of two component parts. The client component captures video or audio input, processes the stream and sends the resulting light data to the server. In this case the client is Kodi Boblight Add-On. Boblight daemon – boblightd runs in the background and translates the light data from the client into commands for the external light controller such a Arduino. Before configuring the software build Ambilight Clone with Arduino & WS2801 LED Pixels.

ESP8266: Wire & Configure

Wire & configure ESP8266-07 Wi-Fi Module

Before attempting to use ESP8266 Module with a microcontroller like Arduino it is a good idea to test and get familiar with it by using a USB-to-Serial converter. With the converter AT commands can be issued directly to the module. Since some functions are not available on older firmware versions it is advisable to flash ESP8266 Wi-Fi module firmware to the latest version before proceeding to configure it.

ESP8266: Flash Module Firmware

Flash / Update ESP8266 Wi-Fi module

Flash ESP8266 module to avail of new features as the factory module will often come with outdated firmware. Some very important features may be missing from older firmware like the ability to set the baud rate. To update the software the module needs to be flashed. This may only be needed once though as the newest firmware adds the cloud updating functionality.