How to make an Arduino Distance Meter using Ultrasonic Sensor

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 พ.ค. 2024
  • Find electronic components on www.utsource.net/
    Utsource is a proffesional elelctronics supplier with more than 2 million product, lower price with free shipping.
    Utsource also provide 0 profit health care product like masks and Infrared Thermometer..., you can order it here www.utsource.net/home/healthcare
    Hello and welcome back to creative stuff..
    In this video we are going to make an Arduino Distance Meter using HC-SR04 Ultrasonic Sensor.
    HC-SR04 Ultrasonic (US) sensor is a 4 pin module, whose pin names are Vcc, Trigger, Echo and Ground respectively. This sensor is a very popular sensor used in many applications where measuring distance or sensing objects are required. The module has two eyes like projects in the front which forms the Ultrasonic transmitter and Receiver. The sensor works with the simple high school formula that
    Distance = Speed × Time
    The Ultrasonic transmitter transmits an ultrasonic wave, this wave travels in air and when it gets objected by any material it gets reflected back toward the sensor this reflected wave is observed by the Ultrasonic receiver module .
    To make this project we are going to need :-
    1----1x Breadboard www.utsource.net/itm/p/922129...
    2----1x Arduino UNO www.utsource.net/itm/p/864718...
    3----1x 1602 LCD Display www.utsource.net/itm/p/646629...
    4----1x 10K Potentiometer www.utsource.net/itm/p/803895...
    5----1x HC-SR04 Ultrasonic module
    5---- connecting wires
    Arduino Code:-drive.google.com/open?id=16Di...
    Subscribe to my channel
    / creativestuff
    If you want to support my channel financially, you can do that here
    paypal.me/creativestuffyt
    Contact for business:-
    facebook - / creativestuff101
    Email:- rupak3219@gmail.com
    whatsapp- +917657022069 (whatsapp only, dont call)
    If you like what i do here and want to help me financially so that I can make more videos for you...then,this is for you :- paypal.me/creativestuffyt
    MAKE YOUR OWN 7 SEGMENT DISPLAY
    • MAKE YOUR OWN 7 SEGMEN...
    how to make WIRELESS SCROLLING DISPLAY BOARD
    • how to make wireless s...
    How to make an ELECTRIC SCREWDRIVER
    • How to make an Electri...
    How to Control a LOT of LEDs with Arduino & 74hc595
    • How to Control a LOT o...
    #creativestuff #electronics
  • วิทยาศาสตร์และเทคโนโลยี

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

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

    Please send me code not opening discrspriton

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

    If you want to use potentiometer for correction distance error what is code?

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

    Rather than 10k ohm potentiometer can we use 20k ohm potentiometer...?

  • @3xAudio
    @3xAudio 4 ปีที่แล้ว +1

    Nice Video and project. great idea I'm going back to basics because I'm a bit rusty with arduino and looking for ideas

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

    Thank you really much for this tutorial. It was great. Heres a tip: try to name the pins of the lcd next time. But overall, this was a super good tutorial.

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

    Can use jumper wire instead of using the wires in the middle 1:19 hope you reply 😢😢

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

    Great video and project

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

    Sir ye project ek din ke liye de skte hai kya

  • @jeanfab5394
    @jeanfab5394 4 ปีที่แล้ว +3

    Another great tutorial friend.
    Thanks for sharing.

  • @alirehancodes
    @alirehancodes 3 ปีที่แล้ว

    I'm facing this error while compiling code
    C:\Users\HOME\AppData\Local\Temp\ccfan3ci.ltrans0.ltrans.o: In function `pulseIn':
    C:\Users\HOME\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.3\cores\arduino/wiring_pulse.c:46: undefined reference to `countPulseASM'
    collect2.exe: error: ld returned 1 exit status
    Compilation error: Error: 2 UNKNOWN: exit status 1

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

    excellent Am hobbyist. I need the code and circuit diagram for 1) distance measurement both CM & Inches with decimal( Centimeter & Inches) for 16X02LCD without using breadboard
    And
    2) distance measurement both CM , Inches , Ft & MM with decimal(CM , Inches, Millimeter & feet) for 16X04LCD
    Can you pls share it?

  • @BM444
    @BM444 3 ปีที่แล้ว

    my lcd is displaying in some other language or just in characters but not english

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

    how do increase The fps

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

    Can we change the unit of Length on this Circuit?

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

    What's the use of potentiometer?

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

      To control the visibility of the lcd module

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

    Code is not working

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

    What is the use of potentiometer in the circuit

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

      Potentiometer Controls The Contrast

  • @SachinKumar-lm6gp
    @SachinKumar-lm6gp 4 ปีที่แล้ว +1

    How to program any microcontroller from mobile please make a video

    • @CreativeStuff
      @CreativeStuff  4 ปีที่แล้ว

      I will try to make that ....thanx for the comment

  • @govindmr.badrilaljichoudha331
    @govindmr.badrilaljichoudha331 2 ปีที่แล้ว

    Sir how to power the adruino how much volt

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

      5 volt....mobile charger se ya fir 9 volt battery

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

    BRO WHAT IS THE USE OF THE POTENTIOMETER IN THIS PROJECT?

  • @shashankreddy6908
    @shashankreddy6908 3 ปีที่แล้ว +5

    Paste code here please, in description the code is not opening

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

      #include
      #define trigger 9
      #define echo 8
      LiquidCrystal lcd(12,11,5,4,3,2);
      float time=0,distance=0;
      void setup()
      {
      lcd.begin(16,2);
      pinMode(trigger,OUTPUT);
      pinMode(echo,INPUT);
      lcd.print(" Ultra sonic");
      lcd.setCursor(0,1);
      lcd.print("Distance Meter");
      delay(2000);
      lcd.clear();
      lcd.print(" creative stuff");
      delay(2000);
      }
      void loop()
      {
      lcd.clear();
      digitalWrite(trigger,LOW);
      delayMicroseconds(2);
      digitalWrite(trigger,HIGH);
      delayMicroseconds(10);
      digitalWrite(trigger,LOW);
      delayMicroseconds(2);
      time=pulseIn(echo,HIGH);
      distance=time*340/20000;
      lcd.clear();
      lcd.print("Distance:");
      lcd.print(distance);
      lcd.print("cm");
      lcd.setCursor(0,1);
      lcd.print("Distance:");
      lcd.print(distance/100);
      lcd.print("m");
      delay(1000);
      }

  • @MohammedHussain-ll1zm
    @MohammedHussain-ll1zm 2 ปีที่แล้ว

    hi i was trying your aurdino ultra sonic i did all the steps althoug its not working pls help me i he only few days

  • @shakerameenabdoyahya1787
    @shakerameenabdoyahya1787 3 ปีที่แล้ว

    How far can he measure?

    • @MohaHT
      @MohaHT 3 ปีที่แล้ว

      from 2 cm to 4 meters

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

    my lcd is not showing text.....what should i do?

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

    Sir my lcd is not working please guide me

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

      What do you mean by not working?

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

      Sir it is not displaying anything after I have connected my audrino to my computer

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

      I will reconnect every wire again

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

      Is the backlight working?(the yellow/blue screen light)

  • @lukeshsundar
    @lukeshsundar 4 ปีที่แล้ว

    Arduino: 1.8.12 (Windows 10), Board: "Arduino Uno"
    Sketch uses 2986 bytes (9%) of program storage space. Maximum is 32256 bytes.
    Global variables use 200 bytes (9%) of dynamic memory, leaving 1848 bytes for local variables. Maximum is 2048 bytes.
    avrdude: ser_open(): can't open device "\\.\COM4": The system cannot find the file specified.
    Problem uploading to board. See www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.
    This report would have more information with
    "Show verbose output during compilation"
    option enabled in File -> Preferences.
    It says error can u help me pls?

    • @arkyajyotighosh7051
      @arkyajyotighosh7051 3 ปีที่แล้ว

      disconnect the arduino cable and reconnect.. if it still doesnt work, check the ports, select correct board, check port drivers, it should work fine