HC-SR04 Ultrasonic Distance Sensor and Arduino (Lesson #9)

preview_player
Показать описание


0:00 intro
0:48 Arduino connections
1:05 datasheet
2:00 code
4:35 comparing the HC-SR04 and the PING

#STEM #sciencebuddies #arduino #electronics #programming
*******************************
Connect with Science Buddies:

Рекомендации по теме
Комментарии
Автор

Okay.... after it taking longer than it should have, I figured out how to make the series of LEDs work!
Even at ten inch increments!!!

I figured out that I needed to write, threshold * 2 for the second LED. Then I did times 3 for the next, and then times 4!

I honestly can't believe I figured it out. I'm so dang proud of myself. Lol 😎
Thanks for the challenge!
So pumped!!!

johnman
Автор

thank u helped me before getting killed in the program class dude for forgetting to save the process

hazelfunnehfangirlhamburg
Автор

Great tutorial! does everything it says and does it well. now i gotta figure out how to make it turn on leds depending on distance

veryvaughsome
Автор

this is amazing! i made it so if youre too close a buzzer starts beeping. i want to use this on an rc car to automaticly stop

Studs_Studio
Автор

Is there any enclosure or casing available for this setting?

motomichinakamura
Автор

My little brother burst into laughter when he heard "Male to Female pins" lol

Dragonforge-Studios
Автор

I want to make a disc shooter that can be attached to the arm, and I want to add a control system to it, basically when the palm "blocks" the shot, the disc shooter will not fire.
So I thought to connect this sensor to perform this operation, do you think it is correct? Does it suit my needs?

yehonatankalandarev
Автор

Rite Buddies Dude, Worked first time awesome! TFS, GB :)

graemebrumfitt
Автор

Thanks for the detailed and easy to understand video helped me a lot !!

maximarkhipov
Автор

im using this against my dog, not for a distance sensor

Zemabri
Автор

I'm having trouble tryna use a grove model of ultrasonic sensors, and it keeps calculating to 0

limuelmagbanua
Автор

How far can the sensor work in terms of distance?

MotomichiStudio
Автор

does this work with arduino maker uno x???

imahumanbeng
Автор

does it work outdoor if theres sunlight?

jomfawad
Автор

I am definitely failing this class omg

cal
Автор

Does it work for underground dedection?

kastriotgega
Автор

In your Automatic Braking project using Ultrasonic sensor, I have changed the PING))) sensor to HCSR04. But there's a line in the code saying
distance = readUltrasonic(pingPin)
Now how to change that👆

adityamandal
Автор

When writing the exact same code it comes up with trigpin was not declared in this scope pinmode

joshwatp
Автор

Does this sensor also detect the intensity of the reflected wave?

bfuh_
Автор

Also saying pinmode was not declared in this scope

joshwatp