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
PIN | Resistor | Serial Adapter |
---|---|---|
VCC | VCC (3.3V) | |
GND | GND | |
TX or GPIO2 | RX | |
RX | TX | |
GPIO0 | GND | |
Reset | RTS* | |
GPIO15 | PullDown | |
CH_PD | PullUp |
- Note
- if no RTS is used a manual power toggle is needed
Minimal Hardware Setup for Running only
ESPxx Hardware
PIN | Resistor | Power supply |
---|---|---|
VCC | VCC (3.3V) | |
GND | GND | |
GPIO0 | PullUp | |
GPIO15 | PullDown | |
CH_PD | PullUp |
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
Hello! I did everything as you described. but I have gives error.
ReplyDeleteerror: failed reading byte
warning: espcomm_send_command: cant receive slip payload data
warning: espcomm_sync failed
error: espcomm_open failed
i have the same problem but now solved.
Deleteplz check your jumper pin connection on FT232RL(its on 5v).
you need to use 10k resistor
Deleteawsm..thanks for such a nice description.
ReplyDeleteHow it bothers when jumper is in 5v
ReplyDeleteAs i remember, ESP-12 operating voltage is 3.3V.
Deleteyeah i know, im just using ams1117 3.3 regulatr
ReplyDeletei made my own board. this page helped me a lot
ReplyDeleteVery funny the ESP8266 blink example.hahahaha Thanks for the infromation!
ReplyDeleteyou can used directly th e ESP8266 without 10k resistor - Use 3.3V power. And also you must hace common ground on all modules
ReplyDelete