ECE 4180 Team Who


ECE 4180 - Fall 2015

Using Adafruit ESP8266 Huzzah

Using the Adafruit Huzzah to Add Wi-Fi to the mbed LPC1768

ESP8266 Huzzah module from Adafruit.


The ESP8266 is a WiFi SoC that can cost as little as $5 mounted on a PCB. The Huzzah ESP8266 breakout costs $9.95 when purchased from Adafruit. It is a FCC approved ESP8266 module and has a metal cover to reduce RF emissions.

Huzzah schematic
Schematic for the Adafruit ESP8266 Breakout Board.

Information


The datasheet for the ESP8266 Wi-Fi chip can be found here.


Wiring for Adafruit ESP8266 Huzzah

As seen on Using the ESP8266 to add Wi Fi to the mbed LPC1768

The Adafruit Huzzah powers up at 9600 baud with the NodeMCU firmware running Lua. The NodeMCU firmware supports DNS and use of the ESP8266 I/O pins. The Huzzah also has a reset and bootloader pushbutton on board.


Example wiring setup.

Power Information!

The Huzzah draws too much current (5V 500MA max) to use mbed's USB based power supply and will need a second 5V DC power supply.

Huzzahmbed LPC1768External 5V DC supply >=500MA
gndgndgnd
TXRX - p27
RXTX - p28
V+5VDC
RSTp26 (optional)

Lua Interpretter

Each HUZZAH ESP8266 breakout comes pre-programmed with NodeMCU's Lua interpretter. The Lua interpretter runs on the ESP8266 and is used to communicate commands to the ESP8266 wif chip and read out the results over serial. A Lua command tutorial is available.

You can find a tutorial for using Lua and Huzzah over a serial connection at Adafruit - Using NodeMCU Lua


Demos

A Wi Fi access point or hotspot will be needed to use these demos. A PC or Mac can be used to setup a Wi Fi hotspot whe n there is not a Wi Fi access point already setup. Many Windows PCs with just Wi Fi can setup a PC mobile Wi Fi hotspot or hotspot using a Mac or new hotspot setup instructions for Windows 10. This chip can also be a Wi Fi access point, but that feature is not used in the demos here.

ESP8266 NodeMCU Interface

There is an mbed ESP8266 class driver in development for the NodeMCU firmware.

Import libraryESP8266NodeMCUInterface

ESP8266 driver using the NodeMCU interface

Serial Passthrough Program

This mbed serial passthrough program can be used with a terminal application window to experiment with typing in commands. Just hook up power, two serial pins to mbed, and start a terminal application program running at 9600 baud connected to mbed's USB virtual com port (don't hookup reset pin to try this).

Import programSerialPassthrough_LPC1768

Serial pass through program - version for mbed LPC1768 pins 28,27 9600 baud

Simple Get/Post

This demo program can be used to send a simple GET request and POST request as a web server via the Huzzah module.

/media/uploads/jhunter029/12180064_10203899807654463_1006166625_n.jpg
Command line output from demo.

/media/uploads/jhunter029/12170348_10203899796134175_920211574_n.jpg
Simple hello world message hosted on a web server via the demo code.

Import programhuzzah_helloWorld

Hello World demo for the Adafruit ESP8266 Huzzah Wi-Fi module and mbed LPC1768


All wikipages