HowTo: Flash ESP8266 with NodeMCU firmware

Published: 06 June 2015

Author: Arne Schauf

Category: ESP8266

Hardware Requirements

Option 1

Less soldering, more “out-of-the-box”

Mandatory

  • ESP8266 NodeMCU dev board (a lot less soldering needed) AliExpress
    • already includes:
      • ESP8266 chip
      • USB/Serial communication unit
      • Power regulaor/converter
      • other helpful stuff (like buttons for reset/flash, etc)

Option 2

More soldering than option 1, but more DIY

2.1: Mandatory

  • ESP8266 (plain) AliExpress
  • USB to Serial Cable e.g. PL2303HX AliExpress or in the electronics dispenser at shackspace (2€)
  • 3.3V Converter e.g. LM1117 AliExpress

Suitable for both options

Sensors

Additional stuff to make it work

Stuff around to make it work, like resistors, cables, etc. Choose what you think suits your needs.

Software requirements

You will need git, screen and python. Please install them if you don’t already have them.

Check out the following repos (git):

  • https://github.com/4refr0nt/luatool.git
  • https://github.com/themadinventor/esptool.git
  • https://github.com/nodemcu/nodemcu-firmware.git

Connecting everything

With the NodeMCU dev board

If you have the devboard just connect a micro usb cable and your ready to go.

With the white breakout board

Solder the ESP on your board.

Without XC6206P332PR (small voltage regulator on the back of the board)

Measure the resitor in the middle below the ESP between VCC and GND, it should be a zero resitor/bridge => 0 Ohm. There are some boards that have a wrong part there: a 10k Ohm. If you have that you need to remove that resistor and bridge it with something else (small cable, solder, …).
You will need to connect VCC of the board to 3.3V now.

With XC6206P332PR

Remove the resistor in the middle below the ESP between VCC and GND. Then solder the XC6206P332PR onto the back of the white board. You can now connect up to 6V to VCC and it will be regulated to 3.3V. (Minimum voltage needed has to be more than 3.3V)

Connecting with the white board

With the white breakout board you have to connect GND, VCC (voltage depends on if you have XC6206P332PR), RX and TX of your serial cable to flash the ESP. Also to enter flash mode you have to pull down GPIO0 to GND during startup (just connect it).

Flashing

TBD

Published: 06 June 2015

Author: Arne Schauf

Category: ESP8266