Get Started with Ultrasonic Sensors and Arduino: Step-by-Step Wiring & Code Guide

Поділитися
Вставка
  • Опубліковано 27 гру 2024

КОМЕНТАРІ • 70

  • @ronaldcarey5708
    @ronaldcarey5708 10 днів тому +1

    Rachel...I subscribed for the content, but I stay to soak up your boundless enthusiasm!

  • @SwatiMathur-zs3rs
    @SwatiMathur-zs3rs Годину тому

    this is the best arduino video ever!

  • @bobrowland6936
    @bobrowland6936 2 місяці тому +7

    Back in 1985 I built a robot with a rotating sonar system, using ultrasonic transducers very similar to those used today. While rotating, the sonar was pulsed once every degree. Over one weekend I spent a lot of time testing my sonar with my head a few feet from the sonar system. I had no idea that a 40KHz pulse, which you cannot hear, could damage my hearing, but that is what happened. In one weekend, I permanently damaged my hearing and it has only gotten worse over the last 35 years. Later I calculated the SPL (sound pressure level) of that sonar’s output pulse from the amplitude of the signal and its data sheet. I found the sound output of that transmitter was about 125 db. On my current robot I have three HD-SR04 boards which I use for collision avoidance. I measured the amplitude of the transmitter signal and from the 40T/R transducer data sheet I calculated the SPL of the 40KHz output sound of the HD-SR04 to be about 115db, which is still loud enough to damage your hearing. So please keep your head far away from the front of the sonar board.

    • @RachelDeBarrosLive
      @RachelDeBarrosLive  2 місяці тому +1

      Great tip! Some people have said that their pets don't seem to like them either. Luckily all my projects are in the garage!

    • @TheUnofficialMaker
      @TheUnofficialMaker 2 місяці тому

      sure it wasn't the rock concerts?

    • @phtskllz
      @phtskllz Місяць тому

      Wow I never imagined it would be so loud, that would be nearly as loud as a jet fighter taking off of the runway.

    • @joshmack4312
      @joshmack4312 Місяць тому

      Hello, Ive been watching your videos and feel like I could really use your help on a project. I am a very beginner. Id like to use the motor cards you mention or something similar to control some small 12vdc motors. But I need it integrated into an hmi screen instead of the arduino.
      @RachelDeBarrosLive

  • @shakejones
    @shakejones 7 днів тому +1

    another brilliant video, cheers mate!

  • @thatboy799
    @thatboy799 2 місяці тому +1

    Was literally hoping you'd do do a project with this because I want to use it. Thank you, love your channel!

  • @Thunderbyrd.
    @Thunderbyrd. 2 місяці тому +1

    What's up Rachel ! Loved watching you fixing cars on tv, so glad you have this channel!

  • @stevendemonnin2025
    @stevendemonnin2025 2 місяці тому

    Thanks!

  • @miketrissel5494
    @miketrissel5494 2 місяці тому

    Much better video than the last one I saw. Easy to follow, good continuity. Good reading rhythm😀👍👍.
    You could tell you put a lot of time in the prep work, to help us follow along. Mike

  • @gamingwithtasir581
    @gamingwithtasir581 12 днів тому +1

    I don't know why you have low views your video's are so helpful I'm beginner but understood it easily. I hope i could access your live workshop.

  • @PRR5406
    @PRR5406 Місяць тому

    Rachel: This was the best tutorial I've had thus far. It was useful, well explained, and you shared the code while I was following. I'm a retired teacher, and this is my style of learning. Please slow down your dictation by a few microseconds (see, I learned). I am very anxious to learn more using the UltraSonic sensor.

  • @jaykay2349
    @jaykay2349 Місяць тому

    Your videos are so easy to follow and you make things so easy to understand. Could you do a video on relays?

  • @Hamster-but-cool
    @Hamster-but-cool Місяць тому

    Your such a great teacher❤

  • @ShefaliE
    @ShefaliE 2 місяці тому

    I love watching your videos, they are easy to understand, even though english is not my mother tongue. About the last question, I have a bit of a fun example, it's from "My little pony", in the episode "It's about time". Loved watching MLP with my daughter, now she is more into games, which is equally good. 😊

  • @scottkrieman8108
    @scottkrieman8108 5 днів тому

    Rachel I just found your channel and love it!
    Someone told me I need to use an Arduino board for a project I'm trying to build but I don't know how to program one to do what I need it to do.
    I have a 12 volt DC motor I need to make turn on for three seconds and stop for five seconds then turn on in the opposite direction for three seconds and stop.
    This is for a slingshot auto resetting target I want to build. I would like to know what Arduino board to buy.

  • @abualbushribrahimhusseinmohame
    @abualbushribrahimhusseinmohame 2 місяці тому

    Awesome as usual , thank you for the effort😍

  • @steverileyretired
    @steverileyretired 2 місяці тому

    Thank you very much, always wondered how it worked

  • @peterfireblade8120
    @peterfireblade8120 27 днів тому

    which library do you use ?

  • @andreaswolfesberger6140
    @andreaswolfesberger6140 2 місяці тому

    always love your videos - thank you

  • @jansmit4628
    @jansmit4628 2 місяці тому

    The very first setting of trigPin to low should only needed to be done once, so could by just in fron of the loop. This saves some processing time.

  • @Byt3me21
    @Byt3me21 2 місяці тому

    Ok I subscribed for your positive energy and apparent skills.

  • @paulkeenanmusic
    @paulkeenanmusic 2 місяці тому

    Fantastic video!

  • @jamesmoon5632
    @jamesmoon5632 Місяць тому

    Love watching your videos well presented

  • @airhammer6203
    @airhammer6203 2 місяці тому

    Check out this nerdy information from this gorgeous lady. Rachel , you're doing some nice work, as always. Proclaims aside, notwithstanding one way or the other, I've enjoyed your work over time. Years later, I realize I may have missed something, but I'd like to see you vroom vroom again.
    AirHammer out!!

  • @norahalanzi2269
    @norahalanzi2269 2 місяці тому

    Thank you Rachel 🙏🏻❤️❤️❤️❤️

  • @PRR5406
    @PRR5406 Місяць тому

    Rachel, I am slowly dying while I await the next UA-cam tutorial on pairing the ultrasonic sensor/Arduino with other functions. I have a project in which I wish to use the Ultrasonic to start Arduino to run a series of 12 volt LED signal sets (i.e. green, yellow, red). I need you next tutorial . I'd hate to break up our engagement over such a small thing.

    • @Olli20084
      @Olli20084 Місяць тому

      ey buddyboy, im the number 1 rachel glazer... iv'e been a fan since 2015 so you cant match me!! just hang up your boots punk!!

  • @warenmann1042
    @warenmann1042 2 місяці тому +1

    To answer the question @15:04 about Future self going Back to past self with good news.. "Back to the Future Part II" when Biff goes back to take his younger self the "Grays Sports Almanac"...

  • @bossdon8828
    @bossdon8828 2 місяці тому +1

    Keep it up ❤

  • @TheUnofficialMaker
    @TheUnofficialMaker 2 місяці тому

    who wouldn't go back to HS if she was the teacher! great job. I tried this on my entry gate but doesn't work on detecting people.

    • @RachelDeBarrosLive
      @RachelDeBarrosLive  2 місяці тому

      There are a few drawbacks to the ultrasonic sensor that I didn't go into in this video. I'm doing a another video on PIR vs ultrasonic sensor vs IR sensor to cover their pros and cons.
      Sometimes the ultrasonic sensor has trouble with curved or irregular surfaces. For a motorized gate, many people use an IR sensor instead. It goes LOW when an obstruction (like a person) is detected. You can use that to either pause the gate or make it open if it detects something in front of it.
      What are you trying to do with your gate?

  • @jackpenny8746
    @jackpenny8746 Місяць тому

    great video.

  • @dharmendrarawat784
    @dharmendrarawat784 11 днів тому

    Which Arduino use esfasific no. Of
    Arduino

  • @herrpriller9299
    @herrpriller9299 Місяць тому

    Instead of using a breadboard, can I just solder the wires and parts?

  • @stevendemonnin2025
    @stevendemonnin2025 2 місяці тому +2

    you are so much fun! Even when you send me back to High School.🌹🌹🌹🌼

    • @RachelDeBarrosLive
      @RachelDeBarrosLive  2 місяці тому +2

      Thanks for watching - now to find a new flux capacitor for my Delorean 🤣

    • @graemebrumfitt6668
      @graemebrumfitt6668 2 місяці тому

      @@RachelDeBarrosLive Colin Furze has a Delorean ask him, he's digging an underground carpark for it with a raising turntable! Colin is crazier than you in a wonderful way😊 GB :)

  • @scottmerriman8549
    @scottmerriman8549 2 місяці тому

    Great!

  • @ArduinoMind
    @ArduinoMind Місяць тому

    Can you make a transmitter and receiver with 0.96 inch oled display

  • @graemebrumfitt6668
    @graemebrumfitt6668 2 місяці тому

    Rite Rachel Dudess, Always knew this could be done just to thick to figure it out! 🤔 TFS, GB :)

  • @naeemhaq3504
    @naeemhaq3504 2 місяці тому

    Nice video as always. Do you make video if I give you my content?

  • @jimfrozen521
    @jimfrozen521 2 місяці тому

    Math class 1.5 x1.5 = one times one and a half times one one and a half lol love you

  • @JamesConway-s9q
    @JamesConway-s9q 2 місяці тому

    Thanks for your videos and they are really amazing anyway you must know your great with electronics.😇😍🥰👍

  • @michaelgarcia5493
    @michaelgarcia5493 2 місяці тому

    Rock on 🤘🏽😎🤘🏽!!!!

  • @thomastegen8020
    @thomastegen8020 9 днів тому

    Finally google Rachel because she looked so familiar. She was one of the ladies on three girls garage!

  • @jyvben1520
    @jyvben1520 Місяць тому

    A millisecond is 1/1,000th of a second. A microsecond is 1/1,000,000th of a second. The ratio is 1,000 to 1. Therefore a millisecond is 1,000 times longer than a microsecond.

  • @DBB-KE5DUO
    @DBB-KE5DUO 2 місяці тому

    The downside to this sensor is the resolution! Lidar is much better for resolution, but the code is a lot tougher!! 😊😊😊

    • @RachelDeBarrosLive
      @RachelDeBarrosLive  2 місяці тому

      I have to try that next!

    • @mikebond6328
      @mikebond6328 2 місяці тому +1

      I think of lie detector whenever I see Lidar. Like when we were teenagers my mom’s uncanny ability to tell that yes we had been doing things that we were not supposed to do last night.

    • @DBB-KE5DUO
      @DBB-KE5DUO 2 місяці тому

      @@mikebond6328 🤣😂

  • @kikinlozano958
    @kikinlozano958 6 днів тому

    Haz otro canal en español. usa IA para traducir tus videos y así de fácil duplica tus vistas.

  • @jimfrozen521
    @jimfrozen521 2 місяці тому

    🤔

  • @jimfrozen521
    @jimfrozen521 2 місяці тому +1

    Please ,play the violin again

  • @jimfrozen521
    @jimfrozen521 2 місяці тому +1

    So sorry I was listing to CAT STEVENS Angelsea Don't worry Halloween is my Bag I still stay silent your phone booth said it al total class !