Friday, November 6, 2015

Program standalone ESP8266/ESP-12 WiFi module with Arduino IDE


This post show how to program and run standalone ESP8266/ESP-12 WiFi module. To program ESP8266 board with Arduino, we have to "Install ESP8266 Board to Arduino IDE".

Connect USB-to-Serial adapter to ESP8266/ESP-12 board, FT232RL module is used in this example.

Minimal Hardware Setup for Bootloading only

ESPxx Hardware
PINResistorSerial Adapter
VCCVCC (3.3V)
GNDGND
TX or GPIO2RX
RXTX
GPIO0GND
ResetRTS*
GPIO15PullDown
CH_PDPullUp
  • Note
    • if no RTS is used a manual power toggle is needed

Minimal Hardware Setup for Running only

ESPxx Hardware
PINResistorPower supply
VCCVCC (3.3V)
GNDGND
GPIO0PullUp
GPIO15PullDown
CH_PDPullUp
reference: https://github.com/esp8266/Arduino/blob/master/doc/boards.md


Load Examples > esp8266 > Blink

To program ESP8266 board, press the button to connect GPIO0 to GND. Because there are no RTS in my FT232RL module, so I have to power OFF and ON to reset ESP8266 before programming.

Once programmed, power off the board, press the button to release GPIO0, then power on again to run in standalone.



Updated@2015-11-15:
My setup have no RTS, so I add a button to reset the ESP-12 manually.


List of Standalone ESP8266 board posts:
- Install ESP8266 Board to Arduino IDE
- Program standalone ESP8266/ESP-12 WiFi module with Arduino IDE (this post)
- Simple Web Server example of standalone ESP8266/ESP-12 WiFi Module
Standalone ESP8266/ESP-12: web control on-board LED

10 comments:

  1. Hello! I did everything as you described. but I have gives error.
    error: failed reading byte
    warning: espcomm_send_command: cant receive slip payload data
    warning: espcomm_sync failed
    error: espcomm_open failed

    ReplyDelete
    Replies
    1. i have the same problem but now solved.
      plz check your jumper pin connection on FT232RL(its on 5v).

      Delete
    2. you need to use 10k resistor

      Delete
  2. awsm..thanks for such a nice description.

    ReplyDelete
  3. How it bothers when jumper is in 5v

    ReplyDelete
    Replies
    1. As i remember, ESP-12 operating voltage is 3.3V.

      Delete
  4. yeah i know, im just using ams1117 3.3 regulatr

    ReplyDelete
  5. i made my own board. this page helped me a lot

    ReplyDelete
  6. Very funny the ESP8266 blink example.hahahaha Thanks for the infromation!

    ReplyDelete
  7. you can used directly th e ESP8266 without 10k resistor - Use 3.3V power. And also you must hace common ground on all modules

    ReplyDelete