Distance Measurement using Ultrasonic Sensor with LCD/I2C

Поделиться
HTML-код
  • Опубликовано: 4 окт 2024
  • Distance Measurement using Ultrasonic Sensor | Arduino Projects | IOT Projects
    Required Components
    ==================
    1. Arduino Uno
    2. Ultrasonic Sensor
    3. LCD Display
    4. I2C Converter
    5. Connecting Wires
    6. Male to Female Jumper Wires
    7. Breadboard
    Components Link
    ===============
    1. Arduino Uno - robu.in/produc...
    2. Ultrasonic Sensor - robu.in/produc...
    3. LCD Display - robu.in/produc...
    4. I2C Converter - robu.in/produc...
    5. Connecting Wires - robu.in/produc...
    6. Breadboard - robu.in/produc...
    Software Required
    ===============
    1. Arduino IDE - www.arduino.cc...
    2. Programming Language - C Language
    Source Code:
    github.com/Tec...
    Reference Video of Arduino Experiments
    ======================================
    1. Gas Detection Alarm
    • Gas Detection Alarm
    2. Weather Station Web Server
    • Weather Station Web Se...
    3. Arduino Calculator
    • Arduino Calculator | A...
    4. Smart Notice Board
    • Smart Notice Board | I...
    5. Simple Covid Tracker
    • Simple Covid Tracker u...
    6. NodeMCU Setup and Blink LED
    • NodeMCU Setup and LED ...
    7. Ultrasonic Radar
    • Ultrasonic Radar using...
    8. Fire Detection Alarm
    • Fire Detection Alarm |...
    9. Soil Moisture Measurement
    • Soil Moisture Measurem...
    10. Voice Controlled Light
    • Voice Controlled Light...
    11. Object Detection Alarm
    • Object Detection Alarm...
    12. Wireless Notice Board Using Arduino
    • Wireless Notice Board ...
    13. Automatic Visitor Counter
    • Automatic Visitor Coun...
    14. Rain Alarm System
    • Rain Alarm System | Ar...
    15. Dancing Light
    • Dancing Light | Arduino
    16. Control LED using Sound
    • Control LED using Soun...
    17. Traffic Light Controller
    • Traffic Light Controll...
    18. How to Control a Bulb using Mobile?
    • How to Control a Bulb ...
    19. LED Chaser using arduino uno
    • LED Chaser using ardui...
    20. Distance Measurement Using Ultrasonic Sensor
    • How to measure Distanc...
    21. How to Display Text in LCD Display using Arduino Uno | English
    • How to Display Text in...
    Previous Vlogs
    ============
    1. How to Type Tamil/Malayalam in WhatsApp | Native Languages in WhatsApp
    • How to Type Tamil/Mala...
    2. Gmail Features | Tamil
    • Gmail Features | Tamil
    3. Gmail Keyboard Shortcuts
    • Video
    4. SQL Best Practices - Part 1
    • SQL Best Practices - P...
    5. Cheap and Good Quality Wireless Earphones | boAT Wireless Headset
    • Cheap and Good Quality...
    6. Popular Brands and their Abbreviations
    • Popular Brands and the...
    7. Healthy Snacks That Can Help You Lose Weight
    • Healthy Snacks That Ca...
    8. This is the only way to reduce many illnesses
    • This is the only way t...
    9. How to monitor your body weight and fat?
    • How to monitor your bo...
    10. Is Tea or Coffee good for you? | Which is the healthier drink?
    • Is Tea or Coffee good ...
    Music: www.bensound.com
    ♥ Facebook: / techtrendsshameer
    ♥ Instagram: / tech_trends_shameer

