Chat here is you are connecting ESP-xx type modules to existing AVR based Arduino

Moderator: igrr

User avatar
By MFarghaly
#50250 Hi there, i have a ESP8266-12 Wi-fi Module and i want to configure it as a Server by Serial Communication with an Arduino Uno, I did the following :

1- Circuitary :
- connected the 3.3v from the Arduino to the Vcc of the Module.
-connected the Ground from the Arduino to the Ground of the Module.
-connected the Tx and Rx of the Module to Pins 2,3 respectively (I will set them as Serial Pins later in Code)

2- Arduino Cpde:

Code: Select all#include<SoftwareSerial.h>
#define RxPin 3
#define TxPin 2

SoftwareSerial esp = SoftwareSerial(2,3);

void setup() {

  pinMode(RxPin, INPUT);

  pinMode(TxPin,OUTPUT);
 
  Serial.begin(9600);
  esp.begin(9600);

  if(esp.isListening()!= 0)
     Serial.println("Module is Listening");

  esp.print("anyMessage");

  if(esp.available())
    Serial.print("Recieved");
}


now when i open the Serial Monitor i can see the "Module is Listening" message but i can't see the "Recieved" message which means the module is not recieving any data from the Arduino, what am i missing here ?