Programming Blog

Jeremy Morgan

Mostly Coherent Ramblings of a Silicon Forest Software Developer

Setting Up the Adafruit Huzzah ESP8266 Breakout

Recently I showed a friend of mine some of the projects I’ve working on with Arduino and Wifi, and he introduced me to the ESP8266 chip. I found them all over the internet ranging from $1.50 US to $20, with a variety of configurations and manufacturers. I decided to go with a company I trust, Adafruit Industries, and see what their offering is like.

Full disclosure: I was not paid or compensated by Adafruit, I purchased this product. You can grab one for $9.95 here.


With Adafruit products you can expect a few things:

  • A good design
  • Software for devices
  • Lots of instructions
  • Soldering

As I’ve said before I think soldering components is a good thing, even for beginners. It gives you more freedom with how you set up your boards, and it forces you to get good at soldering. This kit comes to you looking like this:

Adafruit Huzzah ESP8266

Its a board, with some pins (extras) and that’s it. I generally like to place them in the breadboard when soldering to keep everything straight. Some have warned against this because you might damage your breadboard. If you are getting the pins that hot or slopping that much solder you’re doing it wrong. Practice on some old electronic stuff!

Adafruit Huzzah ESP8266

In a few minutes you should have something that looks like this:

Adafruit Huzzah ESP8266

It’s ready to program!

Setting up the Software

I should note there are a few ways to connect to this device to program it. I chose the easy way, and got a FTDI Serial USB cable to do this. I figure it won’t be the last time I program a serial device, and I freely admit I am NOT an electronic engineer so this route worked well for me.

The first thing I thought I’d do, is the “hello world” of electronics and blink an LED.

Adafruit Huzzah ESP8266

To get the software you need, head on over to this GitHub repo and download the .zip file and save it in your libraries folder.

Start Arduino and open Preferences window.

Adafruit Huzzah ESP8266

Enter into Additional Board Manager URLs field. You can add multiple URLs, separating them with commas. Click OK.

Open Boards Manager from Tools > Board menu and install ESP8266 platform (and don’t forget to select your ESP8266 board from Tools > Board menu after installation).

Adafruit Huzzah ESP8266

Adafruit Huzzah ESP8266

Note, you may need to change your port also:

Adafruit Huzzah ESP8266

Write the Code

The code to blink an LED is super simple. Create in the already familiar Arduino IDE:

Adafruit Huzzah ESP8266

Here’s the actual code:

void setup() {
  // initialize digital pin 14 as an output.
  pinMode(14, OUTPUT);

// the loop function runs over and over again forever
void loop() {
  digitalWrite(14, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);              // wait for a second
  digitalWrite(14, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);              // wait for a second

In order to push the code to the ESP8266, you must hold down GPIO0 then press and release reset:

Adafruit Huzzah ESP8266

Once you see the red light dim, it’s ready to flash.

Adafruit Huzzah ESP8266

Once complete, you’ll have a blinking LED!

Adafruit Huzzah ESP8266

Playing with Sensors

I decided to get a little more creative and hook a couple sensors up to this. I am not going to go into great detail, if you want to do this head over to this repo and get code for turning your ESP8266 into a home temperature tracker. But it was super easy to set up.

Adafruit Huzzah ESP8266

Using the Adafruit DHT Libraries and some code from the IoT home temp repo I was able to get it running in minutes. Very easy!

I even ended up sending the data to Sparkfun, you can see the live feed here –> (it may go down at any time).


I really enjoyed the CC3000 Arduino Wifi breakout and would still use it if I needed additional data pins. With the ESP2866 product I have a much smaller footprint, it doesn’t even require an Arduino, and it is super easy to set up. Here’s how to know if you should use an ESP2866:

  • You don’t need a full OS
  • You have a few sensors
  • You want to simply grab data and push it

This is where the ESP8266 really shines. It’s dead simple and does one thing and does it well. I can’t wait to start building more projects with this, and at $10 you really should too.

Like my IoT projects? Sign up here to be added to my IoT newsletter.

Failed Request Tracing With IIS

A great tool I’ve discovered recently is the Failed Request Tracing Tool is IIS. If you’re building an ASP.Net application and having issues with requests it’s a fantastic tool. I’ll show you how to use it.

Getting Started With Adafruit IO

Earlier this year Adafruit Industries put their IoT dashboard Adafruit.IO into Beta, and it looks pretty cool. I’ll show you how to set up a dashboard using one of my mini weather station designs for data input. You may remember this project from a few months ago. I’ll be adding yet another endpoint to the project on Adafruit.IO.

How to Add WiFi to Your Arduino

If you want to add internet connectivity to an Arduino, you have quite a few options. Since most Arduino models are not bundled with Ethernet or WiFi a market has developed for it, and I decided to try one out and share my thoughts.

For this article I’ll be using the Adafruit CC3000 breakout board found here. For the platform I’m using an Arduino Mega 2560 I received from Newark element14.

How to Build a REST API With Python

In this article I will describe the process I used to create a new endpoint for my Raspberry Pi weather station, and how I set it up to to use Python and MariaDB for storage. I set this up as an endpoint for one of my IoT projects and thought I’d share the results.

How to Restore Arch Linux Boot After Installing Windows

This week they released the RTM Version of Windows 10, and I decided to install it on my laptop. Most of my development is done on my desktop Mac at home, but the laptop is good for collaborating, coffee shop coding, etc. I decided Windows 10 and Visual Studio 2015 would be good for this. There’s only one issue: I also have Arch Linux on this laptop, and it’s dialed in very nice and I definitely don’t want to remove it.

How to Monitor Room Temperature With a Raspberry Pi

Today I’m going to show you how to monitor ambient room temperature with a Raspberry Pi. We’re going to wire up a temperature sensor, gather temperature values and send them to Firebase. This could be the start of a weather station or other crazy experiments. In my case we’re going to check the temperature of a room to make sure our newborn puppies don’t get too hot or cold during the day.