WiFi

How to connect and configure an ESP8266 WiFi module (Work In progress)

We use the Arduino software combined with this software: https://github.com/luc-github/ESP8266

You need:

  • Arduino software (free download)
  • An ESP8266 WiFi module (4M flash recommended 12E or 12F)
  • An 3.3V FTDI USB to serial adapter for programming

1. Download and install the Arduino IDE software

2. Add ESP8266 support

  1. Install the Arduino software
  2. Visit this page: http://www.agcross.com/2015/09/the-esp8266-wifi-chip-part-3-flashing-custom-firmware/
  3. Scroll down to: FLASHING WITH THE ARDUINO IDE, and follow the steps to add esp8266 support

2. Add support for uploading files to the file system

  1. Visit this page:http://arduino.esp8266.com/versions/1.6.5-1160-gef26c5f/doc/reference.html#file-system
  2. Scroll down to: Uploading files to file system, and follow the step to add the ESP8266FS tool

Now you have the tools to flash the ESP8266 and upload the needed files

3. Download the software from git

  1. Visit this page: https://github.com/luc-github/ESP8266/releases/tag/v0.5-beta.1
  2. Download the zip file (Source code zip)
  3. Unzip the folder (remember the location of the unzipped files)

4. Select the correct module and Com port in the Arduino software

  1. Connect the WiFi module to the FTDI adapter (VCC-VCC, GND-GND, TX-RX, RX-TX) and connect the FTDI to your computer (USB)
  2. Start the Arduino software
  3. Select COM port:Tools -> Port -> Select the FTDI Com port
  4. Select board: Tools -> Board -> Select the ESP8266 module (I used NodeMCU 1.0 (ESP 12E module) for the module from ebay that use an ESP 12E)

5. Flash the module and upload the files

  1. Open the software to flash: Click File -> find the unzipped files -> browse to the esp8266 folder and open the esp8266 file
  2. Set your ESP8266 in program mode
  3. Click the upload icon in arduino to start flashing the module
  4. When finished flashing the module, you upload the files by clicking Tools -> ESP8266 Scetch Data Upload (you may have to restart the module, still in program mode before you upload the files)

Now you set the module in normal operation mode and restart it. You should find a new WiFi network named esp8266. If you connect to the new WiFi network, and enter the IP ard. for the module (192.168.0.1) you should get the module´s home screen:

Skjermbilde10

6 Connect to the RADDS controller

WiFi_RADDS

Connect the RX and TX pins on the WiFi module to the RADDS AUX1 TX and RX pins (remember RADDS TX – WiFi RX and RADDS RX – WIFI TX.

If your WiFi module tolerate 5V, connect to the AUX1 +5V and GND pins

If your WiFi module use 3.3V, connect to the 3.3V and GND pins on the RADDS I2C output

WiFi_RADDS_ext

If you use the RADDS Extension board use the serial1 pins on the extension board.

7 Repetier Firmware

Repetier-Firmware configuration tool -> General

Set Bluetooth serial port = Serial 1

Set Baud rate Bluetooth = 115200 ANSI

When yo restart your RADDS, you should find the WiFi module IP in the LCD display, like in this test setup:

TestSetup

The rest of the setup, like connecting the module to your existing WiFi network.. can be done from the module´s web interface (default id/password = admin/admin)

Skjermbilde12

In this sample, the module is connected to the WiFi network named Airport, and HostName = BBOne_RADDS

Skjermbilde13

The system info on the test setup

WiFi modules:

We try to find some WiFi modules that requires less soldering. Have found two promising alternatives that we will test.

s-l500

ESP 12E
Flash size = 4M

From ebay (used when making this guide)

ESP-SMD-Adapter-Board-350x350

Flash size (if using the optional ESP-12F = 4M bytes)

http://www.electrodragon.com/product/esp-12f-esp8266-wifi-board/ 

ESP8266 related sites

 

Find your ESP8266 Flash size

  1. Download ESP8266 core for Arduino https://github.com/esp8266/arduino (use the “Download ZP” function)
  2. Unzip the file
  3. Use the Arduino software (connected to your ESP8266 in flash program mode)
  4. from the files you unzipped – open: Arduino-master\Arduino-master\libraries\esp8266\examples\CheckFlashConfig\CheckFlashConfig.ino
  5. Upload the code to your ESP8266
  6. Set your ESP8266 in operation/UART mode and reset the module
  7. Open the Serial Arduino serial monitor (tools -> Serial monitor)

You should get something like this:
CheckFlash
Telling if the flash size you have selected in the Arduino IDE is the same as the Flash real size. In this sample, I selected an ESP 12-E and 4M flash – the test confirms that this is correct.