Distance measurement using Ultrasonic Sensor with New Blynk2.0- Complete guide with Programming Code

แชร์
ฝัง
  • เผยแพร่เมื่อ 31 ธ.ค. 2024

ความคิดเห็น • 145

  • @mayurwadal8167
    @mayurwadal8167 2 ปีที่แล้ว +3

    Well and perfect explained

  • @sohampasalkar21
    @sohampasalkar21 9 หลายเดือนก่อน +2

    Hello Sir , Can you please tell if I have to install drivers etc for my ESP 32 Wroom (30 pin) and if yess which?

    • @SMEDehradun
      @SMEDehradun  9 หลายเดือนก่อน

      If have an issue to install com drivers for your board, then below video link may guide you batter-
      th-cam.com/video/LpohiGf8GiU/w-d-xo.html

  • @nuttyengineer6095
    @nuttyengineer6095 2 ปีที่แล้ว +2

    Well done sir great

    • @SMEDehradun
      @SMEDehradun  2 ปีที่แล้ว +1

      Thank you @NuttyEngineer

  • @hithushmohanaraja1133
    @hithushmohanaraja1133 9 หลายเดือนก่อน +1

    Hi.is 5v enough to operate the sensor? The reading is always zero when i did this.

    • @SMEDehradun
      @SMEDehradun  9 หลายเดือนก่อน +1

      Yes 5V is enough.
      Check that your sensor is connected properly.

  • @kalyanidwivedi1213
    @kalyanidwivedi1213 ปีที่แล้ว +2

    I am getting this error while compiling using NodeMCU ESP8266 board
    "Error compiling for board NodeMCU 1.0 (ESP-12E Module)"

    • @SMEDehradun
      @SMEDehradun  ปีที่แล้ว

      Check that you have selected the proper board & configuration

  • @mohamedhassen5056
    @mohamedhassen5056 7 หลายเดือนก่อน +1

    Hi, the code is giving an error as follow:
    'BLYNK_DEVICE_NAME' was not declared in this scope

    • @SMEDehradun
      @SMEDehradun  7 หลายเดือนก่อน

      If you see the video properly, then you will get that all the header files must inside the programming folder.
      If you want then you can connect to new blynk through an alternate method-
      Below link may help you.
      th-cam.com/video/c5u6-Th1sI4/w-d-xo.html

  • @robertburgess4340
    @robertburgess4340 ปีที่แล้ว +1

    I ran the code an this error appears:
    A fatal error occurred: Unable to verify flash chip connection (Packet content transfer stopped (received 6 bytes)).
    Failed uploading: uploading error: exit status 2

    • @SMEDehradun
      @SMEDehradun  ปีที่แล้ว

      If you follow all the instruction as shown in video and after that, you got this error then your board is having some hardware issue.

  • @satyamjha5521
    @satyamjha5521 10 หลายเดือนก่อน +1

    Hi, the code is giving an error as follow:
    #include "BlynkEdgent.h"
    ^~~~~~~~~~~~~~~
    compilation terminated.
    exit status 1
    Compilation error: BlynkEdgent.h: No such file or directory I have made sure that i installed the library you showed in the video,even then its not working correctly pls help.

    • @SMEDehradun
      @SMEDehradun  10 หลายเดือนก่อน

      Put all the header files inside the code folder & change the blynk credentials also.
      Below video may help you to resolve-
      th-cam.com/video/EPhY_hDozeo/w-d-xo.html

  • @priyankabodade5617
    @priyankabodade5617 ปีที่แล้ว +1

    Sir , I included the blynk library in the arduino IDE but instead of it , shows the error - BlynkEdgent.h:No such file or directory . Please help

    • @SMEDehradun
      @SMEDehradun  ปีที่แล้ว

      You need to put all the header files inside the programming folder do this.
      Below tutorials will help you
      To fix this error.m, but must watch each & every step for this.
      th-cam.com/video/EPhY_hDozeo/w-d-xo.html

  • @_SurajYadav-lr9fl
    @_SurajYadav-lr9fl ปีที่แล้ว +1

    hello sir my readings of ultrasonic sensor is showing 0cm I don't know what's wrong with my project. when I'm using same Ultrasonic sensor with arduino it is working but in case of node mcu it is only showing 0 cm . even my node mcu is successfully connected to wifi and send data to thingspeak website , please sir help me I'm not able to recognize my mistake

    • @SMEDehradun
      @SMEDehradun  ปีที่แล้ว

      Hi,
      This errors shows that there is some issue in the connection. Check the wiring of ultrasonic Connection with NodeMCU.

  • @farukozgur6514
    @farukozgur6514 2 ปีที่แล้ว +1

    I'm trying to transfer the distance I get from hc-sr04 sensors to thingspeak using Nodemcu. Only when measuring distance the sensors work very well but when I write the code to transfer the data to thingspeak or firebase the sensors work very slowly. What could be the reason for this? how can i fix it

    • @SMEDehradun
      @SMEDehradun  2 ปีที่แล้ว

      It may be due to the code you are sending to Thingspeak or firebase.
      You can make a separate function to send data to thinkspeak or firebase. & call it once it in 10 or 15 second. But measure the distance every second. Then you will get regular data from ultrasonic sensor

    • @farukozgur6514
      @farukozgur6514 2 ปีที่แล้ว +1

      @@SMEDehradun thank you. I'll try to send it every 10 or 15 seconds.

    • @SMEDehradun
      @SMEDehradun  2 ปีที่แล้ว

      👍

    • @SMEDehradun
      @SMEDehradun  2 ปีที่แล้ว

      If it didn’t go right, then let me know. I will help you.

    • @farukozgur6514
      @farukozgur6514 2 ปีที่แล้ว

      @@SMEDehradun You are great. I'll try it tomorrow and get back to you. Can you share your e-mail address with me?

  • @kenishida6135
    @kenishida6135 2 ปีที่แล้ว +1

    Hi sir, i wanna ask is it possible to run using 1 board of esp8266 with 2 difference sensor like IR and Ultrasonic sensor.? does the board detect those 2 sensors if i run in 1 board which is esp8266.

    • @SMEDehradun
      @SMEDehradun  2 ปีที่แล้ว +1

      Yes. You can. It will work.

  • @sreeharip4715
    @sreeharip4715 8 หลายเดือนก่อน +1

    I need to sense water level using esp8266...can i use this code

    • @SMEDehradun
      @SMEDehradun  8 หลายเดือนก่อน

      Yes you can use for water level monitoring.

  • @ded8491
    @ded8491 ปีที่แล้ว +1

    does the phone need to be connected to the same wifi?

    • @SMEDehradun
      @SMEDehradun  ปีที่แล้ว

      No.
      You can connect your board to any wifi and you can operate it from your mobile phone anywhere in the world.

  • @damiant9995
    @damiant9995 2 ปีที่แล้ว +1

    Hi. I am using an ESP32 ESP-WROOM-32 Development Board. I managed to get the board to connect to the Blynk App but the HC-SR04 sensor kept on giving 0cm values. I have tested it with another code and the sensor is working fine. Do you have any idea why am I getting this error?

    • @SMEDehradun
      @SMEDehradun  2 ปีที่แล้ว

      Try the change trig & echo with one another. It may solve your problem.

    • @damiant9995
      @damiant9995 2 ปีที่แล้ว +1

      @@SMEDehradun Thank you. I found the error. Apparently I have accidentally swapped the pin number for both pins without realising. Sorry for the inconvenience.

    • @damiant9995
      @damiant9995 2 ปีที่แล้ว +1

      @@SMEDehradun Oh ya I having 1 more issue right now. For some reason, the esp32 is unable to reconnect to Blynk. Is there a way to fix this or reset the wifi connection part using phone?
      Once again, sorry for the inconvenience.

    • @SMEDehradun
      @SMEDehradun  2 ปีที่แล้ว +1

      Ohh. If you want to reconnect it to another wifi or you have designed new project template then you need to erase the ESP32 using esptool.
      See this video for it- th-cam.com/video/3oEvXhgHZHo/w-d-xo.html
      Soon I will make video with alternate solution for blynk.

  • @chinmayitutorials427
    @chinmayitutorials427 2 ปีที่แล้ว +1

    sir i'm getting the error i.e blynkEdgent.h no such file exists. i also installed new version blynk library

    • @SMEDehradun
      @SMEDehradun  2 ปีที่แล้ว

      Hi,
      There is required a header files inside the programming folder.
      See this video to fix Errors
      th-cam.com/video/EPhY_hDozeo/w-d-xo.html

  • @aprilmay5974
    @aprilmay5974 2 ปีที่แล้ว +1

    Sir i used ESP8266 but when i uploaded the code, the sensor has no readings, just 0cm. I think it is because of "pinMode(34, INPUT)" is this for ESP8266 as well?

    • @SMEDehradun
      @SMEDehradun  2 ปีที่แล้ว

      Check the wiring connection of ultrasonic sensor with your board & check the Vcc & GMD pins as well. If the are correct then check the pin no in which you have made connection is correct?

  • @casualrider9435
    @casualrider9435 2 ปีที่แล้ว

    I am using an FreeNove ESP32-WROVER-Dev board because that is what I have. I set the echo pin to 18 and trigpin to 19. I left pinmode on 34. I am also using the Board= "ESP32 Wrover Module" no idea if that is right... I don't even have any idea how you could know what is right. There is no option for Com port = 8, like you have. I have only one option: Port = COM1. When I plugged the esp32-wrover-dev micro USB to my computer and pushed the upload button I get "Compilation Error: BlynkEdgent.h: No such file or directory" any ideas?

    • @SMEDehradun
      @SMEDehradun  2 ปีที่แล้ว

      Hi,
      You need to add blynk library and there must be headers in your programming folder. Must watch the video properly.
      Also, Go to the link & see, How to fix Errors in new Blynk2.0
      th-cam.com/video/EPhY_hDozeo/w-d-xo.html

    • @casualrider9435
      @casualrider9435 2 ปีที่แล้ว +1

      @@SMEDehradun Thank you. It took a few tries, but I was finally able to get the project to work. I appreciate the walk-through on this project and getting it onto Blynk, and I especially appreciate that you helped me to troubleshoot the problem I was having. Thank you for teaching me.

    • @SMEDehradun
      @SMEDehradun  2 ปีที่แล้ว

      Most welcome 🙏

  • @kenechukwumodebelu6373
    @kenechukwumodebelu6373 2 ปีที่แล้ว +1

    Could we use Bluetooth connection to measure instead of WIFI?

  • @AshishYadav-sp5tt
    @AshishYadav-sp5tt 2 ปีที่แล้ว +1

    Thanks sir

  • @nba7756
    @nba7756 ปีที่แล้ว +1

    sir how to change the ssid I cannot find where it is if use blynkedgent

    • @SMEDehradun
      @SMEDehradun  ปีที่แล้ว

      If you want to change said then you can only do it by erasing the eeprom of your board. Once you erase it, then you can rewrite the program & add your board in new wifi hotspot.
      Below video may help you-
      th-cam.com/video/EPhY_hDozeo/w-d-xo.html

    • @nba7756
      @nba7756 ปีที่แล้ว +1

      @@SMEDehradun I just need to push button reset 10s on the board right and then push button flash? then can proceed to connect to new wifi?

    • @SMEDehradun
      @SMEDehradun  ปีที่แล้ว

      Is it working. If yes then go ahead.

  • @andystevens3474
    @andystevens3474 2 ปีที่แล้ว +1

    How accurate is the distance measurement? Have you checked it with a distance tape/ruler?

    • @SMEDehradun
      @SMEDehradun  2 ปีที่แล้ว +1

      Yes already. It’s fine

  • @aspirin4709
    @aspirin4709 11 หลายเดือนก่อน +1

    In file included from C:\Users\USER\Downloads\distance_measurement_NodeMCU\distance_measurement_NodeMCU.ino:9:
    C:\Users\USER\Downloads\distance_measurement_NodeMCU\BlynkEdgent.h:16:2: error: #error "Please specify your BLYNK_TEMPLATE_ID and BLYNK_DEVICE_NAME"
    16 | #error "Please specify your BLYNK_TEMPLATE_ID and BLYNK_DEVICE_NAME"
    | ^~~~~
    exit status 1
    Compilation error: #error "Please specify your BLYNK_TEMPLATE_ID and BLYNK_DEVICE_NAME"
    I got the above compilation error sir... I'm using an esp8266 board. Tried installing libraries and updated my board still getting this error... Please reply..

    • @SMEDehradun
      @SMEDehradun  11 หลายเดือนก่อน

      Hi,
      This is must to put all the headers files inside the code folder. If you watch the video carefully then you you will get it.

    • @aspirin4709
      @aspirin4709 11 หลายเดือนก่อน

      @@SMEDehradun ok sir, thanks for replying...

  • @muhammadbinhairolnizam7929
    @muhammadbinhairolnizam7929 2 ปีที่แล้ว +1

    can this work with wemos d1 r1 board?

  • @edwinbenny1710
    @edwinbenny1710 ปีที่แล้ว +1

    Sir the wifi isn't showing
    I have done everything earlier but now i couldn't find the wifi from the esp32

    • @SMEDehradun
      @SMEDehradun  ปีที่แล้ว +1

      Hi,
      This May happens due to reconnection of the wifi or new template.
      This video can help you to resolve the error
      th-cam.com/video/EPhY_hDozeo/w-d-xo.html
      If erasing of EEPROM is not working, then you need to factory reset your ESP32 board. Below video may help you.
      th-cam.com/video/3oEvXhgHZHo/w-d-xo.html

  • @hurina21
    @hurina21 2 ปีที่แล้ว +1

    Sir, I've followed your video to my esp8266 but when i connected my esp8266 to Blynk app using wifi, it Said ip is unknown. Please help me sir

    • @SMEDehradun
      @SMEDehradun  2 ปีที่แล้ว

      Brief your problem.

    • @hurina21
      @hurina21 2 ปีที่แล้ว

      @@SMEDehradun my esp8266 couldn't connect to my bylnk 2.0 sir. When I tried to connect wifi esp8266, it Said the IP couldn't be Found.

    • @hurina21
      @hurina21 2 ปีที่แล้ว +1

      @@SMEDehradun Can't get ip address from my esp8266 sir. Pleas help me sir

    • @SMEDehradun
      @SMEDehradun  2 ปีที่แล้ว

      @@hurina21 you are working with Blynk2.0, & Download the code & watch the video tutorial properly. Follow all the instruction. You will get the results

    • @hurina21
      @hurina21 2 ปีที่แล้ว +1

      @@SMEDehradun oh thank you sir. I ve Found the problem. Thank you so much for your video sir

  • @029gururajesh2
    @029gururajesh2 ปีที่แล้ว +1

    Code for Esp8266 is not opening when downloaded, can you do something

  • @nishatvasker7397
    @nishatvasker7397 2 ปีที่แล้ว +2

    Sir can you please provide ESP8266 code for this project

    • @SMEDehradun
      @SMEDehradun  2 ปีที่แล้ว

      Code for both- NodeMCU ESP8266 & ESP32 is available in the video description.
      You can download it from there.

  • @harshinimaran3705
    @harshinimaran3705 2 ปีที่แล้ว +1

    Sir how to make this setup to notify us when the distance is less

    • @SMEDehradun
      @SMEDehradun  2 ปีที่แล้ว +1

      Still there is issue with Blynk2.0 Notification.

  • @timmygwapo2348
    @timmygwapo2348 ปีที่แล้ว +2

    sir what is the problem why my ultrasonic cant read the data

    • @SMEDehradun
      @SMEDehradun  ปีที่แล้ว

      Check the connection of ultrasonic with your board. There may issue with it.

    • @boombot5680
      @boombot5680 ปีที่แล้ว +1

      if you are using esp82 then connect vcc to vu pin because ultrasonic sensor needs 5v supply vin gives 3.3 only

    • @prajwalkawdeker5584
      @prajwalkawdeker5584 8 หลายเดือนก่อน

      @@boombot5680 brooo just saved my project bro i was so worried coz i have to report it to my teacher tomorrow and you advice just saved my project i wasted entire day in it finally got help with you advice thnxxxx bro 🥹🥹🥹

  • @akshayshetty392
    @akshayshetty392 2 ปีที่แล้ว +3

    Code shows Blynkedgent.h nonsuch file or directory

    • @SMEDehradun
      @SMEDehradun  2 ปีที่แล้ว

      Select the wifi board & install the blynk library as instruction in video

  • @nilimakashbaruah5678
    @nilimakashbaruah5678 ปีที่แล้ว +1

    I am getting error in the code . Is the code correct.?

    • @SMEDehradun
      @SMEDehradun  ปีที่แล้ว

      😂😂 Code is correct. Watch the video carefully & follow each step.

  • @AshishYadav-sp5tt
    @AshishYadav-sp5tt 2 ปีที่แล้ว +1

    How to enclude the library of ESP32 board

    • @SMEDehradun
      @SMEDehradun  2 ปีที่แล้ว +1

      The link is available in the video description, from where you can see how to add ESP32 board in the Arduino IDE

    • @AshishYadav-sp5tt
      @AshishYadav-sp5tt 2 ปีที่แล้ว +1

      Ok sir

  • @akshayshetty392
    @akshayshetty392 2 ปีที่แล้ว +3

    Code is not available in description

    • @SMEDehradun
      @SMEDehradun  2 ปีที่แล้ว +1

      Hi, check once again the code link for NodeMCU and ESP32 board in the video description. i have just changed the link of codes

  • @nba7756
    @nba7756 ปีที่แล้ว +1

    sir how to do the chart?

    • @SMEDehradun
      @SMEDehradun  ปีที่แล้ว

      Drag and drop chart to the dashboard and configure. Simply.

  • @serein_aesthetes8597
    @serein_aesthetes8597 2 ปีที่แล้ว +1

    connection was interrupted error please help!

    • @SMEDehradun
      @SMEDehradun  2 ปีที่แล้ว +1

      Explain the error that you have got?

    • @serein_aesthetes8597
      @serein_aesthetes8597 2 ปีที่แล้ว +1

      @@SMEDehradun when I try to connect the eps 32 to the wifi network after entering wifi name and password, it says connection was interrupted

    • @serein_aesthetes8597
      @serein_aesthetes8597 2 ปีที่แล้ว +1

      @@SMEDehradun please help me sir!

    • @SMEDehradun
      @SMEDehradun  2 ปีที่แล้ว

      Plz try to connect your ESP32 board to other wifi. It’s due to network issue.

    • @SMEDehradun
      @SMEDehradun  2 ปีที่แล้ว

      Try to connect to another wifi

  • @shashankpandey374
    @shashankpandey374 2 ปีที่แล้ว +1

    im getting output as distance 0 continously

    • @SMEDehradun
      @SMEDehradun  2 ปีที่แล้ว

      Check the the ultrasonic sensor connection with your wifi board. There maybe some issue

    • @shashankpandey374
      @shashankpandey374 2 ปีที่แล้ว +1

      @@SMEDehradun yeah sir actually ultrasonic need 5v and i was connected it to 3v pin in esp8266 😅

    • @SMEDehradun
      @SMEDehradun  2 ปีที่แล้ว

      Yes

  • @naqihussain
    @naqihussain 2 ปีที่แล้ว +1

    Can we count with ultrasonic sensor ?

    • @SMEDehradun
      @SMEDehradun  2 ปีที่แล้ว +1

      No. you can't count the exact number through it.

    • @naqihussain
      @naqihussain 2 ปีที่แล้ว +1

      @@SMEDehradun then plz upload video to count with ir sensor code.

    • @SMEDehradun
      @SMEDehradun  2 ปีที่แล้ว +1

      K I will try

  • @cherrythebunny2028
    @cherrythebunny2028 2 ปีที่แล้ว +1

    i have found an error: #error "Please specify your BLYNK_TEMPLATE_ID and BLYNK_DEVICE_NAME" Please resolve my issue.

    • @SMEDehradun
      @SMEDehradun  2 ปีที่แล้ว

      Hello,
      Plz go to your Blynk template & in the Ondot tab you will these credentials. See the video, each steps are shown there

  • @thinkbeyond5360
    @thinkbeyond5360 ปีที่แล้ว +2

    Hi ultrasonic =0 cm only coming

    • @SMEDehradun
      @SMEDehradun  ปีที่แล้ว

      There is connection issue. Check the ultrasonic connection.

    • @thinkbeyond5360
      @thinkbeyond5360 ปีที่แล้ว

      @@SMEDehradun did check should i make any changes with esp8266

    • @boombot5680
      @boombot5680 ปีที่แล้ว +1

      @@thinkbeyond5360 if you are using esp82 then connect vcc to vu pin because ultrasonic sensor needs 5v supply vin gives 3.3 only

  • @kumarsaipajjuru5321
    @kumarsaipajjuru5321 2 ปีที่แล้ว +1

    bro code for the project

    • @SMEDehradun
      @SMEDehradun  2 ปีที่แล้ว

      Available in the video description

  • @yashshrikantjayale2807
    @yashshrikantjayale2807 ปีที่แล้ว

    I am getting an error that #error “Please specify your BLYNK_TEMPLATE_ID and BLYNK_DEVICE_NAME”

    • @SMEDehradun
      @SMEDehradun  ปีที่แล้ว

      You need to change the blynk credentials in the program.

    • @yashshrikantjayale2807
      @yashshrikantjayale2807 ปีที่แล้ว +1

      @@SMEDehradunI already changed it ...by replacing those commands with my template id and device name.... still i am getting that error

    • @SMEDehradun
      @SMEDehradun  ปีที่แล้ว

      Hi,
      Have you included all the headers& other required files in to the programming folder?
      Plz watch below video to fix it.
      th-cam.com/video/EPhY_hDozeo/w-d-xo.html
      And still there is error, let me know.

    • @yashshrikantjayale2807
      @yashshrikantjayale2807 ปีที่แล้ว

      @@SMEDehradun yes i did ... there are all header files and also the library

    • @kevinviveros6660
      @kevinviveros6660 ปีที่แล้ว

      @@yashshrikantjayale2807 Good night,
      I think I found the error, I just checked and had the same problem as you, correcting the error is simple, just copy the text, in the second command line which blynk provides, remove the word TEMPLATE , and replace by DEVICE:
      Blink gives you:
      #define BLYNK_TEMPLATE_ID "TM00000_0_000F"
      #define BLYNK_TEMPLATE_NAME "ProgName"
      The program requests:
      #define BLYNK_TEMPLATE_ID "TM00000_W_000F"
      #define BLYNK_DEVICE_NAME "ProgName"
      After that I managed to get it to work, hope I helped.

  • @lazarusesauk9127
    @lazarusesauk9127 ปีที่แล้ว +2

    Sir I receive error for BlynkEdgent.h Showing it has no such file or directory! What should I do

    • @SMEDehradun
      @SMEDehradun  ปีที่แล้ว

      Add latest library in the Arduino and also keep header files inside the programming code.
      This video may help you rectify your errors
      th-cam.com/video/EPhY_hDozeo/w-d-xo.html

  • @wakeelkhan528
    @wakeelkhan528 2 ปีที่แล้ว +1

    hello sir,
    I followed you totally and get serial results but when I connect blynk in mobile with esp8266 it shows no wifi so I can not connect with wifi and cannot see the results in the blynk app please help.

    • @SMEDehradun
      @SMEDehradun  2 ปีที่แล้ว

      Hi,
      Plz see my another video on errors on blynk.
      Follow each step, your problem will be resolved.
      th-cam.com/video/EPhY_hDozeo/w-d-xo.html

  • @shivamrai1308
    @shivamrai1308 ปีที่แล้ว +1

    Compilation error: BlynkEdgent.h: No such file or directory . How to deal with this error

    • @SMEDehradun
      @SMEDehradun  ปีที่แล้ว

      You need to keep all the header files inside the e programming folder. Watch the video to resolve this problem.
      th-cam.com/video/EPhY_hDozeo/w-d-xo.html