BLYNK
HOME       📲 GETTING STARTED       📗 DOCS       ❓HELP CENTER       👉 SKETCH BUILDER

[1685] ESP is not responding


#1
/* Comment this out to disable prints and save space */
#define BLYNK_PRINT Serial
#define TRIGGER 8
#define ECHO    9

#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[] = "527c917fa6a143d88dbc2e3d8fce392d";

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


#include <SoftwareSerial.h>
SoftwareSerial EspSerial(11,10); // RX, TX

// Your ESP8266 baud rate:
#define ESP8266_BAUD 9600

ESP8266 wifi(&EspSerial);

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

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

  Blynk.begin(auth, wifi, ssid, pass);
  pinMode(TRIGGER, OUTPUT);
  pinMode(ECHO, INPUT);
  
}

void loop()
{
  Blynk.run();
   long duration, distance;
  digitalWrite(TRIGGER, LOW);  
  delayMicroseconds(2); 
  
  digitalWrite(TRIGGER, HIGH);
  delayMicroseconds(10); 
  
  digitalWrite(TRIGGER, LOW);
  duration = pulseIn(ECHO, HIGH);
  distance = (duration/2) / 29.1;

   if (distance <= 150) {
    Blynk.virtualWrite(V0, 255);
}
  else {
    Blynk.virtualWrite(V0, 0);
  }

 if (distance <= 100) {
    Blynk.virtualWrite(V1, 255);
}
  else {
    Blynk.virtualWrite(V1, 0);
  }

   if (distance <= 80) {
    Blynk.virtualWrite(V2, 255);
}
  else {
    Blynk.virtualWrite(V2, 0);
  }

   if (distance <= 40) {
    Blynk.virtualWrite(V3, 255);
}
  else {
    Blynk.virtualWrite(V3, 0);
  }

   if (distance <= 20) {
    Blynk.virtualWrite(V4, 255);
}
  else {
    Blynk.virtualWrite(V4, 0);
  }

  
  
  Serial.print(distance);
  Serial.println("Centimeter:");
  Blynk.virtualWrite(V5, distance);
  delay(200);
  Blynk.run();
}
  

This are the coding i used for my project…i got error esp is not responding…my connection for esp i used esp 01 adapter
rx - 11
tx-10
vcc-5
gnd-gnd
tq in advance for help
esp8266 has been flash to latest firmware


#2

Please use search as this topic has been discussed endless number of times.
I edited the topic tag too…

Not necessary a good idea. But then again: Please use search


#3

sorry marvin to disturb i seek the topic in search…i cant find any except my topic


#4

Search for relevant keywords and start reading :slight_smile:

https://community.blynk.cc/search?q=UNO%2C%20ESP-01%2C%20Shield


#5

tq gunner …sorry for disturbance


#6

tq gunner and marvin its working…


#7

One more important topic to read for you:


split this topic #8

A post was split to a new topic: Yet another ESP NOT RESPONDING


closed #9