Esp 01 is not responding

Before creating the topic

  1. Search forum for similar topics
  2. Check http://docs.blynk.cc and http://help.blynk.cc/
  3. Add details :
    • Hardware model + communication type. For example: Arduino UNO with Ethernet Shield
    • Smartphone OS (iOS or Android) + version
    • Blynk server or local server
    • Blynk Library version
    • Add your sketch code. :point_up:Code should be formatted as example below.

Simply paste your code between ``` If you don’t format your code, your topic can be deleted by moderators.

#define BLYNK_PRINT Serial


#include <ESP8266_Lib.h>
#include <BlynkSimpleShieldEsp8266.h>

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "1OtSGYQGiX0xUsMWU8Yb0fLAa7Fxt4W";

// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "kjmnz_5ghz";
char pass[] = "";

// Hardware Serial on Mega, Leonardo, Micro...
//#define EspSerial Serial1

// or Software Serial on Uno, Nano...
#include <SoftwareSerial.h>
SoftwareSerial EspSerial(2, 3); // RX, TX

// Your ESP8266 baud rate:
#define ESP8266_BAUD 115200

ESP8266 wifi(&EspSerial);

void notifyOnButtonPress()
{
  // Invert state, since button is "Active LOW"
  int isButtonPressed = !digitalRead(2);
  if (isButtonPressed) {
    Serial.println("Button is pressed.");

    // Note:
    //   We allow 1 notification per 15 seconds for now.
    Blynk.notify("Yaaay... button is pressed!");
  }
}

void setup()
{
  // Debug console
  Serial.begin(9600);

  // Set ESP8266 baud rate
  EspSerial.begin(ESP8266_BAUD);
  delay(10);

  Blynk.begin(auth, wifi, ssid, pass);
  // You can also specify server:
  //Blynk.begin(auth, wifi, ssid, pass, "blynk-cloud.com", 80);
  //Blynk.begin(auth, wifi, ssid, pass, IPAddress(192,168,1,100), 8080);

  // Setup notification button on pin 2
  pinMode(2, INPUT_PULLUP);
  // Attach pin 2 interrupt to our handler
  attachInterrupt(digitalPinToInterrupt(2), notifyOnButtonPress, CHANGE);
}

void loop()
{
  Blynk.run();
}


i have an esp01 adaptor and rx is connected to pin 2 and tx = pin 3
it is also connected to the 3.3v of the arduino and ground i dont know why my esp is not responding
this code is also an example code( im jsut trying to get my esp to connect to wifi)

I am using Arduino UNO btw

You have to connect Rx on one device to Tx on the other, and vice versa.

ESP devices only work on 2.4 GH.

You won’t get reliable SoftwareSerial results using a baud rate as high as this. Most people say it’s bets to stick to 9600. But, your Uno and ESP-01 need to be talking to each other at the same baud rate, so you may need to change the ESP’s baud rate using an AT command, which will need an FTDI adapter.

Pete.

Hi pete thanks for the reply. I ve decided to use gsm module instead to notify my phone, now im having trouble because pin 7 n 8 is having a conflict with lcd shield and gsm shield :frowning: thanks for the reply though appreciate it