# Adafruit Feather HUZZAH ESP8266

## Overview

![](https://cdn-learn.adafruit.com/assets/assets/000/028/698/medium800/adafruit_products_2821_iso_demo_01_ORIG.jpg?1448393749)

Feather is the new development board from Adafruit, and like it's namesake it is thin, light, and lets you fly! We designed Feather to be a new standard for portable microcontroller cores.

This is the&nbsp; **Adafruit Feather HUZZAH ESP8266** - our take on an 'all-in-one' ESP8266 WiFi development board with built in USB and battery charging. Its an&nbsp; ESP8266 WiFi module with all the extras you need, ready to rock! [We have other boards in the Feather family, check'em out here](https://www.adafruit.com/categories/777).

![](https://cdn-learn.adafruit.com/assets/assets/000/028/699/medium800/adafruit_products_2821_top_01_ORIG.jpg?1448393905)

At the Feather HUZZAH's heart is an ESP8266 WiFi microcontroller clocked at 80 MHz and at 3.3V logic. This microcontroller contains a Tensilica chip core as well as a full WiFi stack. You can progam the microcontroller using the Arduino IDE for an easy-to-run Internet of Things core. We wired up a USB-Serial chip that can upload code at a blistering 921600 baud for fast development time. It also has auto-reset so no noodling with pins and reset button pressings.

![](https://cdn-learn.adafruit.com/assets/assets/000/028/721/medium800/adafruit_products_2821_side_01_ORIG.jpg?1448481800)

To make it easy to use for portable projects, we added a connector for any of our 3.7V Lithium polymer batteries and built in battery charging. You don't need a battery, it will run just fine straight from the micro USB connector. But, if you do have a battery, you can take it on the go, then plug in the USB to recharge. The Feather will automatically switch over to USB power when its available.

![](https://cdn-learn.adafruit.com/assets/assets/000/028/722/medium800/adafruit_products_2821_top_demo_ORIG.jpg?1448481812)

 **Here's some handy specs!**

- Measures 2.0" x 0.9" x 0.28" (51mm x 23mm x 8mm) without headers soldered in
- Light as a (large?) feather - 6 grams
- ESP8266 @ 80MHz or 160 MHz with 3.3V logic/power
- 4MB of FLASH (32 MBit)
- 3.3V regulator with 500mA peak current output
- CP2104 USB-Serial converter onboard with 921600 max baudrate for uploading
- Auto-reset support for getting into bootload mode before firmware upload
- 9 GPIO pins - can also be used as I2C and SPI
- 1 x analog inputs 1.0V max
- Built in 100mA lipoly charger with charging status indicator LED
- Pin #0 red LED for general purpose blinking. Pin #2 blue LED for bootloading debug & general purpose blinking
- Power/enable pin
- 4 mounting holes
- Reset button

![](https://cdn-learn.adafruit.com/assets/assets/000/028/700/medium800/adafruit_products_2821_back_ORIG.jpg?1448394307)

Comes fully assembled and tested, with a USB interface that lets you quickly use it with the Arduino IDE or NodeMCU Lua. (It comes preprogrammed with the Lua interpretter) We also toss in some header so you can solder it in and plug into a solderless breadboard.&nbsp; **Lipoly battery and USB cable not included** &nbsp;(but we do have lots of options in the shop if you'd like!)

# Adafruit Feather HUZZAH ESP8266

## Pinouts

![](https://cdn-learn.adafruit.com/assets/assets/000/139/874/medium800/adafruit_products_Huzzah_ESP8266_Pinout_v1.png?1758656732)

![](https://cdn-learn.adafruit.com/assets/assets/000/028/689/medium800/adafruit_products_pinoutstop.jpg?1448334031)

![](https://cdn-learn.adafruit.com/assets/assets/000/028/690/medium800/adafruit_products_pinbottom.jpg?1448334076)

# Power Pins
![](https://cdn-learn.adafruit.com/assets/assets/000/028/691/medium800/adafruit_products_powerpins.jpg?1448334167)

- **GND** - this is the common ground for all power and logic
- **BAT** - this is the positive voltage to/from the JST jack for the optional Lipoly battery
- **USB** - this is the positive voltage to/from the micro USB jack if connected
- **EN** - this is the 3.3V regulator's enable pin. It's pulled up, so connect to ground to disable the 3.3V regulator
- **3V** - this is the output from the 3.3V regulator, it can supply 500mA peak (try to keep your current draw under 250mA so you have plenty for the ESP8266's power requirements!)

# Logic pins

This is the general purpose I/O pin set for the microcontroller. All logic is 3.3V

Warning: 

# Serial pins

**RX** and **TX** are the serial control and bootloading pins, and are how you will spend most of your time communicating with the ESP module

![](https://cdn-learn.adafruit.com/assets/assets/000/028/692/medium800/adafruit_products_serialpins.jpg?1448334383)

The **TX** pin is the output _from_ the module and is 3.3V logic.

The **RX** pin is the input _into_ the module and is 5V compliant (there is a level shifter on this pin)

These are connected through to the CP2104 USB-to-Serial converter so they should _not_ be connected to or used unless you're super sure you want to because you will also be getting the USB traffic on these!

# I2C & SPI pins

You can use the ESP8266 to control I2C and SPI devices, sensors, outputs, etc. While this is done by 'bitbanging', it works quite well and the ESP8266 is fast enough to match 'Arduino level' speeds.

![](https://cdn-learn.adafruit.com/assets/assets/000/028/693/medium800/adafruit_products_spii2c.jpg?1448334874)

In theory you can use _any_ pins for I2C and SPI but to make it easier for people using existing Arduino code, libraries, sketches we set up the following:

- **I2C SDA** = **GPIO #4** (default)
- **I2C SCL** = **GPIO #5** (default)

If you want, you can connect to I2C devices using other 2 pins in the Arduino IDE, by calling `Wire.pins(sda, scl)` before any other Wire code is called (so, do this at the begining of `setup()` for example

Likewise, you can use SPI on any pins but if you end up using 'hardware SPI' you will want to use the following:

- **SPI SCK = GPIO #14** (default)
- **SPI MOSI = GPIO #13** (default)
- **SPI MISO = GPIO #12** (default)

# GPIO pins
![](https://cdn-learn.adafruit.com/assets/assets/000/028/694/medium800/adafruit_products_gpio.jpg?1448337217)

This breakout has 9 GPIO: **#0, #2, #4, #5, #12, #13, #14, #15, #16** arranged at the top edge of the Feather PCB

All GPIO are 3.3V logic level in and out, and are **not 5V compatible. &nbsp;** Read the [full spec sheet](http://www.adafruit.com/datasheets/ESP8266_Specifications_English.pdf)&nbsp;to learn more about the GPIO pin limits, but be aware the maximum current drawn per pin is **12mA**.

These pins are general purpose and can be used for any sort of input or output. Most also have the ability to turn on an internal pullup. Many have _special_ functionality:

**GPIO #0,** which does not have an internal pullup, and is also connected a red LED. This pin is used by the ESP8266 to determine when to boot into the bootloader. If the pin is held low during power-up it will start bootloading! That said, you can always use it as an output, and blink the red LED - note the LED is reverse wired so setting the pin LOW will turn the LED on.

**GPIO #2** , is also used to detect boot-mode. It also is connected to the blue LED that is near the WiFi antenna. It has a pullup resistor connected to it, and you can use it as any output (like #0) and blink the blue LED.

**GPIO #15** , is also used to detect boot-mode. It has a pulldown resistor connected to it, make sure this pin isn't pulled high on startup. You can always just use it as an output

**GPIO #16** can be used to wake up out of deep-sleep mode, you'll need to connect it to the RESET pin

Also note that GPIO # **12/13/14** are the same as the **SCK/MOSI/MISO**'SPI' pins!

# Analog Pins

There is also a single analog input pin called **A**. This pin has a ~1.0V maximum voltage, so if you have an analog voltage you want to read that is higher, it will have to be divided down to 0 - 1.0V range

![](https://cdn-learn.adafruit.com/assets/assets/000/028/696/medium800/adafruit_products_adc.jpg?1448338368)

# Other control pins

We have a few other pins for controlling the ESP8266

- **RST** - this is the reset pin for the ESP8266, pulled high by default. When pulled down to ground momentarily it will reset the ESP8266 system. This pin is 3.3V logic only
- **EN (CH\_PD)** - This is the enable pin for the ESP8266, pulled high by default. When pulled down to ground momentarily it will reset the ESP8266 system. This pin is 3.3V logic only

![](https://cdn-learn.adafruit.com/assets/assets/000/028/695/medium800/adafruit_products_enrst.jpg?1448338365)

# NC Pins

The rest of the pins are labeled **NC** which means **Not Connected** - they are not connected to anything and are there as placeholders only, to maintain physical compatibility with the other boards in the Feather line!

# Adafruit Feather HUZZAH ESP8266

## Assembly

We ship Feathers fully tested but without headers attached - this gives you the most flexibility on choosing how to use and configure your Feather

# Header Options!

Before you go gung-ho on soldering, there's a few options to consider!

The first option is soldering in plain male headers, this lets you plug in the Feather into a solderless breadboard

![feather_3010-05.jpg](https://cdn-learn.adafruit.com/assets/assets/000/030/192/medium640/feather_3010-05.jpg?1454100293)

![feather_3010-01.jpg](https://cdn-learn.adafruit.com/assets/assets/000/030/201/medium640/feather_3010-01.jpg?1454100690)

Another option is to go with socket female headers. This won't let you plug the Feather into a breadboard but it will let you attach featherwings very easily

A few Feather boards require access to top-side components like buttons or connectors, making stacking impractical. Sometimes you can stack in the opposite order—FeatherWing underneath—or, if _both_ Feather and Wing require top-side access,&nbsp;place the boards side-by-side with a [FeatherWing Doubler](https://www.adafruit.com/product/2890) or [Tripler](https://www.adafruit.com/product/3417).

![feather_2886-01.jpg](https://cdn-learn.adafruit.com/assets/assets/000/030/195/medium640/feather_2886-01.jpg?1454100431)

![feather_2886-02.jpg](https://cdn-learn.adafruit.com/assets/assets/000/030/196/medium640/feather_2886-02.jpg?1454100477)

![adafruit_products_2890-02.jpg](https://cdn-learn.adafruit.com/assets/assets/000/117/300/medium640/adafruit_products_2890-02.jpg?1672855047)

We also&nbsp; have 'slim' versions of the female headers, that are a little shorter and give a more compact shape

![feather_2940-01.jpg](https://cdn-learn.adafruit.com/assets/assets/000/030/197/medium640/feather_2940-01.jpg?1454100533)

![feather_2940-04.jpg](https://cdn-learn.adafruit.com/assets/assets/000/030/198/medium640/feather_2940-04.jpg?1454100544)

Finally, there's the "Stacking Header" option. This one is sort of the best-of-both-worlds. You get the ability to plug into a solderless breadboard _and_ plug a featherwing on top. But its a little bulky

![feather_2830-01.jpg](https://cdn-learn.adafruit.com/assets/assets/000/030/199/medium640/feather_2830-01.jpg?1454100588)

![feather_2830-00.jpg](https://cdn-learn.adafruit.com/assets/assets/000/030/200/medium640/feather_2830-00.jpg?1454100660)

# Soldering in Plain Headers
## Prepare the header strip:

Cut the strip to length if necessary. It will be easier to solder if you insert it into a breadboard - **long pins down**

![feather_headers.jpg](https://cdn-learn.adafruit.com/assets/assets/000/030/183/medium640/feather_headers.jpg?1454099573)

## Add the breakout board:

Place the breakout board over the pins so that the short pins poke through the breakout pads

## And Solder!

Be sure to solder all pins for reliable electrical contact.  
  
_(For tips on soldering, be sure to check out our_ [_Guide to Excellent Soldering_](http://learn.adafruit.com/adafruit-guide-excellent-soldering)_)._

![feather_solder1.jpg](https://cdn-learn.adafruit.com/assets/assets/000/030/184/medium640/feather_solder1.jpg?1454099592)

![feather_solder2.jpg](https://cdn-learn.adafruit.com/assets/assets/000/030/185/medium640/feather_solder2.jpg?1454099649)

![feather_solder3.jpg](https://cdn-learn.adafruit.com/assets/assets/000/030/186/medium640/feather_solder3.jpg?1454099655)

Solder the other strip as well.

![feather_solder4.jpg](https://cdn-learn.adafruit.com/assets/assets/000/030/187/medium640/feather_solder4.jpg?1454099662)

![feather_solder5.jpg](https://cdn-learn.adafruit.com/assets/assets/000/030/188/medium640/feather_solder5.jpg?1454099665)

![feather_solder6.jpg](https://cdn-learn.adafruit.com/assets/assets/000/030/189/medium640/feather_solder6.jpg?1454099667)

You're done! Check your solder joints visually and continue onto the next steps

![feather_done.jpg](https://cdn-learn.adafruit.com/assets/assets/000/030/190/medium640/feather_done.jpg?1454099807)

# Soldering on Female Header
## Tape In Place

For sockets you'll want to tape them in place so when you flip over the board they don't fall out

![feather_taped.jpg](https://cdn-learn.adafruit.com/assets/assets/000/030/203/medium640/feather_taped.jpg?1454101091)

## Flip & Tack Solder

After flipping over, solder one or two points on each strip, to 'tack' the header in place

![feather_tack1.jpg](https://cdn-learn.adafruit.com/assets/assets/000/030/204/medium640/feather_tack1.jpg?1454101126)

![feather_tack2.jpg](https://cdn-learn.adafruit.com/assets/assets/000/030/205/medium640/feather_tack2.jpg?1454101143)

![feather_tack3.jpg](https://cdn-learn.adafruit.com/assets/assets/000/030/206/medium640/feather_tack3.jpg?1454101147)

## And Solder!

Be sure to solder all pins for reliable electrical contact.  
  
_(For tips on soldering, be sure to check out our_ [_Guide to Excellent Soldering_](http://learn.adafruit.com/adafruit-guide-excellent-soldering)_)._

![feather_soldre1.jpg](https://cdn-learn.adafruit.com/assets/assets/000/030/207/medium640/feather_soldre1.jpg?1454101162)

![feather_solder2.jpg](https://cdn-learn.adafruit.com/assets/assets/000/030/208/medium640/feather_solder2.jpg?1454101165)

![feather_solder3.jpg](https://cdn-learn.adafruit.com/assets/assets/000/030/209/medium640/feather_solder3.jpg?1454101168)

You're done! Check your solder joints visually and continue onto the next steps

![feather_soldered.jpg](https://cdn-learn.adafruit.com/assets/assets/000/030/210/medium640/feather_soldered.jpg?1454101174)

![feather_done.jpg](https://cdn-learn.adafruit.com/assets/assets/000/030/211/medium640/feather_done.jpg?1454101177)

# Adafruit Feather HUZZAH ESP8266

## Power Management

Danger: 

![](https://cdn-learn.adafruit.com/assets/assets/000/113/593/medium800/adafruit_products_2821_iso_demo_01_ORIG.jpg?1658940126)

# Battery + USB Power

We wanted to make our Feather boards easy to power both when connected to a computer as well as via battery.

There's **two ways to power** a Feather:

1. You can connect with a USB cable (just plug into the jack) and the Feather will regulate the 5V USB down to 3.3V.
2. You can also connect a 4.2/3.7V Lithium Polymer (LiPo/LiPoly) or Lithium Ion (LiIon) battery to the JST jack. This will let the Feather run on a rechargeable battery.

**When the USB power is powered, it will automatically switch over to USB for power, as well as start charging the battery (if attached).** This happens 'hot-swap' style so you can always keep the LiPoly connected as a 'backup' power that will only get used when USB power is lost.

Danger: 

![](https://cdn-learn.adafruit.com/assets/assets/000/113/594/medium800/adafruit_products_powermanagement.jpg?1658940144)

The above shows the Micro USB jack (left), LiPoly JST jack (top left), as well as the 3.3V regulator and changeover diode (just to the right of the JST jack) and the LiPoly charging circuitry (right below the regulator).

There's also a **CHG** LED next to the USB jack, which will light up while the battery is charging. This LED might also flicker if the battery is not connected, it's normal.

Info: 

# Power Supplies

You have a lot of power supply options here! We bring out the **BAT** pin, which is tied to the LiPoly JST connector, as well as **USB** which is the +5V from USB if connected. We also have the **3V** pin which has the output from the 3.3V regulator. We use a 500mA peak regulator. While you can get 500mA from it, you can't do it continuously from 5V as it will overheat the regulator.

We use this to power the ESP8266 which can draw spikes of 250+mA (although its not continuous).

You should be able to budget about 250mA current available from the regulator, which will leave plenty for the WiFi module.

![](https://cdn-learn.adafruit.com/assets/assets/000/113/595/medium800/adafruit_products_powerpins.jpg?1658940212)

# Measuring Battery

If you're running off of a battery, chances are you wanna know what the voltage is at! That way you can tell when the battery needs recharging. LiPoly batteries are 'maxed out' at 4.2V and stick around 3.7V for much of the battery life, then slowly sink down to 3.2V or so before the protection circuitry cuts it off. By measuring the voltage you can quickly tell when you're heading below 3.7V.

Since the ESP8266 does not have multiple ADC pins, we didn't want to 'sacrifice' one for LiPoly battery monitoring.&nbsp; **However** &nbsp;we do have a tutorial that mentions how to do it, using two resistors. You can&nbsp;[check out the wiring diagram here (use the VBat pin to measure)](https://learn.adafruit.com/using-ifttt-with-adafruit-io/wiring#battery-tracking)&nbsp;and the&nbsp;[code here](https://learn.adafruit.com/using-ifttt-with-adafruit-io/arduino-code-2).

# ENable pin

If you'd like to turn off the 3.3V regulator, you can do that with the **EN** (able) pin. Simply tie this pin to **Ground** and it will disable the 3V regulator. The **BAT** and **USB** pins will still be powered.

![](https://cdn-learn.adafruit.com/assets/assets/000/113/596/medium800/adafruit_products_enpin.jpg?1658940286)

# Alternative Power Options

The two primary ways for powering a feather are a 3.7/4.2V LiPo battery plugged into the JST port _or_ a USB power cable.

If you need other ways to power the Feather, here's what we recommend:

- For permanent installations, a [5V 1A USB wall adapter](https://www.adafruit.com/product/501) will let you plug in a USB cable for reliable power
- For mobile use, where you don't want a LiPoly, [use a USB battery pack!](https://www.adafruit.com/product/1959)
- If you have a higher voltage power supply, [use a 5V buck converter](https://www.adafruit.com/?q=5V%20buck) and wire it to a [USB cable's 5V and GND input](https://www.adafruit.com/product/3972)

Here's what you cannot do:

- **Do not use alkaline or NiMH batteries** and connect to the battery port - this will destroy the LiPoly charger
- **Do not use 7.4V RC batteries on the battery port** - this will destroy the board

The Feather _is not designed for external power supplies_ - this is a design decision to make the board compact and low cost. It is not recommended, but technically possible:

- **Connect an external 3.3V power supply to the 3V and GND pins.** Not recommended, this may cause unexpected behavior and the **EN** pin will no longer work. Also this doesn't provide power on **BAT** or **USB** and some Feathers/Wings use those pins for high current usages. You may end up damaging your Feather.
- **Connect an external 5V power supply to the USB and GND pins.** Not recommended, this may cause unexpected behavior when plugging in the USB port because you will be back-powering the USB port, which _could_ confuse or damage your computer.

# Adafruit Feather HUZZAH ESP8266

## Using NodeMCU Lua

Each Feather HUZZAH ESP8266 breakout comes pre-programmed with NodeMCU's Lua interpreter. As of this writing, we ship with **NodeMCU 0.9.5 build 20150318&nbsp; powered by Lua 5.1.4** but it may be more recent

Lua is still a work in progress, so we strongly recommend visiting NodeMCU and [updating your Lua version to the very latest as they have the ability to make you the latest continuous build](https://nodemcu-build.com/index.php). Then [follow their guide on how to update Lua!](http://nodemcu.readthedocs.io/en/latest/en/flash/)

The Lua interpreter runs on the ESP8266 and you can type in commands and read out the results over serial. In order to upload code to the ESP8266 and use the serial console, connect any data-capable micro USB cable to the Feather HUZZAH and the other side to your computer's USB port. [Install the required CP2104 USB driver to have the COM/Serial port appear properly](https://www.silabs.com/developers/usb-to-uart-bridge-vcp-drivers)

_[Don't forget to visit esp8266.com for the latest and greatest in ESP8266 news, software and gossip!](http://www.esp8266.com/)_

Danger: 

# Open up serial console

Next up, on your computer, use a serial console program such as **CoolTerm** (Mac) or **Putty** (Windows) or **screen** (linux). Teraterm seems to dislike the initial 74400bps data stream from the ESP8266 so you can try it but you'll possibly need to reset the terminal software.

- Connect up to the COM or Serial port used by your cable, at 9600 Baud (if an issue, try 115200 baud)
- Make sure you have turned off any hardware handshake or flow control
- Putty isn't good with pasting code in, so you may not be able to copy-n-paste!
- &nbsp;Also make sure you have **line endings** set to CRLF "\r\n"

Use any serial console program you like, we just happen to be used to Putty!

![](https://cdn-learn.adafruit.com/assets/assets/000/028/682/medium800/adafruit_products_putty.png?1448246979)

Once the terminal software is connected, click the **Reset** button on the Feather HUZZAH ESP8266 board to reset it and have it print out the welcome message:

![](https://cdn-learn.adafruit.com/assets/assets/000/028/683/medium800/adafruit_products_lualaunch.png?1448247007)

If you don't get this message, first check that the red/blue leds flickered when you press the reset button. If they didn't, make sure you've got the right baud rate selected in the software (9600 or 115200)

# Hello world!

Ok we can now turn on an LED. There is a red LED on each board, connected to **GPIO #0**

Warning: 

Info: 

So to set the pin #0 LED on and off (which would be pin #3 in Lua) first make it an output:

```
gpio.mode(3, gpio.OUTPUT)

```

Turn the LED on with:

```
gpio.write(3, gpio.LOW)
```

And off with:

```
gpio.write(3, gpio.HIGH)
```

You can make this a little more automated by running a longer script.

For longer text, pasting can be difficult as the lua interpreter needs a little delay time between characters and also require CR-LF settings. For that reason you may want to paste each line and then hit return manually.

```
while 1 do
  gpio.write(3, gpio.HIGH)
  tmr.delay(1000000)   -- wait 1,000,000 us = 1 second
  gpio.write(3, gpio.LOW)
  tmr.delay(1000000)   -- wait 1,000,000 us = 1 second
end
```

The LED will now be blinking on and off.

Note that since its in a loop, its not possible to get it to stop via the interpreter. To stop it, click the **Reset** button again!

This code halts the processor during the tmr.delay, a smarter way to blink an LED is to use the timer capability to set off the LED control ([code from here](https://roboindia.com/tutorials/esp8266-led-blinking-lua))

```
-- Pin definition 
local pin = 3
local status = gpio.LOW
local duration = 1000    -- 1 second duration for timer

-- Initialising pin
gpio.mode(pin, gpio.OUTPUT)
gpio.write(pin, status)

-- Create an interval
tmr.alarm(0, duration, 1, function ()
    if status == gpio.LOW then
        status = gpio.HIGH
    else
        status = gpio.LOW
    end

    gpio.write(pin, status)
end)
```

# Scanning & Connecting to WiFi

We'll continue with a quick demo of scanning for WiFi and connecting.

Once you're back at the Lua prompt, set the ESP8266 into WiFi Client mode with

```
wifi.setmode(wifi.STATION)
```

Then you can run the scanner and have it print out the available AP's

```
-- print ap list
function listap(t)
      for k,v in pairs(t) do
        print(k.." : "..v)
      end
end
wifi.sta.getap(listap)
```

or for more detail...

```
-- print ap list
function listap(t)
      for ssid,v in pairs(t) do
        authmode, rssi, bssid, channel = string.match(v, "(%d),(-?%d+),(%x%x:%x%x:%x%x:%x%x:%x%x:%x%x),(%d+)")
        print(ssid,authmode,rssi,bssid,channel)
      end
end
      
wifi.sta.getap(listap)
```

We can connect to the access point with **wifi.sta.config** and **wifi.sta.connect** - it will take a second or two to complete the connection, you can query the module to ask the status with **wifi.sta.status()** - when you get a 5 it means the connection is completed and DHCP successful

```
wifi.sta.config("accesspointname","yourpassword")
wifi.sta.connect()
tmr.delay(1000000)   -- wait 1,000,000 us = 1 second
print(wifi.sta.status())
print(wifi.sta.getip())
```

# WebClient example

Once you're got the IP address you can connect to adafruit, for example, and read a webpage and print it out:

```
sk=net.createConnection(net.TCP, 0)
sk:on("receive", function(sck, c) print(c) end )
sk:connect(80,"207.58.139.247")
sk:send("GET /testwifi/index.html HTTP/1.1\r\nHost: www.adafruit.com\r\nConnection: keep-alive\r\nAccept: */*\r\n\r\n")

```

You can also have the module do DNS for you, just give it the hostname instead of IP address:

```
sk=net.createConnection(net.TCP, 0)
sk:on("receive", function(sck, c) print(c) end )
sk:connect(80,"www.adafruit.com")
sk:send("GET /testwifi/index.html HTTP/1.1\r\nHost: www.adafruit.com\r\nConnection: keep-alive\r\nAccept: */*\r\n\r\n")
```

This is just a light overview of testing out your HUZZAH ESP breakout! For much more, check out NodeMCU's documentation page [https://nodemcu.readthedocs.io/](https://nodemcu.readthedocs.io/) for the details on what functions are available to you, as well as&nbsp; [http://www.lua.org](http://www.lua.org) to learn more about the Lua scripting language

# Adafruit Feather HUZZAH ESP8266

## Using Arduino IDE

![](https://cdn-learn.adafruit.com/assets/assets/000/028/685/medium800/adafruit_products_2821_top_02_ORIG.jpg?1448333324)

While the Feather HUZZAH ESP8266 comes pre-programmed with NodeMCU's Lua interpretter, you don't have to use it! Instead, you can use the Arduino IDE which may be more familar. **This will write directly to the firmware, erasing the NodeMCU firmware** , [so if you want to go back to Lua, use the flasher to re-install it](https://github.com/nodemcu/nodemcu-flasher)

_[Don't forget to visit esp8266.com for the latest and greatest in ESP8266 news, software and gossip!](http://www.esp8266.com/)_

In order to upload code to the ESP8266 and use the serial console, connect any data-capable micro USB cable to the Feather HUZZAH and the other side to your computer's USB port.

Don't forget you will also need to install the SiLabs CP2104 Driver:

[Click here to download the CP2104 USB Driver](http://www.silabs.com/products/development-tools/software/usb-to-uart-bridge-vcp-drivers)
On Mac OS 10.13 and higher, in addition to installing, you will have to give the CP2104 kernel driver permission to load. You can find out if you need to give additional permission by visiting your Security & Privacy settings system preferences screen after installing and looking for the message that says, 'System software from developer "SiLabs" was blocked from loading', like in the picture below.

![](https://cdn-learn.adafruit.com/assets/assets/000/062/133/medium800/adafruit_products_allow-silabs-kernel-driver.png?1537382826)

To allow the driver to load, click the lock icon, enter your password, and click "Allow" next to the warning message. After that, you may have to restart your computer before following the steps below and connecting to your Huzzah in the Arduino app.

Warning: 

[Download the CP2104 Legacy USB Driver](http://community.silabs.com/t5/Interface-Knowledge-Base/Legacy-OS-Software-and-Driver-Packages/ta-p/182585)
# Install the Arduino IDE 1.6.8 or greater

[Download Arduino IDE from Arduino.cc (1.6.8 or greater)](http://www.arduino.cc/en/Main/Software) from Arduino.cc

The latest is usually the best

## Install the ESP8266 Board Package

Enter ` http://arduino.esp8266.com/stable/package_esp8266com_index.json` into _Additional Board Manager URLs_ field in the Arduino v1.6.4+ preferences.

![](https://cdn-learn.adafruit.com/assets/assets/000/028/673/medium800/adafruit_products_Screen_Shot_2015-07-23_at_12.15.52_PM.png?1448246535)

[Visit our guide for how to add **&nbsp;new boards to the Arduino 1.6.4+ IDE** for more info about adding&nbsp;third party boards](../../../../add-boards-arduino-v164).

&nbsp;Next, use the **Board manager** to install&nbsp;the ESP8266 package.

![](https://cdn-learn.adafruit.com/assets/assets/000/028/674/medium800/adafruit_products_Screen_Shot_2015-07-23_at_12.20.12_PM.png?1448246565)

Warning: 

After the install process, you should see that esp8266 package is marked INSTALLED. Close the Boards Manager window once the install process has completed.

![](https://cdn-learn.adafruit.com/assets/assets/000/035/028/medium800/adafruit_products_adafruit_io_Screen_Shot_2016-08-16_at_11.11.33_AM.png?1471914574)

# Setup ESP8266 Support

When you've restarted, select **Adafruit Feather HUZZAH ESP8266&nbsp;** from the Tools-\>Board dropdown

![](https://cdn-learn.adafruit.com/assets/assets/000/053/351/medium800/adafruit_products_featherhuzzah.png?1524842640)

80 MHz as the CPU frequency

![](https://cdn-learn.adafruit.com/assets/assets/000/032/981/medium800/adafruit_products_80mhz.png?1465933954)

You can keep the **Flash Size** at "4M (3M SPIFFS)

For **Upload Speed** , select 115200 baud (You can also try faster baud rates, we were able to upload at a blistering 921600 baud but sometimes it fails & you have to retry)

![](https://cdn-learn.adafruit.com/assets/assets/000/032/982/medium800/adafruit_products_baud.png?1465933999)

The matching COM port for your FTDI or USB-Serial cable

![](https://cdn-learn.adafruit.com/assets/assets/000/028/678/medium800/adafruit_products_com.png?1448246709)

On a mac, you should look for the "SLAB\_USBtoUART" port

![](https://cdn-learn.adafruit.com/assets/assets/000/062/137/medium800/adafruit_products_huzzah-USB-port-arduino.png?1537383052)

# Blink Test

We'll begin with the simple blink test

Enter this into the sketch window (and save since you'll have to)

```
void setup() {
  pinMode(0, OUTPUT);
}

void loop() {
  digitalWrite(0, HIGH);
  delay(500);
  digitalWrite(0, LOW);
  delay(500);
}
```

Now you can simply upload! The **Feather HUZZAH** has built in auto-reset that puts it into bootloading mode automagically

![](https://cdn-learn.adafruit.com/assets/assets/000/028/679/medium800/adafruit_products_espblink.png?1448246726)

The sketch will start immediately - you'll see the LED blinking. Hooray!

# Connecting via WiFi

OK once you've got the LED blinking, lets go straight to the fun part, connecting to a webserver. Create a new sketch with this code:

```
/*
 *  Simple HTTP get webclient test
 */

#include &lt;ESP8266WiFi.h&gt;

const char* ssid     = "yourssid";
const char* password = "yourpassword";

const char* host = "wifitest.adafruit.com";

void setup() {
  Serial.begin(115200);
  delay(100);

  // We start by connecting to a WiFi network

  Serial.println();
  Serial.println();
  Serial.print("Connecting to ");
  Serial.println(ssid);
  
  WiFi.begin(ssid, password);
  
  while (WiFi.status() != WL_CONNECTED) {
    delay(500);
    Serial.print(".");
  }

  Serial.println("");
  Serial.println("WiFi connected");  
  Serial.println("IP address: ");
  Serial.println(WiFi.localIP());
}

int value = 0;

void loop() {
  delay(5000);
  ++value;

  Serial.print("connecting to ");
  Serial.println(host);
  
  // Use WiFiClient class to create TCP connections
  WiFiClient client;
  const int httpPort = 80;
  if (!client.connect(host, httpPort)) {
    Serial.println("connection failed");
    return;
  }
  
  // We now create a URI for the request
  String url = "/testwifi/index.html";
  Serial.print("Requesting URL: ");
  Serial.println(url);
  
  // This will send the request to the server
  client.print(String("GET ") + url + " HTTP/1.1\r\n" +
               "Host: " + host + "\r\n" + 
               "Connection: close\r\n\r\n");
  delay(500);
  
  // Read all the lines of the reply from server and print them to Serial
  while(client.available()){
    String line = client.readStringUntil('\r');
    Serial.print(line);
  }
  
  Serial.println();
  Serial.println("closing connection");
}
```

Dont forget to update

`const char* ssid     = "yourssid";`  
`const char* password = "yourpassword";`

to your access point and password, then upload the same way: get into bootload mode, then upload code via IDE

![](https://cdn-learn.adafruit.com/assets/assets/000/028/680/medium800/adafruit_products_wificlient.png?1448246786)

Open up the IDE serial console at 115200 baud to see the connection and webpage printout!

![](https://cdn-learn.adafruit.com/assets/assets/000/028/681/medium800/adafruit_products_consoleconnect.png?1448246805)

That's it, pretty easy!

This page was just to get you started and test out your module. For more information, check out the[ESP8266 port github repository](https://github.com/esp8266/Arduino) for much more up-to-date documentation!

# Adafruit Feather HUZZAH ESP8266

## WipperSnapper Setup

Warning: 

## What is WipperSnapper

WipperSnapper is a firmware designed to turn any WiFi-capable board into an Internet-of-Things device without programming a single line of code. WipperSnapper connects to [Adafruit IO](https://io.adafruit.com/), a web&nbsp;platform designed ([by Adafruit!](https://www.adafruit.com/about)) to&nbsp;_display_,&nbsp;_respond_, and&nbsp;_interact_&nbsp;with your project's data.

Simply load the WipperSnapper firmware onto your board, add credentials, and plug it into power. Your board will automatically register itself with your Adafruit IO account.

From there, you can add&nbsp;_components_&nbsp;to your board such as buttons, switches, potentiometers, sensors, and more! Components are&nbsp;_dynamically&nbsp;_added to hardware, so you can&nbsp;immediately start interacting, logging, and streaming the data your projects produce without writing code.

## Sign up for Adafruit.io

You will need an Adafruit IO account to use WipperSnapper on your board. If you do not already have one, head over to [io.adafruit.com](https://io.adafruit.com/) to create a&nbsp;_free_ account.

## Add a New Device to Adafruit IO

Log into your [Adafruit IO](https://io.adafruit.com/) account. Click the _New Device_ button at the top of the page.

![](https://cdn-learn.adafruit.com/assets/assets/000/112/548/medium800/wippersnapper_setup__board_selector__web__new_device_1.png?1655919766)

After clicking New Device, you should be on the _board selector_ page. This page displays every board that is compatible with the WipperSnapper firmware.

![](https://cdn-learn.adafruit.com/assets/assets/000/112/550/medium800/wippersnapper_setup__board_selector__web__selector_maion.png?1655920178)

In the board selector page's search bar, search for the&nbsp;_Feather HUZZAH ESP8266.&nbsp;_Once you've located the board you'd like to install WipperSnapper on,_&nbsp;_click the&nbsp;_Choose Board_&nbsp;button to bring you to the self-guided installation wizard.

![](https://cdn-learn.adafruit.com/assets/assets/000/112/938/medium800/adafruit_products_esp8266_sel.png?1657224074)

Follow the step-by-step instructions on the page to install Wippersnapper on your device and connect it to Adafruit IO.

![](https://cdn-learn.adafruit.com/assets/assets/000/120/540/medium800/adafruit_products_esp8266_ss.png?1682710384)

If the installation was successful, a popover should appear displaying that your board has successfully been detected by Adafruit IO.

Give your board a name and click "Continue to Device Page".

![](https://cdn-learn.adafruit.com/assets/assets/000/112/940/medium800/adafruit_products_esp8266_detect.png?1657224100)

You should be brought to your board's device page.

![](https://cdn-learn.adafruit.com/assets/assets/000/112/942/medium800/adafruit_products_esp8266_device_pg.png?1657224108)

## Feedback

Adafruit.io WipperSnapper is in **beta** and you can help improve it!

If you have&nbsp; suggestions or general feedback about the installation process - visit [https://io.adafruit.com/support](https://io.adafruit.com/support), click _"Contact Adafruit IO Support"_ and select _"I have feedback or suggestions for the WipperSnapper Beta"._

## Troubleshooting

If you encountered an issue during installation, please try the steps below first.

If you're still unable to resolve the issue, or if your issue is not listed below, get in touch with us directly at [https://io.adafruit.com/support](https://io.adafruit.com/support "https://io.adafruit.com/support"). Make sure to click&nbsp; _"Contact Adafruit IO Support"_ and select "_There is an issue with WipperSnapper. Something is broken!"_

### 

First, make sure that you selected the correct board on the board selector.

Next, please make sure that you entered your WiFi credentials properly, there are no spaces/special characters in either your network name (SSID) or password, and that you are connected to a 2.4GHz wireless network.

If you're still unable to connect your board to WiFi, please [make a new post on the WipperSnapper technical support forum with the error you're experiencing, the LED colors which are blinking, and the board you're using.](https://forums.adafruit.com/viewforum.php?f=66)

### 

Try hard-resetting your board by unplugging it from USB power and plugging it back in.

If the error is still occurring, please&nbsp;[make a new post on the WipperSnapper technical support forum with information about what you're experiencing, the LED colors which are blinking (if applicable), and the board you're using.](https://forums.adafruit.com/viewforum.php?f=66)

## "Uninstalling" WipperSnapper&nbsp;

WipperSnapper firmware is an application that is loaded onto your board. There is nothing to "uninstall". However, you may want to "move" your board from running WipperSnapper to running Arduino or CircuitPython. You also may need to restore your board to the state it was shipped to you from the Adafruit factory.&nbsp;

### Moving from WipperSnapper to CircuitPython

Follow the steps on the [Installing CircuitPython page](https://learn.adafruit.com/welcome-to-circuitpython/installing-circuitpython) to install CircuitPython on your board running WipperSnapper.

- If you are unable to double-tap the RST button to enter the UF2 bootloader, follow the _"Factory Resetting a WipperSnapper Board"_ instructions below.

Uploading this sketch will overwrite WipperSnapper. If you want to re-install WipperSnapper, follow the instructions at the top of this page.

### Moving from WipperSnapper to Arduino

If you want to use your board with Arduino, you will use the Arduino IDE to load&nbsp;_any_ sketch onto your board.

First, follow the page below to set up your Arduino IDE environment for use with your board.

[Setup Arduino IDE](https://learn.adafruit.com/adafruit-feather-huzzah-esp8266/using-arduino-ide)
Then, follow the page below to upload the "Arduino Blink" sketch to your board.

[Upload Arduino "Blink" Sketch](https://learn.adafruit.com/adafruit-feather-huzzah-esp8266/using-arduino-ide#blink-test-2720758)
Uploading this sketch will overwrite WipperSnapper. If you want to re-install WipperSnapper, follow the instructions at the top of this page.

### Factory Resetting a WipperSnapper Board

Sometimes, hardware gets into a state that requires it to be "restored" to the original state it shipped in. If you'd like to get your board back to its original factory state, follow the guide below.

 **Note:** This board does&nbsp; **not** have a factory reset firmware file. You should upload the Arduino blink sketch by following the instructions above.

# Adafruit Feather HUZZAH ESP8266

## WipperSnapper Essentials

![](https://cdn-learn.adafruit.com/assets/assets/000/143/640/medium800/wippersnapper_essentials_heading__required_parts__adafruit_20boards_wippersnapper_io-2.jpg?1775751347)

You've installed WipperSnapper firmware on your board and connected it to Adafruit IO. Next, let's learn how to use Adafruit IO!

The Adafruit IO supports a large number of _components. Components_ are physical parts such as buttons, switches, sensors, servos, LEDs, RGB LEDs, and more.&nbsp;

The following pages will get you up and running with WipperSnapper as you interact with your board's LED, read the value of a push button, send the value of an I2C sensor to the internet, and wirelessly control colorful LEDs.

### Parts

The following parts are&nbsp; **required** to complete the WipperSnapper essentials pages for this board:

### STEMMA Wired Potentiometer Breakout Board - 10K ohm Linear

[STEMMA Wired Potentiometer Breakout Board - 10K ohm Linear](https://www.adafruit.com/product/4493)
For the easiest way possible to measure twists, turn to this STEMMA potentiometer breakout (ha!). This plug-n-play pot comes with a JST-PH 2mm connector and a matching &nbsp;[JST PH 3-Pin to Male Header Cables - 200mm](https://www.adafruit.com/product/3893), so wiring up is a cinch....

Out of Stock
[Buy Now](https://www.adafruit.com/product/4493)
[Related Guides to the Product](https://learn.adafruit.com/products/4493/guides)
![Video of a white hand turning the knob on a STEMMA Wired Potentiometer Breakout Board connect to a breadboard. Color changes when the knob is twisted. ](https://cdn-shop.adafruit.com/product-videos/640x480/4493-04.jpg)

### Adafruit MCP9808 High Accuracy I2C Temperature Sensor Breakout

[Adafruit MCP9808 High Accuracy I2C Temperature Sensor Breakout](https://www.adafruit.com/product/5027)
The MCP9808 digital temperature sensor is one of the more accurate/precise we've ever seen, with a typical accuracy of ±0.25°C over the sensor's -40°C to +125°C range and precision of +0.0625°C. They work great with any microcontroller using standard I2C. With...

In Stock
[Buy Now](https://www.adafruit.com/product/5027)
[Related Guides to the Product](https://learn.adafruit.com/products/5027/guides)
![Top view of temperature sensor breakout above an OLED display FeatherWing. The OLED display reads "MCP9808 Temp: 24.19ºC"](https://cdn-shop.adafruit.com/640x480/5027-04.jpg)

### Tactile Switch Buttons (12mm square, 6mm tall) x 10 pack

[Tactile Switch Buttons (12mm square, 6mm tall) x 10 pack](https://www.adafruit.com/product/1119)
Medium-sized clicky momentary switches are standard input "buttons" on electronic projects. These work best in a PCB but [can be used on a solderless breadboard as shown in this tutorial](https://learn.adafruit.com/adafruit-arduino-lesson-6-digital-inputs?view=all). The...

In Stock
[Buy Now](https://www.adafruit.com/product/1119)
[Related Guides to the Product](https://learn.adafruit.com/products/1119/guides)
![Angled shot of 10 12mm square tactile switch buttons.](https://cdn-shop.adafruit.com/640x480/1119-03.jpg)

### Half Sized Premium Breadboard - 400 Tie Points

[Half Sized Premium Breadboard - 400 Tie Points](https://www.adafruit.com/product/64)
This is a cute, half-size breadboard with&nbsp;400 tie points, good for small projects. It's 3.25" x 2.2" / 8.3cm&nbsp;x 5.5cm&nbsp;with a standard double-strip in the middle and two power rails on both sides.&nbsp;You can pull the power rails off easily to make the breadboard as...

Out of Stock
[Buy Now](https://www.adafruit.com/product/64)
[Related Guides to the Product](https://learn.adafruit.com/products/64/guides)
![Angled shot of half-size solderless breadboard with red and black power lines.](https://cdn-shop.adafruit.com/640x480/64-06.jpg)

### Breadboarding wire bundle

[Breadboarding wire bundle](https://www.adafruit.com/product/153)
75 flexible stranded core wires with stiff ends molded on in red, orange, yellow, green, blue, brown, black and white. These are a major improvement over the "box of bent wires" that are sometimes sold with breadboards, and faster than stripping your own solid core wires. Makes...

In Stock
[Buy Now](https://www.adafruit.com/product/153)
[Related Guides to the Product](https://learn.adafruit.com/products/153/guides)
![Bundle of multi-colored multi-length wire jumpers](https://cdn-shop.adafruit.com/640x480/153-04.jpg)

### STEMMA QT / Qwiic JST SH 4-pin to Premium Male Headers Cable

[STEMMA QT / Qwiic JST SH 4-pin to Premium Male Headers Cable](https://www.adafruit.com/product/4209)
This 4-wire cable is a little over 150mm / 6" long and fitted with JST-SH female 4-pin connectors on one end and premium Dupont male headers on the other. Compared with the chunkier JST-PH these are 1mm pitch instead of 2mm, but still have a nice latching feel, while being easy to insert...

Out of Stock
[Buy Now](https://www.adafruit.com/product/4209)
[Related Guides to the Product](https://learn.adafruit.com/products/4209/guides)
![Angled Shot of the STEMMA QT / Qwiic JST SH 4-pin to Premium Male Headers Cable.](https://cdn-shop.adafruit.com/640x480/4209-05.jpg)

# Adafruit Feather HUZZAH ESP8266

## LED Blink

Info: This demo shows controlling an LED from Adafruit IO. The same kind of control can be used for relays, lights, motors, or solenoids.

One of the first programs you typically write to get used to embedded programming is a sketch that repeatably blinks an LED. IoT projects are&nbsp;_wireless,_&nbsp;so after completing this section, you'll be able to turn on (or off) the LED built into your board from anywhere in the world.

## Where is the LED on my board?
The Adafruit Feather HUZZAH ESP8266 has a LED (highlighted in red and labeled on the silkscreen as #0) above the Micro-USB port.

![adafruit_products_feather-esp8266-led-location.png](https://cdn-learn.adafruit.com/assets/assets/000/118/249/medium640/adafruit_products_feather-esp8266-led-location.png?1675795486)

## Create a LED Component on Adafruit IO
On the device page, click the New Component (or "+") button to open the component picker.

![](https://cdn-learn.adafruit.com/assets/assets/000/118/250/medium800/adafruit_products_feather-esp8266-new-component.png?1675796313)

Search for the component name by entering&nbsp;`LED`&nbsp;into the text box on the component picker, the list of components should update as soon as you stop typing.

![led_blink_LED_select.png](https://cdn-learn.adafruit.com/assets/assets/000/127/428/medium640/led_blink_LED_select.png?1706755656)

### Filtering and searching for components

Since WipperSnapper supports such a large number of components, there is keyword filtering. Try searching for various keywords, like:

- component names:&nbsp;`aht20`,&nbsp;`servo`,&nbsp;`buzzer`,&nbsp;`button`, `led`, etc
- sensor types:&nbsp;`light`,&nbsp;`temperature`,&nbsp;`pressure`,&nbsp;`humidity`, etc
- interface:&nbsp;`i2c`,&nbsp;`uart`,&nbsp;`ds18x20`,&nbsp;`pin`, etc (also I2C addresses e.g.&nbsp;`0x44`)
- vendor:&nbsp;`Adafruit`,&nbsp;`ASAIR`,&nbsp;`Infineon`,&nbsp;`Bosch`,&nbsp;`Honeywell`,&nbsp;`Sensirion`, etc

There are also product and documentation links to every component. Follow the links beneath the component descriptions to be taken to the appropriate product page or Learn Guide

Select the **LED** from the list of components.

![led_blink_LED_select.png](https://cdn-learn.adafruit.com/assets/assets/000/127/429/medium640/led_blink_LED_select.png?1706755753)

On the Create LED Component form, the board's LED pin is pre-selected.&nbsp;

Click Create Component.

![](https://cdn-learn.adafruit.com/assets/assets/000/118/251/medium800/adafruit_products_feather-esp8266-red-led.png?1675796384)

Behind the scenes, Adafruit IO sends send a command to your board running WipperSnapper telling it to configure "LED Pin" as a digital output.

Your board's page on Adafruit IO shows a new LED component.

![](https://cdn-learn.adafruit.com/assets/assets/000/118/252/medium800/adafruit_products_feather-esp8266-red-led-device-page.png?1675796408)

## Usage
On the board page, toggle the LED component by clicking the toggle switch. This should turn your board's built-in LED on or off.

![](https://cdn-learn.adafruit.com/assets/assets/000/118/394/medium800thumb/adafruit_products_ezgif.com-video-to-gif_%287%29.jpg?1675971524)

# Adafruit Feather HUZZAH ESP8266

## Read a Push-button

Info: 

You can configure a board running WipperSnapper to read data from standard input buttons, switches, or digital sensors, and send the value to Adafruit IO.

From Adafruit IO, you will configure one of the pushbuttons on your board as a push button component. Then, when the button is pressed (or released), a value will be published to Adafruit IO.

## Parts

The following parts are required to complete this page.

### Tactile Switch Buttons (12mm square, 6mm tall) x 10 pack

[Tactile Switch Buttons (12mm square, 6mm tall) x 10 pack](https://www.adafruit.com/product/1119)
Medium-sized clicky momentary switches are standard input "buttons" on electronic projects. These work best in a PCB but [can be used on a solderless breadboard as shown in this tutorial](https://learn.adafruit.com/adafruit-arduino-lesson-6-digital-inputs?view=all). The...

In Stock
[Buy Now](https://www.adafruit.com/product/1119)
[Related Guides to the Product](https://learn.adafruit.com/products/1119/guides)
![Angled shot of 10 12mm square tactile switch buttons.](https://cdn-shop.adafruit.com/640x480/1119-03.jpg)

### Half Sized Premium Breadboard - 400 Tie Points

[Half Sized Premium Breadboard - 400 Tie Points](https://www.adafruit.com/product/64)
This is a cute, half-size breadboard with&nbsp;400 tie points, good for small projects. It's 3.25" x 2.2" / 8.3cm&nbsp;x 5.5cm&nbsp;with a standard double-strip in the middle and two power rails on both sides.&nbsp;You can pull the power rails off easily to make the breadboard as...

Out of Stock
[Buy Now](https://www.adafruit.com/product/64)
[Related Guides to the Product](https://learn.adafruit.com/products/64/guides)
![Angled shot of half-size solderless breadboard with red and black power lines.](https://cdn-shop.adafruit.com/640x480/64-06.jpg)

### Breadboarding wire bundle

[Breadboarding wire bundle](https://www.adafruit.com/product/153)
75 flexible stranded core wires with stiff ends molded on in red, orange, yellow, green, blue, brown, black and white. These are a major improvement over the "box of bent wires" that are sometimes sold with breadboards, and faster than stripping your own solid core wires. Makes...

In Stock
[Buy Now](https://www.adafruit.com/product/153)
[Related Guides to the Product](https://learn.adafruit.com/products/153/guides)
![Bundle of multi-colored multi-length wire jumpers](https://cdn-shop.adafruit.com/640x480/153-04.jpg)

## Wiring
- **Feather GND** &nbsp;to&nbsp; **Push Button**
- **Feather GPIO 13** &nbsp;to&nbsp; **Push Button**

**Note -** we are not using a resistor part! We will be configuring the Feather ESP32 to use its internal resistor instead.

![adafruit_products_fthr-esp8266-btn_bb.png](https://cdn-learn.adafruit.com/assets/assets/000/118/259/medium640/adafruit_products_fthr-esp8266-btn_bb.png?1675797834)

## Create a Push-button Component on Adafruit IO

On the device page, click the New Component (or "+") button to open the component picker.

![](https://cdn-learn.adafruit.com/assets/assets/000/118/254/medium800/adafruit_products_feather-esp8266-new-component.png?1675796969)

Search for the component name by entering&nbsp;`push`&nbsp;into the text box on the component picker, the list of components should update as soon as you stop typing.

![read_a_push_button__external__5NrzQhD0zT.png](https://cdn-learn.adafruit.com/assets/assets/000/127/432/medium640/read_a_push_button__external__5NrzQhD0zT.png?1706750012)

### 

WipperSnapper supports such a large number of components we added filtering!  
Try searching for various keywords, like:

- component names:&nbsp;`aht20`,&nbsp;`servo`,&nbsp;`buzzer`,&nbsp;`button`,&nbsp;`relay`, etc
- sensor types:&nbsp;`light`,&nbsp;`temperature`,&nbsp;`pressure`,&nbsp;`humidity`, etc
- interface:&nbsp;`i2c`,&nbsp;`uart`,&nbsp;`ds18x20`,&nbsp;`pin`, etc (also I2C addresses e.g.&nbsp;`0x44`)
- vendor:&nbsp;`Adafruit`,&nbsp;`ASAIR`,&nbsp;`Infineon`,&nbsp;`Bosch`,&nbsp;`Honeywell`,&nbsp;`Sensirion`, etc

We’ve also added product and documentation links to every component, follow the links beneath the component descriptions to be taken to the appropriate product page or Learn-Guide.

Select the **Push Button** &nbsp;from the list of results to go to the component configuration page.

There will be a back button if you select the wrong component, and you can use the Edit component icon (⚙️) on the device page to update the component configuration in the future.

![read_a_push_button__external__5NrzQhD0zT.png](https://cdn-learn.adafruit.com/assets/assets/000/127/433/medium640/read_a_push_button__external__5NrzQhD0zT.png?1706750109)

The "Create Push Button Component" form&nbsp;presents you with options for configuring the push button.

Start by selecting the board's pin connected to the push button.

![](https://cdn-learn.adafruit.com/assets/assets/000/118/260/medium800/adafruit_products_pb-1.png?1675797891)

The&nbsp;_Return Interval_&nbsp;dictates how frequently the value of the push-button will be sent from the board to Adafruit IO.

For this example, you will configure the push button value to be only sent when the value changes (i.e.: when it's either pressed or depressed).

![](https://cdn-learn.adafruit.com/assets/assets/000/118/261/medium800/adafruit_products_pb-on-change.png?1675798002)

Check the&nbsp; **Specify Pin Pull Direction&nbsp;** checkbox.

Select&nbsp; **Pull Up&nbsp;** to turn on the internal pull-up resistor.

Make sure the form settings look like the following screenshot. Then, click&nbsp; **Create Component**.

![](https://cdn-learn.adafruit.com/assets/assets/000/118/262/medium800/adafruit_products_pb-pull-create.png?1675798012)

Adafruit IO sends a command to your WipperSnapper board, telling it to configure the GPIO pin you selected to behave as a digital input pin and to enable it to pull up the internal resistor.

Your board page should also show the new push-button component.

![](https://cdn-learn.adafruit.com/assets/assets/000/118/263/medium800/adafruit_products_pb-on-page.png?1675798042)

Push the button on your board to change the value of the push-button component on Adafruit IO.

![](https://cdn-learn.adafruit.com/assets/assets/000/118/395/medium800thumb/adafruit_products_ezgif.com-video-to-gif_%288%29.jpg?1675971550)

# Adafruit Feather HUZZAH ESP8266

## Analog Input

Your microcontroller board has both digital and analog signal capabilities. Some pins are analog, some are digital, and some are capable of both. Check the **Pinouts** page in this guide for details about your board.

Analog signals are different from digital signals in that they can be _any_ voltage and can vary continuously and smoothly between voltages. An analog signal is like a dimmer switch on a light, whereas a digital signal is like a simple on/off switch.&nbsp;

Digital signals only can ever have two states, they are either are **on** (high logic level voltage like 3.3V) or **off** (low logic level voltage like 0V / ground).

By contrast, analog signals can be any voltage in-between on and off, such as 1.8V or 0.001V or 2.98V and so on.

![](https://cdn-learn.adafruit.com/assets/assets/000/102/411/medium800/analog_in_Analog_Template_analog.jpg?1622144011)

Analog signals are continuous values which means they can be an _infinite_ number of different voltages. Think of analog signals like a floating point or fractional number, they can smoothly transiting to _any_ in-between value like 1.8V, 1.81V, 1.801V, 1.8001V, 1.80001V and so forth to infinity.

Many devices use analog signals, in particular sensors typically output an analog signal or voltage that varies based on something being sensed like light, heat, humidity, etc.

## Analog to Digital Converter (ADC)

An analog-to-digital-converter, or ADC, is the key to reading analog signals and voltages with a microcontroller. An ADC is a device that reads the voltage of an analog signal and converts it into a digital, or numeric, value. The microcontroller can’t read analog signals directly, so the analog signal is first converted into a numeric value by the ADC.&nbsp;

The black line below shows a digital signal over time, and the red line shows the converted analog signal over the same amount of time.

![](https://cdn-learn.adafruit.com/assets/assets/000/102/412/medium800/analog_in_Analog_Template_ADC.jpg?1622144080)

Once that analog signal has been converted by the ADC, the microcontroller can use those digital values any way you like!

## Potentiometers

A potentiometer is a small variable resistor that you can twist a knob or shaft to change its resistance. It has three pins. By twisting the knob on the potentiometer you can change the resistance of the middle pin (called the wiper) to be anywhere within the range of resistance of the potentiometer.

By wiring the potentiometer to your board in a special way (called a voltage divider) you can turn the change in resistance into a change in voltage that your board’s analog to digital converter can read.

![](https://cdn-learn.adafruit.com/assets/assets/000/102/413/medium800/analog_in_Analog_Template_potentiometer.jpg?1622144123)

To wire up a potentiometer as a voltage divider:

- Connect **one outside pin** to **ground**
- Connect **the other outside pin** to **voltage in (e.g. 3.3V)**
- Connect **the middle pin** to **an analog pin (e.g. A0)**

![analog_in_Analog_template_pot_voltage_divider.jpg](https://cdn-learn.adafruit.com/assets/assets/000/102/481/medium640/analog_in_Analog_template_pot_voltage_divider.jpg?1622481955)

## Hardware

In addition to your microcontroller board, you will need the following hardware to follow along with this example.

 **Potentiometer**

### STEMMA Wired Potentiometer Breakout Board - 10K ohm Linear

[STEMMA Wired Potentiometer Breakout Board - 10K ohm Linear](https://www.adafruit.com/product/4493)
For the easiest way possible to measure twists, turn to this STEMMA potentiometer breakout (ha!). This plug-n-play pot comes with a JST-PH 2mm connector and a matching &nbsp;[JST PH 3-Pin to Male Header Cables - 200mm](https://www.adafruit.com/product/3893), so wiring up is a cinch....

Out of Stock
[Buy Now](https://www.adafruit.com/product/4493)
[Related Guides to the Product](https://learn.adafruit.com/products/4493/guides)
![Video of a white hand turning the knob on a STEMMA Wired Potentiometer Breakout Board connect to a breadboard. Color changes when the knob is twisted. ](https://cdn-shop.adafruit.com/product-videos/640x480/4493-04.jpg)

## Wire Up the Potentiometer

Connect the potentiometer to your board as follows.

- **Feather 3.3V&nbsp;** to **&nbsp;potentiometer left pin**
- **Feather ADC&nbsp;** to **&nbsp;potentiometer middle pin**
- **Feather GND&nbsp;** to **&nbsp;potentiometer right pin**

![adafruit_products_fthr-esp8266-pot_bb.png](https://cdn-learn.adafruit.com/assets/assets/000/118/264/medium640/adafruit_products_fthr-esp8266-pot_bb.png?1675798456)

## Create a Potentiometer Component on Adafruit IO

On the device page, click the New Component (or "+") button to open the component picker.

![](https://cdn-learn.adafruit.com/assets/assets/000/118/265/medium800/adafruit_products_feather-esp8266-new-component.png?1675798488)

Search for the component name by entering `potentiometer`&nbsp;into the text box on the component picker, the list of components should update as soon as you stop typing.

![analog_in__pot___N0AyUqauwx.png](https://cdn-learn.adafruit.com/assets/assets/000/128/616/medium640/analog_in__pot___N0AyUqauwx.png?1709746646)

### Filtering and searching for components

Since WipperSnapper supports such a large number of components, there is keyword filtering. Try searching for various keywords, like:

- component names: `aht20`,&nbsp;`servo`,&nbsp;`buzzer`,&nbsp;`button`,&nbsp;`potentiometer`, etc
- sensor types:&nbsp;`light`,&nbsp;`temperature`,&nbsp;`pressure`,&nbsp;`humidity`, etc
- interface:&nbsp;`i2c`,&nbsp;`uart`,&nbsp;`ds18x20`,&nbsp;`pin`, etc (also I2C addresses e.g.&nbsp;`0x44`)
- vendor:&nbsp;`Adafruit`,&nbsp;`ASAIR`,&nbsp;`Infineon`,&nbsp;`Bosch`,&nbsp;`Honeywell`,&nbsp;`Sensirion`, etc

There are also added product and documentation links for every component, follow the links beneath the component descriptions to be taken to the appropriate product page or Learn Guide.

Select the&nbsp; **Potentiometer** &nbsp;from the list of results to go to the component configuration page.

There will be a back button if you select the wrong component, and you can use the Edit component icon (⚙️) on the device page to update the component configuration in the future.

![analog_in__pot___N0AyUqauwx.png](https://cdn-learn.adafruit.com/assets/assets/000/128/617/medium640/analog_in__pot___N0AyUqauwx.png?1709746737)

On the _Create Potentiometer Component_ form:

- Set&nbsp; **Potentiometer Pin** &nbsp;to&nbsp; **A0**

- Select **"On Change"** as the **Return Interval**
- Select **Raw Analog Value** as the **Return Type**

Then, click Create Component

![](https://cdn-learn.adafruit.com/assets/assets/000/118/267/medium800/adafruit_products_ftr-esp8266-pot-pin.png?1675798775)

The potentiometer component appears on your board page! Next, learning to read values from it.

![](https://cdn-learn.adafruit.com/assets/assets/000/118/268/medium800/adafruit_products_fthr-esp8266-pot-pin.png?1675798744)

## Read Analog Pin Values

Rotate the potentiometer to see the value change.

![](https://cdn-learn.adafruit.com/assets/assets/000/118/240/medium800thumb/analog_in__pot___ezgif.com-video-to-gif.jpg?1675792293)

_What do these values mean?_

WipperSnapper reports ADC "raw values" as 16-bit unsigned integer values. Your potentiometer will read between 0 (twisting the pot to the leftmost position) and 65535 (twisting the pot to the rightmost position).&nbsp;

## Read Analog Pin Voltage Values

You can update the potentiometer component (or any analog pin component in WipperSnapper) to report values in Volts. To do this, on the right-hand side of the potentiometer component, click the cog button.

![](https://cdn-learn.adafruit.com/assets/assets/000/118/241/medium800/analog_in__pot___cog-click.png?1675792568)

Under **Return Type** , click Voltage.

Click Update Component to send the updated component settings to your board running WipperSnapper.

![](https://cdn-learn.adafruit.com/assets/assets/000/118/242/medium800/analog_in__pot___voltage-select.png?1675792603)

Now, twist the potentiometer to see the value reported to Adafruit IO in Volts!

![](https://cdn-learn.adafruit.com/assets/assets/000/118/243/medium800thumb/analog_in__pot___ezgif.com-video-to-gif_%281%29.jpg?1675792716)

# Adafruit Feather HUZZAH ESP8266

## I2C Sensor

Info: 

Inter-Integrated Circuit, aka **I2C** , is a two-wire protocol for connecting sensors and "devices" to a microcontroller. A large number of sensors, including the ones sold by Adafruit, use I2C to communicate.&nbsp;

**Typically, using I2C with a microcontroller involves programming. Adafruit IO and WipperSnapper let you configure a microcontroller to read data from an I2C sensor and publish that data to the internet without writing code.**

The WipperSnapper firmware supports a number of I2C sensors,&nbsp;[viewable in list format here](https://github.com/adafruit/Wippersnapper_Components/tree/main/components/i2c).

- If you do not see the I2C sensor you're attempting to use with WipperSnapper,&nbsp;[Adafruit has a guide on adding a component to Adafruit IO WipperSnapper here](https://learn.adafruit.com/how-to-add-a-new-component-to-adafruit-io-wippersnapper).&nbsp;

On this page, you'll learn how to wire up an I2C sensor to your board. Then, you'll create a new component on Adafruit IO for your I2C sensor and send the sensor values to Adafruit IO. Finally, you'll learn how to locate, interpret, and download the data produced by your sensors.

## Parts

You will need the following parts to complete this page:

### Adafruit MCP9808 High Accuracy I2C Temperature Sensor Breakout

[Adafruit MCP9808 High Accuracy I2C Temperature Sensor Breakout](https://www.adafruit.com/product/5027)
The MCP9808 digital temperature sensor is one of the more accurate/precise we've ever seen, with a typical accuracy of ±0.25°C over the sensor's -40°C to +125°C range and precision of +0.0625°C. They work great with any microcontroller using standard I2C. With...

In Stock
[Buy Now](https://www.adafruit.com/product/5027)
[Related Guides to the Product](https://learn.adafruit.com/products/5027/guides)
![Top view of temperature sensor breakout above an OLED display FeatherWing. The OLED display reads "MCP9808 Temp: 24.19ºC"](https://cdn-shop.adafruit.com/640x480/5027-04.jpg)

### STEMMA QT / Qwiic JST SH 4-pin to Premium Male Headers Cable

[STEMMA QT / Qwiic JST SH 4-pin to Premium Male Headers Cable](https://www.adafruit.com/product/4209)
This 4-wire cable is a little over 150mm / 6" long and fitted with JST-SH female 4-pin connectors on one end and premium Dupont male headers on the other. Compared with the chunkier JST-PH these are 1mm pitch instead of 2mm, but still have a nice latching feel, while being easy to insert...

Out of Stock
[Buy Now](https://www.adafruit.com/product/4209)
[Related Guides to the Product](https://learn.adafruit.com/products/4209/guides)
![Angled Shot of the STEMMA QT / Qwiic JST SH 4-pin to Premium Male Headers Cable.](https://cdn-shop.adafruit.com/640x480/4209-05.jpg)

## Wiring
If you're using a breadboard or a "STEMMA QT / Qwiic JST SH 4-pin to Premium Male Headers Cable":

- **Board power&nbsp;** to **&nbsp;MCP9808 VIN**
- **Board ground&nbsp;** to **&nbsp;MCP9808 GND**
- **Board SCL&nbsp;** to **&nbsp;MCP9808 SCL**
- **Board SDA&nbsp;** to **&nbsp;MCP9808 SDA**

![adafruit_products_fthr-esp8266-mcp9808-stemma_bb.png](https://cdn-learn.adafruit.com/assets/assets/000/118/270/medium640/adafruit_products_fthr-esp8266-mcp9808-stemma_bb.png?1675799387)

![adafruit_products_fthr-esp8266-mcp9808-bb_bb.png](https://cdn-learn.adafruit.com/assets/assets/000/118/271/medium640/adafruit_products_fthr-esp8266-mcp9808-bb_bb.png?1675800660)

## Add an MCP9808 Component

On the device page, click the New Component (or "+") button to open the component picker.

![](https://cdn-learn.adafruit.com/assets/assets/000/118/301/medium800/adafruit_products_feather-esp8266-new-component.png?1675819493)

Search for the component name by entering `MCP9808`&nbsp;into the text box on the component picker, the list of components should update as soon as you stop typing.

![i2c__external__ARROW_YHKeButdWT.png](https://cdn-learn.adafruit.com/assets/assets/000/127/456/medium640/i2c__external__ARROW_YHKeButdWT.png?1706830517)

### Filtering and searching for components

Since WipperSnapper supports such a large number of components, there is keyword filtering. Try searching for various keywords, like:

- component names:&nbsp;`aht20`,&nbsp;`servo`,&nbsp;`buzzer`,&nbsp;`button`,&nbsp;`potentiometer`, etc
- sensor types:&nbsp;`light`,&nbsp;`temperature`,&nbsp;`pressure`,&nbsp;`humidity`, etc
- interface:&nbsp;`i2c`,&nbsp;`uart`,&nbsp;`ds18x20`,&nbsp;`pin`, etc (also I2C addresses e.g.&nbsp;`0x44`)
- vendor:&nbsp;`Adafruit`,&nbsp;`ASAIR`,&nbsp;`Infineon`,&nbsp;`Bosch`,&nbsp;`Honeywell`,&nbsp;`Sensirion`, etc

There are added product and documentation links for every component, follow the links beneath the component descriptions to be taken to the appropriate product page or Learn Guide.

Select the&nbsp; **MCP9808** &nbsp;from the list of results to go to the component configuration page.

There will be a back button if you select the wrong component, and you can use the Edit component icon (⚙️) on the device page to update the component configuration in the future.

![i2c__external__ARROW_YHKeButdWT.png](https://cdn-learn.adafruit.com/assets/assets/000/127/457/medium640/i2c__external__ARROW_YHKeButdWT.png?1706830625)

On the component configuration page, the MCP9808's I2C sensor address should be listed along with the sensor's settings.

![](https://cdn-learn.adafruit.com/assets/assets/000/117/981/medium800/i2c__external__mcp9808-form.png?1675199307)

The MCP9808 sensor can measure ambient temperature. This page has individual options for reading the ambient temperature, in either Celsius or Fahrenheit. You may select the readings which are appropriate to your application and region.

The&nbsp; **Send Every** &nbsp;option is specific to each sensor measurement. This option will tell the board how often it should read from the sensor and send the data to Adafruit IO. Measurements can range from every 30 seconds to every 24 hours.

For this example, set the&nbsp; **Send Every&nbsp;** interval for both seconds to&nbsp; **Every 30 seconds.&nbsp;** Click&nbsp; **Create Component**.

![](https://cdn-learn.adafruit.com/assets/assets/000/117/982/medium800/i2c__external__mcp9808-form-2.png?1675199314)

The board page should now show the MCP9808 component you created. After the interval you configured elapses, the WipperSnapper firmware running on your board automatically reads values from the sensor and sends them to Adafruit IO.

![](https://cdn-learn.adafruit.com/assets/assets/000/118/302/medium800/adafruit_products_fthr-esp8266-mcp9808-page.png?1675819442)

## Read I2C Sensor Values

Now to look behind the scenes at a powerful element of using Adafruit IO and WipperSnapper. When a new component is created on Adafruit IO, an&nbsp;[Adafruit IO Feed](https://learn.adafruit.com/adafruit-io-basics-feeds)&nbsp;is also created. This Feed holds your sensor component values for long-term storage (30 days of storage for Adafruit IO Free and 60 days for Adafruit IO Plus plans).

Aside from holding the&nbsp; **values** &nbsp;read by a sensor, the component's feed also holds&nbsp; **metadata** &nbsp;about the data pushed to Adafruit IO. This includes settings for whether the data is public or private, what license the stored sensor data falls under, and a general description of the data.

Next, to look at the sensor temperature feed. To navigate to a component's feed, click on the chart icon in the upper-right-hand corner of the component.

![](https://cdn-learn.adafruit.com/assets/assets/000/117/984/medium800/i2c__external__chart-icon.png?1675199374)

On the component's feed page, you'll each data point read by your sensor and when they were reported to Adafruit IO.

![](https://cdn-learn.adafruit.com/assets/assets/000/117/985/medium800/i2c__external__mcpx-feed.png?1675199406)

### Doing more with your sensor's Adafruit IO Feed

This only scratches the surface of what Adafruit IO Feeds can accomplish for your IoT projects. For a complete overview of Adafruit IO Feeds, including tasks like downloading feed data, sharing a feed, removing erroneous data points from a feed, and more,&nbsp;[head over to the "Adafruit IO Basics: Feed" learning guide](https://learn.adafruit.com/adafruit-io-basics-feeds).

# Adafruit Feather HUZZAH ESP8266

## Using MicroPython

# Adafruit Feather HUZZAH ESP8266

## Downloads

# Datasheets & Files

- [AP2112K-3.3V regulator onboard](http://www.diodes.com/_files/datasheets/AP2112.pdf)
- [CP2104 USB-to-Serial converter](http://www.adafruit.com/datasheets/cp2104.pdf)
- [EagleCAD PCB Files on GitHub](https://github.com/adafruit/Adafruit-Feather-ESP8266-HUZZAH-PCB)
- [Fritzing object in Adafruit Fritzing Library](https://github.com/adafruit/Fritzing-Library/)
- [3D Models on GitHub](https://github.com/adafruit/Adafruit_CAD_Parts/tree/master/2821%20Feather%20HUZZAH%20ESP8266)

![](https://cdn-learn.adafruit.com/assets/assets/000/083/326/medium800thumb/adafruit_products_2821-Adafruit-ESP8266-Feather.jpg?1572537506)

[Feather HUZZAH ESP8266 Pinout Diagram](https://cdn-learn.adafruit.com/assets/assets/000/046/211/original/Huzzah_ESP8266_Pinout_v1.2.pdf?1504807178)
# More info about the ESP8266

- [ESP8266 specification sheet](http://www.adafruit.com/datasheets/ESP8266_Specifications_English.pdf)
- [FCC test report](http://www.adafruit.com/datasheets/ESP12FCCtestreport.pdf) for the module used on this breakout
- [CE test report for the module used on this breakout](http://www.adafruit.com/datasheets/ESP12CE.jpg)
- Huuuuge amount of information on [http://www.esp8266.com/](http://www.esp8266.com/) community forum!
- [NodeMCU (Lua for ESP8266) webpage](http://nodemcu.com/index_en.html)&nbsp;with examples and documentation on the Lua framework
- [Arduino IDE support for ESP8266](https://github.com/esp8266/Arduino)
- [NodeMCU PyFlasher - a cross platform ESP flashing tool](https://github.com/marcelstoer/nodemcu-pyflasher/releases)

_[Don't forget to visit esp8266.com for the latest and greatest in ESP8266 news, software and gossip!](http://www.esp8266.com/)_

# Schematic

Click to enlarge

![](https://cdn-learn.adafruit.com/assets/assets/000/088/838/medium800/adafruit_products_Feather_ESP8266_HUZZAH_sch.png?1583183441)

# Rev G Schematic
![](https://cdn-learn.adafruit.com/assets/assets/000/096/603/medium800/adafruit_products_schem.png?1604095577)

# Fabrication Print

Dimensions in inches

![](https://cdn-learn.adafruit.com/assets/assets/000/028/672/medium800/adafruit_products_espbrd.png?1448245964)

# Adafruit Feather HUZZAH ESP8266

## ESP8266 F.A.Q.

### 

The ESP8266 uses some of the pins as 'boot mode' pins so on boot they must be set to certain values:

- **CH\_PD (EN)&nbsp;**should be always pulled high (it will disable the entire module if low)
- **RST** should be always pulled high (it will disable the entire module if low)
- **GPIO 0** sets whether the bootloader is active, it must be pulled HIGH during power up/reset for the user program to run. If it's pulled LOW, it will activate the bootloader. The built-in red LED on #0 pulls it up
- **GPIO 2** must be pulled high on power up/reset.
- **GPIO 15** must be pulled low on power up/reset.

### 

The most common reason for crashes is power failure. Make sure you're powering the Huzzah with a good ~5V power supply, and if you're using a USB-Serial cable, that it's plugged into the mainboard of your computer or through a **powered** hub!

### I can't seem to find the Serial port on my computer for the Feather HUZZAH?

Don't forget to install the&nbsp;[CP2104 VCP drivers](https://www.silabs.com/developers/usb-to-uart-bridge-vcp-drivers) for your computer, they are required!

### 

Many cheap electronics come with charge-only USB cables, which cause headaches later. Make sure you are using a proper data/sync USB cable. If you find a cable that is charge-only (not data/sync also) throw it out so you don't have the same problem again.

### 

If your error message looks like this:

_fork/exec /Users/xxxxxxx/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++: no such file or directory_  
_Error compiling._

To fix this problem, do this:

1. Open the Boards Manager in the Arduino IDE
2. Uninstall the ESP8266 support
3. go to your ~LIbrary folder (in the Finder, select "Go::Go to folder:, and enter **~Library** ). Find the folder Arduino15.
4. In the Arduino15 folder, go into packages, and delete the folder **esp8266**
5. Go back to the Arduino IDE, and install ESP8266 board support.
6. Now go back to the Finder, and check that you have the xtensa-lx106-elf-g++ file&nbsp;in the path&nbsp; **_Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++_**
7. That's it!

### 

This is the ROM debug messages, it's transmitted at 74880 baud so you rarely see it in proper 'ascii output' - instead usually it gets corrupted into a bunch of strange characters.

### 

Make sure you're using a good quality USB/Serial cable. Install the official drivers for that cable too! We've also noticed that PL2303-based cables don't work on Macs for some reason. FTDI or CP210x based chipsets work best

### 

Sometimes, it helps to switch the board type to "Generic ESP8266 Module". &nbsp;Set the Reset Method to "nodemcu"

See [this forum post](http://forums.adafruit.com/viewtopic.php?f=24&t=75423#p474048)

### 

You say your led is stuck on dim and&nbsp;you get an error trying to upload? And you're sure your serial cable is connected and working correctly? Well, here's a potential fix: Connect the GPIO0 pin to GND through a 220 ohm resistor. Leave it connected while you upload. &nbsp;You may have to try it a couple of times, but it should eventually upload and get the HUZZAH unstuck from bootload mode! You can then remove the resistor connection, and your HUZZAH will be happy ever after!

(Note: you may also have to tie RST and EN (CH\_PD) together to get this to work. &nbsp;Remove the connection once you have the module programmed).

Thanks to [forum user misslevania for the tip](https://forums.adafruit.com/viewtopic.php?f=19&t=91951&p=475182#p475182)!

### 

Make sure your terminal software is sending correct line endings! The default PuTTY settings may be wrong when trying to talk to Lua on an ESP8266. Lua expects CRLF "\r\n" line endings, and apparently PuTTY defaults to just LF "\n"!


## Primary Products

### Adafruit Feather HUZZAH with ESP8266 - Loose Headers

[Adafruit Feather HUZZAH with ESP8266 - Loose Headers](https://www.adafruit.com/product/2821)
Feather is the new development board from Adafruit, and like its namesake, it is thin, light, and lets you fly! We designed Feather to be a new standard for portable microcontroller cores.

This is the&nbsp; **Adafruit Feather HUZZAH ESP8266** &nbsp;- our take on an...

In Stock
[Buy Now](https://www.adafruit.com/product/2821)
[Related Guides to the Product](https://learn.adafruit.com/products/2821/guides)

## Featured Products

### Stacking Headers for Feather - 12-pin and 16-pin female headers

[Stacking Headers for Feather - 12-pin and 16-pin female headers](https://www.adafruit.com/product/2830)
These two **Female Stacking Headers** alone are, well, lonely. But pair them with any of our [Feather](https://www.adafruit.com/categories/777) boards and you're in business!

What do they do? They stack. Put the headers through your Feather and then you can...

Out of Stock
[Buy Now](https://www.adafruit.com/product/2830)
[Related Guides to the Product](https://learn.adafruit.com/products/2830/guides)
### Lithium Ion Polymer Battery - 3.7v 150mAh

[Lithium Ion Polymer Battery - 3.7v 150mAh](https://www.adafruit.com/product/1317)
Lithium-ion polymer (also known as 'lipo' or 'lipoly') batteries are thin, light, and powerful. The output ranges from 4.2V when completely charged to 3.7V. This battery has a capacity of 150mAh for a total of about 0.6 Wh. If you need a larger battery, <a...></a...>

Out of Stock
[Buy Now](https://www.adafruit.com/product/1317)
[Related Guides to the Product](https://learn.adafruit.com/products/1317/guides)
### Lithium Ion Polymer Battery - 3.7V 350mAh

[Lithium Ion Polymer Battery - 3.7V 350mAh](https://www.adafruit.com/product/2750)
Lithium-ion polymer (also known as 'lipo' or 'lipoly') batteries are thin, light, and powerful. The output ranges from 4.2V when completely charged to 3.7V. This battery has a capacity of 350mAh for a total of about 1.3 Wh. If you need a larger (or smaller!) battery, <a...></a...>

Out of Stock
[Buy Now](https://www.adafruit.com/product/2750)
[Related Guides to the Product](https://learn.adafruit.com/products/2750/guides)
### Lithium Ion Polymer Battery - 3.7v 500mAh

[Lithium Ion Polymer Battery - 3.7v 500mAh](https://www.adafruit.com/product/1578)
Lithium-ion polymer (also known as 'lipo' or 'lipoly') batteries are thin, light, and powerful. The output ranges from 4.2V when completely charged to 3.7V. This battery has a capacity of 500mAh for a total of about 1.9 Wh. If you need a larger (or smaller!) battery, <a...></a...>

Out of Stock
[Buy Now](https://www.adafruit.com/product/1578)
[Related Guides to the Product](https://learn.adafruit.com/products/1578/guides)

## Related Guides

- [Adafruit IO Home: Security ](https://learn.adafruit.com/adafruit-io-home-security.md)
- [MicroPython Hardware: I2C Devices](https://learn.adafruit.com/micropython-hardware-i2c-devices.md)
- [Fair Weather Friend: Internet-Connected Migraine or Allergies Detector](https://learn.adafruit.com/fair-weather-friend-internet-connected-health-and-leisure-forecaster.md)
- [Adafruit IO Basics: Temperature & Humidity](https://learn.adafruit.com/adafruit-io-basics-temperature-and-humidity.md)
- [CircuitPython Hardware: MPR121 Capacitive Touch Breakout](https://learn.adafruit.com/circuitpython-hardware-mpr121-capacitive-touch-breakout.md)
- [MicroPython Basics: ESP8266 WebREPL](https://learn.adafruit.com/micropython-basics-esp8266-webrepl.md)
- [Build a Cloud-Connected ESP8266 Power Meter](https://learn.adafruit.com/build-a-cloud-connected-esp8266-power-meter.md)
- [MicroPython Hardware: SPI Devices](https://learn.adafruit.com/micropython-hardware-spi-devices.md)
- [MicroPython Basics: Loading Modules](https://learn.adafruit.com/micropython-basics-loading-modules.md)
- [ESP8266 WiFi Weather Station with Color TFT Display](https://learn.adafruit.com/wifi-weather-station-with-tft-display.md)
- [Automatic Twitch On-Air Sign](https://learn.adafruit.com/automatic-twitch-on-air-sign.md)
- [MicroPython Basics: Load Files & Run Code](https://learn.adafruit.com/micropython-basics-load-files-and-run-code.md)
- [Building CircuitPython](https://learn.adafruit.com/building-circuitpython.md)
- [DIY ESP8266 Home Security with Lua and MQTT](https://learn.adafruit.com/diy-esp8266-home-security-with-lua-and-mqtt.md)
- [Mystery Box: Haunted Radio](https://learn.adafruit.com/mystery-box-haunted-radio.md)
