ebook: Home Automation Using ESP8266

Instead to continue to investigate the ESP8266 with trial and error technology I decided to purchase Rui’s ebook on “Home Automation Using ESP8266”. It contains on about 100 pages a lot of information, e.g.

  • How to flash and install a new firmware
  • How to blink an LED with NodeMCU
  • How to interact with the ESP8266 GPIOs
  • How to create a web server
  • How to send emails with your ESP8266

I appreciate this activity by Rui. I can recommend this document to you, it saves a lot of time and provides good hints for beginners. The author promised updates of this ebook for customers. Here is the link and additional information

http://randomnerdtutorials.com/home-automation-using-esp8266/

Many decisions to be made

At first you have to make a plan how to explore the ESP8266. Following decisions must be made:

  • Which operating system for tools and development environment is preferred? – It seems there is better support for Linux, but also some tools for Windows 8 are available.
  • Which kind of firmware should be used? There are at least 6 options …
  • Which Development kit should be selected? Again, some options exist…

I decided for Windows in first step, Linux based tools will be tested in second phase. Furthermore, it was fixed that I will start with the development board. The integrated USB-TTL adapter will save some trouble  with connecting all ports as well with the voltage of 3.3V.

Here you can find a list of available firmware: http://forum.sh-hackspace.org.uk/t/list-of-esp8266-firmware/98

The official AT firmware supports AT commands similar to former modem commands. See here for a list of AT commands: https://nurdspace.nl/ESP8266

tI is really a high value expirience to check this firmware. I flashed the recent version from https://github.com/esp8266/esp8266-wiki/tree/master/sdk

Typically a flash tool (esp8266_flasher.exe) is part of the firmware download (zip file). Otherwise use this link: http://bbs.espressif.com/download/file.php?id=189

Becfore flashing you need to install the windows driver CH340 for development board: http://www.arduined.eu/ch340-windows-8-driver-download/

How to send these AT commands to the board?

ESPlorer-panels (picture from ESPlorer homepage)

Here I can recommend the ESPlorer tool from http://esp8266.ru/esplorer/

It provides a command line mode for AT command as well as a button based concept for executing several operations.

Preparation for start of experiments with ESP8266

In this blog I want to share  my findings with Wifi module ESP8266. I have the feeling that this cheap module will become an important enabler for home IoT applications (prices of this chip family starts from 3€).
There are several chip models with different number of breakout pins available (ESP-01 ..ESP-12). For easy beginning I decided to start with a development board providing all interfaces for flashing firmware and application software as well some sensors (DHT-11 temperature, humidity)and actuators (relay, RGB-LED). The ESP8266 can be concidered as complete “system on chip” containing a microprocessor (80MHz), storage and Wifi communication.
I ordered 3 parts from ebay dealers in China:
– The standard ESP8266 ESP-01 module (2,80€)
– A develop board ESP-201 with module ESP-201 (with external antenna) for 13€
– USB-to-TTL adaptor

ESP8266_ESP-01 ESP-201_DevBoard USB_TTL_Adapter
Before receiving the parts I checked for helpful blogs and wikis in the internet for reading technical information:
Blogs for Development board
http://scottsnowden.co.uk/?p=393
http://myesp8266.blogspot.de/2015/03/other-interesting-board-is-this-board.html
http://tech.scargill.net/the-new-esp201-and-dev-board/

Blogs for ESP8266 ESP-201 module
http://smarpl.com/content/esp8266-esp-201-module-first-impressions

Blogs/Wiki for ESP8266 default module
http://www.esp8266.com/index.php (ESP8266 community forum)
http://www.esp8266.com/wiki/doku.php (ESP8266 community wiki)
http://wiki.iteadstudio.com/ESP8266_Serial_WIFI_Module
https://orxor.wordpress.com/2015/01/30/esp8266-intro/  (in German)

Overview about model versions
http://l0l.org.uk/2014/12/esp8266-modules-hardware-guide-gotta-catch-em-all/
https://github.com/esp8266/esp8266-wiki/wiki/Hardware_versions

Due to this huge amount of information it is not necessary to describe more technical details. I want to focus to my findings in first experiments with ESP8266…