How to Set Up an Ultrasonic Range Finder on an Arduino

Поделиться
HTML-код
  • Опубликовано: 14 июл 2024
  • How to Set Up an Ultrasonic Range Finder on an Arduino
    In this video, I show you how to measure distance with three different ultrasonic range finder circuits using the HC-SR04 Ultrasonic Range Finder. The first circuit is a basic range finder circuit using only an Arduino and the ultrasonic range finder. Then I show you a more accurate range finder circuit that factors temperature into the speed of sound formula. Finally, I show you the most accurate range finder circuit that takes into account both humidity and temperature in the equation for the speed of sound.
    Get an Ultrasonic Range Finder here: www.amazon.com/gp/product/B00...
    Check out the blog post for this article for the code, diagrams, and more information: www.circuitbasics.com/how-to-...
    Check out the Circuit Basics blog for articles and tutorials on the Raspberry Pi, Arduino and other DIY electronic projects! www.circuitbasics.com
    Facebook: / circuitbasic
    Twitter: / circuitbasics
    Instagram: / circuitbasics
  • НаукаНаука

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

  • @MarioGonzalez-og9zf
    @MarioGonzalez-og9zf 7 лет назад +1

    Set up of circuit quick and well explained. Keep up your good work.

  • @linaalkubaisy4108
    @linaalkubaisy4108 5 лет назад +6

    best tutorial ever! very clear and outstanding work! please show us how to hook an LCD and load the program

  • @bombthesystemsnl
    @bombthesystemsnl 7 лет назад +1

    Thank you for this awesome tutorial! I saw it some days ago however i couldn't find it today.
    Maybe you should try some more tags like HC-SR04 or distance sensor,if you haven't already.
    Your approach is the best (3 different ways of measuring) ,very accurate and very easy to set.
    Thanks again for sharing!Liked and subscribed

  • @greenman2262
    @greenman2262 6 лет назад +1

    GREAT thanks, took me awhile to get the code to work (poor pin conections) but got 2 of them in the end

  • @miketony2069
    @miketony2069 7 лет назад

    very clear and we'll explained.

  • @mrteausaable
    @mrteausaable 6 лет назад +5

    You should also take in the consideration of the accuracy of the DT11 sensors.

  • @johns66723
    @johns66723 7 лет назад

    Thanks very much :)

  • @thomasalexander1563
    @thomasalexander1563 7 лет назад +2

    Nice tutorial,,
    Make more arduino and other sensor,,
    Thank you..

  • @AkshayCuddapah
    @AkshayCuddapah 7 лет назад +1

    nice work......

  • @demetriusdemarcusbartholom8063
    @demetriusdemarcusbartholom8063 Месяц назад

    Thank you.

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

    Thanks sharing

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

    I was not concerned about the Temperature and Humidity while measuring distance . Thanks for the perfections.

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

      JESUS IS THE KING OF THE KINGS

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

      LOVE GOD AND EVERYONE

  • @mattguitar1000
    @mattguitar1000 8 лет назад +5

    Liked and Subscribed!! Great video! I have a really cool but big project that I'm working on prototyping while also learning at the same time. Great info here, I like the way explain things. Would you be open to helping me answer a few questions I may have during my build?

  • @scratchdog2216
    @scratchdog2216 6 лет назад +1

    Thank You. Most of these videos parrot Ardunio. Ultrasonic RADAR they seem to call it.

  • @warriorwisdomclips337
    @warriorwisdomclips337 4 года назад +1

    Thank you for the tutorial for the ultrasonic range finder however i have been stuck on a problem while trying to connect the lcd display to the circuit . I have followed the hardware and software exactly the way it is shown and the lcd does light up and it shows 16 little boxes but it doesn`t display anything on them so if you could help me out it would be great.

  • @gherzel
    @gherzel 7 лет назад +3

    do you have a schematic if I wish to add LCD Display for this project?

  • @eoz8985
    @eoz8985 5 лет назад +1

    Can you make a video using the display from Arduino thanks and great video

  • @KjellArneRekaa
    @KjellArneRekaa 8 лет назад +5

    Very nice, educating and easy to follow!
    I saw some interesting improvements if instead of the notebook, you had moved a square box of some sort in front along the ruler. Also if had aligned or measured the number of centimeters to the facing wall some whatever 2-3 meters away for longer distance? ;-)

    • @Elecrow
      @Elecrow 8 лет назад +1

      +Kjell Arne Rekaa I like this project too.

    • @simonmasters3295
      @simonmasters3295 7 лет назад

      Shaver! Are you kidding? I am trying to "learn" the linear position and length of a moving piece of wood (200x100x4000mm) using more than one HS04 sensor

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

    Is there any way to configure the ultrasonic to a particular distance, where it can only send output when it senses preset distance

  • @fenghuang7165
    @fenghuang7165 6 лет назад +4

    hi, can you teach me how to measure speed by arduino uno, thanks a lot.

  •  7 лет назад +1

    i just bought 3 of this. is it possible to get them to show 0cm all tho that they are like 120cm away from the objekt? And if i put somthing in font of it, at 110cm away. it will tell me that its only 10cm away?

  • @dasarikalyan9211
    @dasarikalyan9211 4 года назад +1

    Which type of aurdino use for this project (UNO or NANO)

  • @Inquire98
    @Inquire98 6 лет назад +1

    "Thank You", thank you very much. I thought your presentation was REALLY great, but I do agree with #Anton. Maybe you should use another object for your measuring device...

    • @Inquire98
      @Inquire98 6 лет назад

      Correcting #Artion

  • @sickvic3909
    @sickvic3909 7 лет назад

    Can these be connected in parallel or serial on all sides of an object to detect obstacle from any angle?

  • @ahmadgorsi6040
    @ahmadgorsi6040 4 года назад +1

    I wanna ask you why you did'nt use LCD that you displayed on picture use for video.
    Please upload video of this project by using the LCD and display reading not only in cm also in meters and feet etc.
    Otherwise video is very good bro.🖒

  • @nikhilmistry6802
    @nikhilmistry6802 6 лет назад +1

    can you implement this project 8051 micro controller.....i need codes for that

  • @mangeshkumar153
    @mangeshkumar153 4 года назад +1

    My display shows only black squares. The text appears however if I look from an angle. What should I do?

  • @ArjunSureshtheman
    @ArjunSureshtheman 5 лет назад

    Will the distance to object angle could be found?
    Please help me

  • @fremij1
    @fremij1 7 лет назад

    what is the accuracy of the sensor?

  • @ATULKUMAR-en5tv
    @ATULKUMAR-en5tv 7 лет назад

    can you give me the code for distance measuring only and other with distance and temperature

  • @Guttfried
    @Guttfried 7 лет назад

    have also out of range. or the range cant be right! What is the problem?

  • @jkk2079
    @jkk2079 4 года назад

    How do you fix the out of range problem

  • @eliptictide7492
    @eliptictide7492 6 лет назад +1

    Can someone please give me a list of parts i need to create this and is there a way to make it make a sound when something reaches a certain distance
    Thanks :)

  • @fugginMax
    @fugginMax 7 лет назад

    Distance out of range... what to do?

  • @prajwalnagraj7620
    @prajwalnagraj7620 7 лет назад

    its coming out of range since if i connect it to 3v and if i connect it to it will get on only

  • @maheshsoni1148
    @maheshsoni1148 5 лет назад

    Plz make with Arduino nano r3

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

    Hello reference height arduino I want to know my room floor level how much height from other room in which video solution

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

    There is a waterproof version of this sensor and I ask one question why this is not on every car with a red led and interior horn set at 5 feet??? To prevent front end collisions.

  • @srisubhash8421
    @srisubhash8421 7 лет назад +1

    when using humidity sensor am i needed to setup resistor and thermister

  • @wooji142
    @wooji142 5 лет назад

    what is the max length??

  • @lucky_lol
    @lucky_lol 5 лет назад

    Can i use Arduino Nano

  • @Sam-uc7yt
    @Sam-uc7yt Год назад

    My one is showing that distance is out of range..what should i do?

  • @hyuwooshinely4541
    @hyuwooshinely4541 4 года назад

    How about Microsecond to millimeters?

  • @pinkcarots9565
    @pinkcarots9565 7 лет назад

    i have done this and it works and accurate too but the problem is that i use three sensors and the sensor only read one sensor reading only and the rest is out of range. can anybody help me?

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

    why does it show on LCD screen "out of range" when distance between HC-SR04 and object is 15 cm

  • @ArtionKarreci
    @ArtionKarreci 7 лет назад +14

    Hi, maybe the notebook isn't the most relaible obstacle: it's not rigid, so the distance measured is variable depending on the movement in your hands. :)

  • @tommybirchify
    @tommybirchify 5 лет назад +2

    I get the message on the serial monitor saying "out of range" can anyone help please?

  • @mukeshbhabhor5500
    @mukeshbhabhor5500 6 лет назад

    Hi....
    Please tell me..
    Can We Connect Multiple sensore in one ARDUINO UNO board...
    Regard Me

  • @firhanrizani96
    @firhanrizani96 4 года назад

    why it show out of range?

  • @MohamedIbrahim-wb6og
    @MohamedIbrahim-wb6og 7 лет назад

    high is meaning 5 volt but the distance is change .how?

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

    ❤☦❤☦😊

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

    If used "mm" how to?

  • @manishsuryawanshi8812
    @manishsuryawanshi8812 5 лет назад

    I am tried to make this but they will show out of range

  • @mahsudkz6446
    @mahsudkz6446 6 лет назад +5

    i have out of range issue...
    please help me!

  • @premdodia4338
    @premdodia4338 7 лет назад

    Till how much distance arduino uno HC-SR04 can detect? Distance in cm ?

    • @premdodia4338
      @premdodia4338 6 лет назад

      hey cn u able to provide me code for 4M?

    • @premdodia4338
      @premdodia4338 6 лет назад

      Can you pls give me code for 4m?

    • @yungnut4247
      @yungnut4247 6 лет назад

      Prem Dodia honestly just learn to do it, it’s not that hard

  • @TheOneLifeRider
    @TheOneLifeRider 4 года назад

    3.50AM - someone can't sleep...

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

    LOVE GOD AND EVERYONE!!!

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

    your name is cricut basics but you dont leave a cricut link in the description

  • @faizanahmed7091
    @faizanahmed7091 7 лет назад

    hi there are errors i don't know what but the console is printing that distance is out of range

  • @clydeadamson549
    @clydeadamson549 6 лет назад +1

    I have "Out of Range" issue. Please help. >

  • @alibelawadi2035
    @alibelawadi2035 5 лет назад

    i want set the range of 5 feet ti detect the sensor can u help

  • @chronobot2001
    @chronobot2001 6 лет назад

    How can I used this to take over the world?

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

    1000 times better than Bushnell

  • @ededmondson9456
    @ededmondson9456 8 лет назад

    A ok

  • @martinkoch4332
    @martinkoch4332 5 лет назад

    Shame you didn't just show us how to hook up the LCD and load the program. I have no idea how to put the two things together.

  • @MrSesnu
    @MrSesnu 4 года назад

    it just says out of range

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

    Why the first one isn't accurate? Even the object is steady, it's distance changes

  • @Adithiyanvenkat
    @Adithiyanvenkat 8 лет назад

    its telling distance out of range

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

    GOD IS REAL

  • @shutdahellup69420
    @shutdahellup69420 6 лет назад

    damn man u beat around the bush too damn long

  • @kedareswarkaavuri5774
    @kedareswarkaavuri5774 7 лет назад

    distance out of range

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

    JESUS IS THE KING OF THE KINGS

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

    JESUS IS THE KING OF THE KINGS!!!

  • @haris1415
    @haris1415 4 года назад

    Bro.... Try to teach coding..... People don't like copying and pasting..... We want to type it with our own knowledge

  • @AbdulBasit-jy4ul
    @AbdulBasit-jy4ul 6 лет назад +1

    i have out of range issue...
    please help me!

    • @jatindermann2061
      @jatindermann2061 6 лет назад

      I had that same problem and what I found out was that my trig and echo pins were in A10 and A13. I just switched them from the analog to the regular 10 and 13 slots

    • @howidamostafa8789
      @howidamostafa8789 4 года назад

      also me the distance= out of the range

    • @AbdulBasit-jy4ul
      @AbdulBasit-jy4ul 4 года назад

      @@howidamostafa8789 solved

    • @AbdulBasit-jy4ul
      @AbdulBasit-jy4ul 4 года назад

      @@howidamostafa8789 before 2 years

  • @alibishbishy6177
    @alibishbishy6177 7 лет назад

    its telling distance out of range