Комментарии • 113

  • @kiransnidagundi8434
    @kiransnidagundi8434 Год назад +2

    You're videos vary helpful to me

  • @RealEfoot
    @RealEfoot 2 года назад +3

    sir there is nothing showing on the display i also have RG1602A sir it says that there is a problem lcd.begin(); sir what i shoul do please reply please
    no matching function for call to 'LiquidCrystal_I2C::begin()'
    error

    • @TechTrendsShameer
      @TechTrendsShameer  2 года назад

      Please try this library
      github.com/Tech-Trends-Shameer/Libraries-

    • @RealEfoot
      @RealEfoot 2 года назад +1

      @@TechTrendsShameer ok sir thank you

    • @RealEfoot
      @RealEfoot 2 года назад +1

      but sir when i applied it now it says
      Compilation error: exit status 1
      please help again please please
      2nd error
      c:\Users\XXXXXX\Documents\Arduino\libraries\DHT_sensor_library/DHT_U.h:36:10: fatal error: Adafruit_Sensor.h: No such file or directory
      #include

    • @RealEfoot
      @RealEfoot 2 года назад

      and sir there is nothing showing on lcd screen i even use 12C converter but there are only black blank spaces

    • @RealEfoot
      @RealEfoot 2 года назад +3

      now i have got i new error but sir your library worked now it is saying
      C:\Users\XXXXXXXXX\Documents\Arduino\measurwithlcd\measurwithlcd.ino:6:10: fatal error: LiquidCrystal_I2C: No such file or directory
      #include
      ^~~~~~~~~~~~~~~~~~~
      compilation terminated.
      exit status 1
      Compilation error: LiquidCrystal_I2C: No such file or directory

  • @bkvimala2254
    @bkvimala2254 Год назад +2

    Sir there is wrong in liquid cristal ,lcd begin(); .can u help in this please ?

    • @TechTrendsShameer
      @TechTrendsShameer  Год назад

      Please use this library and remove the existing one.
      github.com/Tech-Trends-Shameer/Libraries/tree/main/LiquidCrystal-I2C

  • @vaibhavshinde5520
    @vaibhavshinde5520 2 года назад +3

    Hello sir, there is nothing wrong with code and also I did all the connection you have made in this video and also I have downloaded the library...But there's nothing showing on the LCD display...It's only has a light and nothing like text or number is showing on the screen...Can you please help me with this...

    • @TechTrendsShameer
      @TechTrendsShameer  2 года назад

      Can you adjust the potentiometer in the I2C converter and check

    • @vaibhavshinde5520
      @vaibhavshinde5520 2 года назад +1

      Do I need to attach potentiometer in circuit ?? But you haven't in your video ??

    • @TechTrendsShameer
      @TechTrendsShameer  2 года назад

      @@vaibhavshinde5520 Are you using LCD with I2C converter or LCD alone?

    • @vaibhavshinde5520
      @vaibhavshinde5520 2 года назад +1

      @@TechTrendsShameer i got it sir...But it's only showing d on 1st line and 0 on second line and there is nothing happening when I put an obstacle in front of ultrasonic sensor...It's showing
      d....
      0....
      Like this on display only.

    • @TechTrendsShameer
      @TechTrendsShameer  2 года назад

      @@vaibhavshinde5520 pls send photo

  • @torresautobotsoldier
    @torresautobotsoldier Год назад +2

    code doesnt work?
    Compilation error: redefinition of 'void setup()'

  • @asvenesharma8777
    @asvenesharma8777 6 месяцев назад

    Its interesting. Can you convert the units in mm or interchangeable both in mm or cm with a press of a switch

  • @RealEfoot
    @RealEfoot 2 года назад +2

    and also dir nothing is showing in lcd display i even installed all the libraries including I2c
    and sir what is have to write in lcd.begin()

  • @mohammedissaqghanu7172
    @mohammedissaqghanu7172 2 года назад +1

    how to get rid of this error(Arduino: 1.8.19 (Windows 10), Board: "Arduino Uno"
    sketch_apr30a:4:10: fatal error: LiquidCrystal_I2C.h: No such file or directory
    #include
    ^~~~~~~~~~~~~~~~~~~~~
    compilation terminated.
    exit status 1
    LiquidCrystal_I2C.h: No such file or directory
    This report would have more information with
    "Show verbose output during compilation"
    option enabled in File -> Preferences.

  • @Vikasmishraaaaaaa
    @Vikasmishraaaaaaa 11 месяцев назад

    If I want to use this type of sensor PCB to check the soldering is done or not if soldering is not properly done so distance found in PCB

  • @AnisGrande
    @AnisGrande Год назад +1

    hii. can i know why does mine the code can upload succesfully, but the lcd is blank and didnt show anything? the sensor also didnt work

    • @TechTrendsShameer
      @TechTrendsShameer  Год назад

      Please adjust the potentiometer. If not the problem might be with the LCD library.

    • @humzaferoz1714
      @humzaferoz1714 Год назад

      i2c ki library download krdye

  • @anuragnirmal1590
    @anuragnirmal1590 Год назад +1

    Compilation error.
    sketch_jun05e.ino:2:31: fatal error: LiquidCrystal_I2C.h: No such file or directory

  • @darkze9967
    @darkze9967 2 года назад +1

    Sir i have 1 dought... If our lcd module is before using if any interface program is used???

    • @TechTrendsShameer
      @TechTrendsShameer  2 года назад

      Sorry. I didn't got your question. Can you please explain?

  • @EditingKing-r9k
    @EditingKing-r9k 10 месяцев назад +1

    What is the maximum distance can be measured using this.

  • @Spiderman_MJ
    @Spiderman_MJ Год назад +1

    Sir, coding is completed but the display is blank

  • @omkarshinde7355
    @omkarshinde7355 2 года назад +1

    thank you so much sir

  • @c_28monishmaid.91
    @c_28monishmaid.91 10 месяцев назад

    sir what to do if it is taking long to time to upload the code???

  • @darkze9967
    @darkze9967 2 года назад +1

    Sir an error no matching fiction called to liquid crystal i2. C

  • @kiransnidagundi8434
    @kiransnidagundi8434 Год назад +2

    Thanks sir

  • @somebody2661
    @somebody2661 Год назад +1

    Yes it works👍👍👍👍

  • @anikatasnim9621
    @anikatasnim9621 11 месяцев назад +1

    The code was done uploading but there's nothing showing in lcd monitor. What to do?

    • @TechTrendsShameer
      @TechTrendsShameer  11 месяцев назад

      Use this library
      github.com/Tech-Trends-Shameer/Libraries/tree/main/LiquidCrystal-I2C

    • @anikatasnim9621
      @anikatasnim9621 11 месяцев назад +1

      How to use this library?

    • @TechTrendsShameer
      @TechTrendsShameer  11 месяцев назад

      Extract this zip file, and copy the folder to Documents -> Arduino -> Library.

    • @anikatasnim9621
      @anikatasnim9621 11 месяцев назад +1

      I did that but still my lack monitor is blank

    • @TechTrendsShameer
      @TechTrendsShameer  11 месяцев назад

      Might be some other issue. Please double check your circuit connection.

  • @sh__in__as
    @sh__in__as 2 года назад +1

    Sir can I make this circuit in my proteus software?

  • @darkze9967
    @darkze9967 2 года назад +1

    Sir if any ultra sonic library needed to run??

    • @TechTrendsShameer
      @TechTrendsShameer  2 года назад

      Do. Only the i2C library. Please connect me on Facebook. I will send the files. Facebook link given in description.

  • @chiranjeevithota1654
    @chiranjeevithota1654 11 месяцев назад +1

    HI SIR
    ITS THROWING ERROR WHILE I INSTALED I2C LIBARARY FILE Compilation error: no matching function for call to 'LiquidCrystal_I2C::begin()'

    • @chaitanyamarisetty7761
      @chaitanyamarisetty7761 10 месяцев назад

      Hlo bro Naku same problem nuvu emm chesav cheppu 2nd line lo error vastundhe

    • @chaitanyamarisetty7761
      @chaitanyamarisetty7761 10 месяцев назад +1

      Naku code kavali

    • @TechTrendsShameer
      @TechTrendsShameer  10 месяцев назад

      Use this library.
      github.com/Tech-Trends-Shameer/Libraries/tree/main/LiquidCrystal-I2C

    • @TechTrendsShameer
      @TechTrendsShameer  10 месяцев назад

      Use this library.
      github.com/Tech-Trends-Shameer/Libraries/tree/main/LiquidCrystal-I2C

    • @chaitanyamarisetty7761
      @chaitanyamarisetty7761 10 месяцев назад

      @@TechTrendsShameer download avadam ledhu dhene yakkada place cheyalali

  • @Mukesh78567
    @Mukesh78567 3 месяца назад +1

    Sir code is not working

  • @sh__in__as
    @sh__in__as 2 года назад +1

    Sir how can I get this circuit diagram and code for my project?

    • @TechTrendsShameer
      @TechTrendsShameer  2 года назад

      Please check the full video. Circuit is included in the video.
      Are you looking for the picture of the circuit?

    • @sh__in__as
      @sh__in__as 2 года назад +1

      @@TechTrendsShameer yes I want that circuit diagram

    • @TechTrendsShameer
      @TechTrendsShameer  2 года назад

      @@sh__in__as please message me in instagram. instagram.com/tech_trends_shameer

  • @chandru6022
    @chandru6022 5 месяцев назад +1

    code is not working

  • @SpiritK1110
    @SpiritK1110 7 месяцев назад +1

    Uncle pin mode ki spelling batao

  • @ojasaggarwal6806
    @ojasaggarwal6806 4 месяца назад +1

    Not working

  • @anuragnirmal1590
    @anuragnirmal1590 Год назад +2

    Sir please solve the problem

  • @KAIKAIOB
    @KAIKAIOB 3 года назад +2

    Thank you SO much!

  • @masheshak9148
    @masheshak9148 3 года назад +1

    May I have some ardino code?

    • @TechTrendsShameer
      @TechTrendsShameer  3 года назад

      Please check the description. Source code provided in description.

    • @masheshak9148
      @masheshak9148 3 года назад +1

      It is not available

    • @TechTrendsShameer
      @TechTrendsShameer  3 года назад

      Please check the link drive.google.com/file/d/1c0F57WZNOoC0F48_sRndkX38d47ktuhz/view?usp=sharing

    • @ramnimbhorkar
      @ramnimbhorkar 3 года назад

      Code not download sho No preview available

    • @xpectationknight5842
      @xpectationknight5842 2 года назад

      Hello sir
      How can I open the code in laptop
      That you're given in the PDF form

  • @saunibeck8133
    @saunibeck8133 Год назад +1

    Sir diagram

  • @Radha-wv3cj
    @Radha-wv3cj 2 года назад +1

    Sir, can you please provide a code?

    • @TechTrendsShameer
      @TechTrendsShameer  2 года назад

      Please check the video description for source code.

    • @Radha-wv3cj
      @Radha-wv3cj 2 года назад +1

      But, Sir in description code link is not shows the code..it show's "no preview available"..

    • @TechTrendsShameer
      @TechTrendsShameer  2 года назад

      There is a download link. Please click on that.
      I have also uploaded the code here please check the below link.
      github.com/Tech-Trends-Shameer/Arduino-Projects/tree/main/Distance-Measurement-Using-Ultrasonic-Sensor-With-LCD-I2C

    • @Radha-wv3cj
      @Radha-wv3cj 2 года назад +1

      Thank you Sir🙏

    • @TechTrendsShameer
      @TechTrendsShameer  2 года назад

      @@Radha-wv3cj Welcome