July 3, 2015

Hello (ESP8266) World

Hello (ESP8266) World

Yesterday, I sat down and played with my shiny new ESP8266 module. I also got the Huzzah Breakout Board from Adafruit, which uses an ESP module. Actually, I'm still trying to figure out just what is the difference between ESP8266, Huzzah, and NodeMCU.

So far, I've accomplished the following:

  • Gotten an LED to blink on the Huzzah
  • Gotten the Huzzah to read not one, but TWO webpages

The hardware wirings

I'll post more interesting projects later when I have more time to fiddle.

The code

I use CoolTerm for Mac and followed Adafruit's tutorial.

  1. Click Options
  2. Plug in USB
  3. Click "Re-Scan Serial Ports"
  4. Set Port dropdown to "usbserial-blahblah"
  5. Set Baudrate to 9600
  6. Click Terminal (left side)
  7. Check the "Handle BS and Del Character," without which I can't use backspace[1].
  8. Click OK
  9. Click Connect
  10. Type in the following code line by line
gpio.mode(5, gpio.OUTPUT)
while 1 do
  gpio.write(5, gpio.HIGH)
  tmr.delay(1000000)   -- wait 1,000,000 us = 1 second
  gpio.write(5, gpio.LOW)
  tmr.delay(1000000)   -- wait 1,000,000 us = 1 second
end

As for the ESP8266? Well, I got the ESP8266 plugged into my laptop... that's it.

Yeah, still need work here. I would like to just use the ESP because I can get these for $2 on Ebay. I mean, the Huzzah breakout isn't going to break the bank. It's only $10 on Adafruit. But still, that's a 20% decrease in my BOM[1:1]!

I think I will continue to fiddle around with Adafruit's Huzzah Breakout. It would be nice to figure out how to hook the ESP8266 module directly to an Arduino or something, but I'm not sure what's the deal with that right now.


  1. bill of materials = BOM ↩︎ ↩︎