Home > Hardware, Programming, Video > NodeMCU is both a Breadboard-Friendly ESP8266 Wi-Fi Board and a LUA based Firmware

NodeMCU is both a Breadboard-Friendly ESP8266 Wi-Fi Board and a LUA based Firmware

NodeMCU is a LUA based interactive firmware for Expressif ESP8622 Wi-Fi SoC, as well as an open source hardware board that contrary to the $3 ESP8266 Wi-Fi modules includes a CP2102 TTL to USB chip for programming and debugging, is breadboard-friendly, and can simply be powered via its micro USB port.

NodeMCU_Development_BoardLet’s checkout the hardware first. The latest version of the board (V1.0) has the following specifications and features:

  • Wi-Fi Module – ESP-12E module similar to ESP-12 module but with 6 extra GPIOs.
  • USB – micro USB port for power, programming and debugging
  • Headers – 2x 2.54mm 15-pin header with access to GPIOs, SPI, UART, ADC, and power pins
  • Misc – Reset and Flash buttons
  • Power – 5V via micro USB port
  • Dimensions – 49 x 24.5 x 13mm
NodeMCU Headers' Pinout

NodeMCU Headers’ Pinout

The hardware documentation for the board can be found on nodemcu-devkit repo, including schematics and PCB layout designed with Altium Designer, but they should also be compatible with the cheaper Altium CircuitStudio. Sadly, the files have not been updated for 3 to 4 months, so they don’t completely match the latest hardware shown above, and some pins were not connected in the earlier version.

NodeMCU can be purchased for $10 and up on Aliexpress or Seeed Studio. However, it’s not entirely clear which version of the board is sold… The Aliexpress shop shows hardware v0.9, but says they will send the latest version, while Seeed Studio mentions NodeMCU “v2”,  and shows picture of v1.0 hardware, which should be the one you want. The new board will also be up for sale in Europe on nodemcu.eu for 15 to 18 Euros including VAT.

NodeMCU firmware is build with ESP8266 SDK v.0.9.5, based on Lua 51.4 without debug and os modules, lua-cjson, and relies on spiffs (SPI Flash File System) file system. The quick start guide is written on the bottom of the board:

  1. Install CP2102 driver (not needed in Linux)
  2. Use 9600 baud rate
  3. Connect Wi-Fi and enjoy!

Once you are connected, you can just type the command in the terminal. For example to connecting to your Wi-Fi router:


You can also toggle or/and read GPIO status in a similar way to what you’d with Arduino:


To get the board automatically run a script right after boot is complete, you can edit init.lua as follows:


You can find the firmware source code and documentation on Github, as well as nodemcu-flasher, a Windows only tools to flash the firmware to a module. There’s also a separate tool called esptool that will let you flash nodemcu from Linux. In case you find the documentation is all over the place, you might want to checkout NodeMCU video tutorial below.

Nodemcu.com is the official website for the project, but you’ll find more information on Github. You can also get answers to your questions on their BBS or ESP8622 community forums.

  1. neslekkim
    April 21st, 2015 at 16:16 | #1

    Does this model fit an breadboard properly?, I bought one similar nodemcu variant, and it fills the breadboard, so it cannot be used that way: https://instagram.com/p/1qTZeKDOuD/

  2. April 21st, 2015 at 16:19 | #2
  3. neslekkim
    April 22nd, 2015 at 01:03 | #3

    @cnxsoft
    Great, I have to buy an new one then :), Guess I need to order from Seeed, the ones I have, came from Aliexpress a couple of days ago.

  4. April 22nd, 2015 at 09:39 | #4
  5. onebir
  6. August 24th, 2015 at 20:48 | #6
  7. Wolfmann2
    August 28th, 2015 at 18:31 | #7

    Is there any pin compatibility to any cpu-board like Arduino Uno, Nano a.s.o. ??? Or is there salad of lines nessesary in real cpu-life (out of experimental envirement)?

  8. September 23rd, 2015 at 20:21 | #8

    @cnxsoft
    That eBay seller sent me the old version that can’t be used with a breadboard…

  9. October 4th, 2015 at 10:37 | #9

    Simple fix to use previous generation NodeMCU boards with a breadboard: http://lucstechblog.blogspot.com/2015/09/nodemcu-breadboard-aid.html

  10. December 15th, 2015 at 01:28 | #10
  11. December 26th, 2015 at 03:08 | #12

    @neslekkim Hello I used two smaller breadboards and mounted these on either side if the NodeMcu and glued this on top of a larger breadboard. That way the pins on each side become available for more leads connected to each pin.

  12. Ashwni
    April 21st, 2017 at 19:02 | #13

    I got fatal exception (0) with arduino IDE. when I upload program .I post it below:
    00000000
    Fatal exception (0):
    epc1=0x40202770, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x00000000
    Fatal exception (0):
    epc1=0x40202770, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x00000000
    Fatal exception (0):
    epc1=0x40202770, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x00000000
    Fatal exception (0):
    epc1=0x40202770, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x00000000
    Fatal exception (0):
    epc1=0x40202770, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x00000000
    Fatal exception (0):
    epc1=0x40202770, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x00000000
    Fatal exception (0):
    epc1=0x40202770, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x00000000
    Fatal exception (0):
    epc1=0x40202770, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x00000000
    Fatal exception (0):
    epc1=0x40202770, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x00000000
    Fatal exception (0):
    epc1=0x40202770, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x00000000
    Fatal exception (0):
    epc1=0x40202770, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x00000000
    Fatal exception (0):
    epc1=0x40202770, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00

    please tell whats wrong with him?

  1. June 1st, 2015 at 01:57 | #1
  2. October 11th, 2015 at 14:32 | #2
  3. October 21st, 2015 at 16:25 | #3
  4. October 29th, 2015 at 13:50 | #4