Skip to main content

Hello ESP8266

·1 min

Time to check out some new little hardware that came straight from China.

The Shipment

Although there are lots of different articles and forum posts on those little things, it took me some time to figure them out and get my “Hello World!” kinda thing running.

Since I already know the Arduino IDE I have decided to also work with it for flashing the ESPs.

All in all, these are the steps I partially spent my week-end with:

  • Download and install the Arduino IDE.
  • Download and install the ESP8266 core for the Adrduino IDE.
  • This is only for Mac users: Download and install the serial driver that is necessary so you can hook up the development board via USB.
  • In your Arduino IDE select the board “NodeMCU 1.0 (ESP-12E Module)”.
  • In your Arduino IDE select the port “/dev/cu.wchusbserial1410”.

Select board and serial

  • Create your first sketch and upload it to your ESP. I have used the one from this blog post

{% gist 39535250d1e252f74bfdcd0cff81808a esp8266-hello-world.ino %}

  • Run the sketch and open your serial monitor. The colors of the LED should change every half second. To check if the inputs are working, press the button and place your hand around the LDR.

Let it run

Done for today!