Arduino Stack Exchange is a question and answer site for developers of open-source hardware and software that is compatible with Arduino. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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() );  }
}

I have http://www.ebay.in/itm/ESP8266-SERIAL-UART-WIFI-WIRELESS-TRANSCEIVER-IOT-MODULE-3-3V-SUPPORT-AP-STA-/271856799656?ssPageName=ADME:L:OC:US:3160

& http://www.ebay.in/itm/ESP-8266-Serial-WIFI-Wireless-Transceiver-Module-for-arduino-and-others-/291600492656?ssPageName=ADME:L:OC:US:3160

Also initially i connected them to 5v vcc & without voltage divider too. :)

Please help!

share|improve this question
    
Does the initial 'AT' command in setup() display 'OK'? Under what conditions has the module worked before? What baud rate did you use when it connected to the Wifi hotspot? – TisteAndii Jan 18 at 1:05
    
It never displayed OK.. So it never worked. & at current config it shows hotspot. – m11404 Jan 18 at 1:07
    
What do you mean by 'it shows hotspot'? It was able to connect to the hotspot? What current config do you mean? – TisteAndii Jan 18 at 1:09
    
I meant hotspot in my mobile phone, & current config is ch_pd to vcc with resistance & all. I think hotspot is created by default.. – m11404 Jan 18 at 1:11
    
Ok you mean the module creates a hotspot by default as soon as you power it? And when you turn it off, your phone cant find the hotspot again, right? This looks like a baud rate issue. You have tried all standard baudrates from 9600 to 115200? – TisteAndii Jan 18 at 1:18

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.