-->
Page 1 of 1

How to connect ESP8266 12e directly to Arduino Uno (without

PostPosted: Wed Jul 27, 2016 1:16 pm
by Gus
I have bought an ESP8266 12E module and I'm trying to connect it to arduino, without any shields or whatsoever. I've looked everywhere but all I can find is about ESP-01 or with a NodeMCU. I'd like to do the bridge manually, but I don't know which pins I should ground and which pins I should power.

This is my current setup:
Image

And the following sketch:

Code: Select all#include <SoftwareSerial.h>

//RX pin 2, TX pin 3
SoftwareSerial esp8266(2, 3);

#define DEBUG true

void setup() {
  Serial.begin(9600);
  esp8266.begin(115200);
  sendData("AT\r\n", 2000, DEBUG);
  delay(1000);
  Serial.println("Firmware version:");
  delay(3000);
  sendData("AT+GMR\r\n", 2000, DEBUG);
  Serial.println("** End **");
}

void loop() {}

String sendData(String command, const int timeout, boolean debug) {
  String response = "";
  esp8266.print(command);
  long int time = millis();
  while ( (time + timeout) > millis())
  {
    while (esp8266.available())
    {
      // The esp has data so display its output to the serial window
      char c = esp8266.read(); // read the next character.
      response += c;
    }
  }
  if (debug)
  {
    Serial.print(response);
  }
  return response;
}


When run, I get the following output:

Code: Select allFirmware version:
** End **


On the module, the led flashes when I power it up, but after that it remains off. I've already tested the voltage regulator with ReadAnalogVoltage, and the output was 3.33v, so it is working. I have also tried to connect the RST and EN pins directly to the battery's 3.3v, with no luck.

Re: How to connect ESP8266 12e directly to Arduino Uno (with

PostPosted: Wed Aug 03, 2016 5:29 am
by sujeet.banerjee
Try playing with the GPIO15 (GND), GPIO6 (GND), Reset (GND) and Chip_select (3.3V; two next to Reset)

Re: How to connect ESP8266 12e directly to Arduino Uno (with

PostPosted: Sat Aug 06, 2016 11:48 pm
by manucatni
i have the same problem. if you have solved it, please share your solution

Re: How to connect ESP8266 12e directly to Arduino Uno (with

PostPosted: Tue Nov 08, 2016 1:58 am
by yogesh
I have successfully implemented this. It is working perfectly when I sending AT commands, and responding acccording to them.
But its not working when I am sending AT commands from code.
Please help me to get out of this.