Skip to content

Software Setup

Robert Neumann edited this page Jan 24, 2019 · 16 revisions

Arduino Software (tested with 1.8.7 and 1.9.0 beta)

Download and install the arduino software (IDE), found at

ESP8266 support for Arduino IDE

In the Arduino IDE open the preferences dialog and enter the following URL as "Additional Boards Manger URL": Preferences

Go to "Tools" > "Board: " > "Boards Manager ...", search for "esp" and install "esp8266 by ESP8266 Community", version 2.5.0-beta2 (or newer) ( Preferences

Now go to "Tools" > "Board: " and choose your ESP8266 board.
If you aren't sure which board you have, select "LOLIN(WEMOS) D1 R2 & mini".
Set CPU frequency to 80 MHz and Flash size to "4M (1M SPIFFS)", leave upload speed at 115200 (you can try to set it higher, if it doesn't cause connection problems).
Set the "IwIP Variant" to "v2 Lower Memory".
Plug your board into a free USB port on your PC.
Select the detected COM port in the Arduino IDE.

ESP8266 IDE Settings

ESP8266 IDE Settings

Used Libraries

Go to "Sketch" > "Include Library" > "Manage Libraries ..." and install the following libraries by searching for them and installing:

Get gbs-control, Compile and Upload

You should be able to build the software by choosing "Sketch" > "Verify / Compile" (or clicking the tick mark in the tool bar).

Please verify that you have connected the ESP board correctly to your computer via USB and that the correct COM port is chosen.

Now you should be able to upload the compiled sketch to the board via "Sketch" > "Upload" (hit "Ctrl + U" or by clicking the right arrow in the tool bar). This could take a while for the first compilation.

Development Branch

If you want to try out the latest versions, use the development branch instead:

Connecting to your WiFi

The next step is to connect the ESP8266 to your wifi. The project uses the PersWiFiManager library.

  • Start up your ESP8266, the LED on the module should come on

  • The ESP8266 opens up a new WiFi Network with the name "gbscontrol"

  • Connect your PC or Smartphone to the Wifi (default password: 'qqqqqqqq')

  • Open gbscontrol.local in any browser

  • (The web interface is fully usable now. If you don't want to connect to your home network, you can stop here.)

  • Scroll down to the bottom of the page and hit "Connect to WiFi Network"

  • Enter your home network SSID (name) and password

  • The ESP8266 restarts and will be reachable via:

    • IP (have a look at the debug output in the Arduino software)
    • the address "gbscontrol.local" (requires mDNS support from the operating system, sometimes the router provides support)
  • Note1: If the ESP8266 was just flashed, it cannot reset by itself. Please reset it manually.

  • Note2: The ESP8266 remembers this network, so it will always try to connect to this network first (this can be cleared via Arduino IDE). If it can't connect, it will revert to AP mode.

That's it!
Head over to the other Wiki pages if you want further information.

This setup guide has been lifted with permission from @toblum and his nice McLighting project ;)

You can’t perform that action at this time.