This document provides instructions for programming the esp12e module using an Arduino IDE, including connecting the esp12e to an external 3.3V power supply, FTDI COM port, and configuring the Arduino IDE to support the esp12e board. It then outlines uploading an example blinking LED code to the esp12e and describes issues encountered with an unstable power supply, which were resolved by adding additional power cables and a capacitor to provide stable 3.3V power to the esp12e module.
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
145 views
Esp8266 12e Programming Mode Document
This document provides instructions for programming the esp12e module using an Arduino IDE, including connecting the esp12e to an external 3.3V power supply, FTDI COM port, and configuring the Arduino IDE to support the esp12e board. It then outlines uploading an example blinking LED code to the esp12e and describes issues encountered with an unstable power supply, which were resolved by adding additional power cables and a capacitor to provide stable 3.3V power to the esp12e module.
This article will show how to program esp12e by using Arduino IDE. What hardware we need is: (1) esp12e PCB (2) Bread board (3) External power supply 3.3V (4) FTDI COM Port (5) Some cable, resistor, LED
Step 1. Configure Arduino IDE
File -> Preferences -> paste link for "Additional Boards Manager URLs": http://arduino.esp8266.com/stable/package_esp8266com_index.j son Choose "Board manager" -> Type "esp" in search box -> install esp library: Step 2. Wire connection Use external 3.3V to supply board. This case, we used LM317 to make about 3.3V for esp12e Connect board to FTDI COM port board. GPIO-0 will have 2 state:
(1) Programming mode: GPIO-0 should be short to GND
(2) Running mode: GPIO-0 should be short to VCC (3.3V) Note: GPIO2 can be floated (connect nowhere). However, we also connect it to VCC as in datasheet instruction
Make this connection to programming:
(1) Programming mode: GPIO-0 should be short to GND (2) Running mode: GPIO-0 should be short to VCC (3.3V) Note: GPIO2 can be floated (connect nowhere). However, we also connect it to VCC as in datasheet instruction
Make this connection to programming:
Step 3. Load example Configure programming for ESP in Arduino Make blinking example -> Upload to board (remember press button "reset" (button in step 2), just right after "uploading ...." appear) After uploading finished, result screen is here: Step 4. Running
Circuit in step 2 follows configure as above picture -> upload is
done (as Arduino IDE information) To make it run, change GPIO-0 to HIGH (3.3V) -> press button "reset" to make the board run If everything is smoothly, result will be shown (in our case, UART speed of esp12e is 74880baud!) .... and LED on GPIO16 will be blink
We finally got experience with esp12e: because we used
breadboard to pin out esp12e PCB, power supply is dropped at cable connection! It makes esp12e not enough power or power not stable. So, esp12e can't work: (1) Case 1 of RUN mode: after thrown reset information, it stand there with nothing happen ets Jan 8 2013,rst cause:1, boot mode:(3,7)
load 0x4010f000, len 1384, room 16
tail 8 chksum 0x2d csum 0x2d v09f0c112 ~ld
(2) Case 2 of RUN mode: it will thrown a bunch of word (can't be
translated for human) repeatedly
(3) Case 3 of PROGRAMMING mode: after every pressing reset,
it always shows: ets Jan 8 2013,rst cause:1, boot mode:(1,6) To overcome this problem, we connect power and ground of esp12e to external power supply with many cables, so power is supply to esp12e is stable and not drop. One more thing is put a small capacitor at VCC and GND In PROGRAMMING mode, esp12e doesn't need much current, it is easy to download (power supply not must be so good) In RUN mode, esp12e will use much current, if power supply for esp12e isn't good, it can't afford esp12e run normally
Above picture is our result. Thanks GOD! It took us about 2
months to make it run!
comments
1.
GIULIANO PISONIMay 22, 2017 at 4:09 AM
Did you try with other GPIO. 16 has role in the deep sleep function, so it's better to try an other one. And refer to the Kolban's book about ESP8266