I followed http://www.martyncurrey.com/arduino-to-esp8266-serial-commincation/#more-1475 tutorial,
I tried all possible solutions found, connecting all pins to vcc, few to ground etc, Whatever worked for others.
Instead of using 1k & 2k Ohm resistance i used 10k & 20k register, & pins 10 & 11 instead of 2 & 3.
I also tried all baudrates, i found.
But at end if i got any response it was random character
ÿÿÿÿÿÿÿÿþÿÿþÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
In some cases it run infinitely long, in some cases it is slow, in some it is fast.
One good signal was that i could see a hotspot named AI-THINKER_A54B8A
, i was also able to connect to hotspot.
The code was
// Basic serial communication with ESP8266
// Uses serial monitor for communication with ESP8266
//
// Pins
// Arduino pin 2 (RX) to ESP8266 TX
// Arduino pin 3 to voltage divider then to ESP8266 RX
// Connect GND from the Arduiono to GND on the ESP8266
// Pull ESP8266 CH_PD HIGH
//
// When a command is entered in to the serial monitor on the computer
// the Arduino will relay it to the ESP8266
//
#include <SoftwareSerial.h>
SoftwareSerial ESPserial(10, 11); // RX | TX
void setup()
{
Serial.begin(9600); // communication with the host computer
//while (!Serial) { ; }
// Start the software serial for communication with the ESP8266
ESPserial.begin(9600);
// Serial.println("");
// Serial.println("Remember to to set Both NL & CR in the serial monitor.");
// Serial.println("Ready");
// Serial.println("");
ESPserial.println("AT");
}
void loop()
{
// listen for communication from the ESP8266 and then write it to the serial monitor
if ( ESPserial.available() ) { Serial.write( ESPserial.read() ); }
// listen for user input and send it to the ESP8266
if ( Serial.available() ) { ESPserial.write( Serial.read() ); }
}
Also initially i connected them to 5v vcc & without voltage divider too. :)
Please help!