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

  Рет қаралды 14,369

Rachel De Barros

Rachel De Barros

Күн бұрын

Пікірлер: 74
@bobrowland6936
@bobrowland6936 2 ай бұрын
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 ай бұрын
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
@thatboy799
@thatboy799 2 ай бұрын
Was literally hoping you'd do do a project with this because I want to use it. Thank you, love your channel!
@indiedavecomix3882
@indiedavecomix3882 14 сағат бұрын
I'm just getting started with arduino (my first kit arrives today!) And I'm already planning a mousetrap box using these sensors, some sort of door closing apparatus, alarm and light. Big project for a 50 year old who's never coded anything in his life. 😂
@ronaldcarey5708
@ronaldcarey5708 19 күн бұрын
Rachel...I subscribed for the content, but I stay to soak up your boundless enthusiasm!
@Thunderbyrd.
@Thunderbyrd. 2 ай бұрын
What's up Rachel ! Loved watching you fixing cars on tv, so glad you have this channel!
@PRR5406
@PRR5406 2 ай бұрын
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.
@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 21 күн бұрын
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.
@SwatiMathur-zs3rs
@SwatiMathur-zs3rs 8 күн бұрын
this is the best arduino video ever!
@shakejones
@shakejones 16 күн бұрын
another brilliant video, cheers mate!
@jaykay2349
@jaykay2349 Ай бұрын
Your videos are so easy to follow and you make things so easy to understand. Could you do a video on relays?
@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.
@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. 😊
@stevendemonnin2025
@stevendemonnin2025 2 ай бұрын
Thanks!
@RachelDeBarrosLive
@RachelDeBarrosLive 2 ай бұрын
Thank you so much! So kind!
@Hamster-but-cool
@Hamster-but-cool Ай бұрын
Your such a great teacher❤
@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!!
@abualbushribrahimhusseinmohame
@abualbushribrahimhusseinmohame 2 ай бұрын
Awesome as usual , thank you for the effort😍
@RachelDeBarrosLive
@RachelDeBarrosLive 2 ай бұрын
Glad you enjoyed it!
@Byt3me21
@Byt3me21 2 ай бұрын
Ok I subscribed for your positive energy and apparent skills.
@RachelDeBarrosLive
@RachelDeBarrosLive 2 ай бұрын
Thanks for subscribing, I'm happy to help!
@norahalanzi2269
@norahalanzi2269 2 ай бұрын
Thank you Rachel 🙏🏻❤️❤️❤️❤️
@steverileyretired
@steverileyretired 2 ай бұрын
Thank you very much, always wondered how it worked
@scottkrieman8108
@scottkrieman8108 13 күн бұрын
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.
@andreaswolfesberger6140
@andreaswolfesberger6140 2 ай бұрын
always love your videos - thank you
@RachelDeBarrosLive
@RachelDeBarrosLive 2 ай бұрын
Glad you like them!
@stevendemonnin2025
@stevendemonnin2025 2 ай бұрын
you are so much fun! Even when you send me back to High School.🌹🌹🌹🌼
@RachelDeBarrosLive
@RachelDeBarrosLive 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 :)
@PRR5406
@PRR5406 Ай бұрын
Rachel, I am slowly dying while I await the next KZbin 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!!
@jamesmoon5632
@jamesmoon5632 2 ай бұрын
Love watching your videos well presented
@RachelDeBarrosLive
@RachelDeBarrosLive 2 ай бұрын
I appreciate that! 👍
@scotthouston7873
@scotthouston7873 6 күн бұрын
Can you do a video on how to make things happen in a range? For example I want my sensor to do something between 20-30cm and something else 30-40cm etc Thanks
@bossdon8828
@bossdon8828 2 ай бұрын
Keep it up ❤
@RachelDeBarrosLive
@RachelDeBarrosLive 2 ай бұрын
Glad you enjoyed it!
@JamesConway-s9q
@JamesConway-s9q 2 ай бұрын
Thanks for your videos and they are really amazing anyway you must know your great with electronics.😇😍🥰👍
@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?
@paulkeenanmusic
@paulkeenanmusic 2 ай бұрын
Fantastic video!
@herrpriller9299
@herrpriller9299 Ай бұрын
Instead of using a breadboard, can I just solder the wires and parts?
@PrinceBoji
@PrinceBoji 7 күн бұрын
this is awesome
@peterfireblade8120
@peterfireblade8120 Ай бұрын
which library do you use ?
@jackpenny8746
@jackpenny8746 Ай бұрын
great video.
@graemebrumfitt6668
@graemebrumfitt6668 2 ай бұрын
Rite Rachel Dudess, Always knew this could be done just to thick to figure it out! 🤔 TFS, GB :)
@RachelDeBarrosLive
@RachelDeBarrosLive 2 ай бұрын
Happy to help!
@ArduinoMind
@ArduinoMind Ай бұрын
Can you make a transmitter and receiver with 0.96 inch oled display
@dharmendrarawat784
@dharmendrarawat784 20 күн бұрын
Which Arduino use esfasific no. Of Arduino
@michaelgarcia5493
@michaelgarcia5493 2 ай бұрын
Rock on 🤘🏽😎🤘🏽!!!!
@warenmann1042
@warenmann1042 2 ай бұрын
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"...
@creativeamar1611
@creativeamar1611 3 күн бұрын
Mam do something with hx117 load cell
@naeemhaq3504
@naeemhaq3504 2 ай бұрын
Nice video as always. Do you make video if I give you my content?
@scottmerriman8549
@scottmerriman8549 2 ай бұрын
Great!
@RachelDeBarrosLive
@RachelDeBarrosLive 2 ай бұрын
Glad you liked it!
@jimfrozen521
@jimfrozen521 2 ай бұрын
Math class 1.5 x1.5 = one times one and a half times one one and a half lol love you
@thomastegen8020
@thomastegen8020 18 күн бұрын
Finally google Rachel because she looked so familiar. She was one of the ladies on three girls garage!
@jyvben1520
@jyvben1520 2 ай бұрын
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 ай бұрын
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 🤣😂
@jimfrozen521
@jimfrozen521 2 ай бұрын
🤔
@kikinlozano958
@kikinlozano958 14 күн бұрын
Haz otro canal en español. usa IA para traducir tus videos y así de fácil duplica tus vistas.
@jimfrozen521
@jimfrozen521 2 ай бұрын
Please ,play the violin again
@jimfrozen521
@jimfrozen521 2 ай бұрын
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 !
How to Control a Servo with an Ultrasonic Sensor and Arduino + Code
21:38
Rachel De Barros
Рет қаралды 2,8 М.
How to Use a Joystick with Arduino: Wiring and Basic Controls
13:44
Rachel De Barros
Рет қаралды 20 М.
Chain Game Strong ⛓️
00:21
Anwar Jibawi
Рет қаралды 41 МЛН
Robot Transformer Optimus Prime mini lego
10:20
Bricks LEGO
Рет қаралды 695
Make a TINY Arduino Drone with FPV Camera - Will It Fly?
20:26
Max Imagination
Рет қаралды 1,5 МЛН
How to Control a 12V Motor with Arduino: Easy Wiring & Code Examples
44:13
Waterproof Ultrasonic Distance Sensors - JSN-SR04T & A02YYUW 💧☔
32:11
DroneBot Workshop
Рет қаралды 204 М.
Motion-activated Servo Motors with Arduino and PIR Sensor
25:20
Rachel De Barros
Рет қаралды 47 М.
Build Your Own Drone Tracking Radar:  Part 1
20:08
Jon Kraft
Рет қаралды 612 М.
Motion-activated Sound Effects with Arduino, PIR Sensor & MP3 Player
25:26
I Accidentally Bought the New Arduino UNO R4 (And It's INSANE)
5:15
How to Use Millis to Master Arduino Multi-tasking
50:17
Rachel De Barros
Рет қаралды 63 М.