Тёмный
No video :(

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

Science Buddies
Подписаться 293 тыс.
Просмотров 92 тыс.
50% 1

Опубликовано:

 

28 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 41   
@hazelfunnehfangirl5hamburg805
@hazelfunnehfangirl5hamburg805 10 месяцев назад
thank u helped me before getting killed in the program class dude for forgetting to save the process
@limuelmagbanua3137
@limuelmagbanua3137 13 дней назад
I'm having trouble tryna use a grove model of ultrasonic sensors, and it keeps calculating to 0
@maximarkhipov2186
@maximarkhipov2186 5 месяцев назад
Thanks for the detailed and easy to understand video helped me a lot !!
@Studs_Studio
@Studs_Studio 6 месяцев назад
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
@Science.Buddies
@Science.Buddies 6 месяцев назад
Check out the rest of our tutorials and videos on our channel, we have instructions for autonomous/RC robots as well!
@yehonatankalandarev6343
@yehonatankalandarev6343 8 месяцев назад
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?
@Science.Buddies
@Science.Buddies 8 месяцев назад
This sensor would work to detect when an object is within a certain distance. Please see our other Arduino tutorials linked in the description of this video.
@k0rnluvr
@k0rnluvr Год назад
Great vid! thanks
@motomichinakamura6413
@motomichinakamura6413 5 месяцев назад
Is there any enclosure or casing available for this setting?
@thesuitedsaltshaker8388
@thesuitedsaltshaker8388 Год назад
thank you man, helped me a lot
@Pet-vk3ig
@Pet-vk3ig 5 месяцев назад
Nice, good job
@CoolOjas02
@CoolOjas02 Год назад
Code? Can you give doc
@Howdy-Harry
@Howdy-Harry 3 месяца назад
Amazing
@bfuh_055
@bfuh_055 2 месяца назад
Does this sensor also detect the intensity of the reflected wave?
@Science.Buddies
@Science.Buddies 2 месяца назад
No, it only detects how long it took the wave to bounce back.
@paulcarsco6029
@paulcarsco6029 Месяц назад
Can you provide the code link please.
@joshhallwatp3783
@joshhallwatp3783 4 месяца назад
When writing the exact same code it comes up with trigpin was not declared in this scope pinmode
@Science.Buddies
@Science.Buddies 4 месяца назад
The Arduino code is case sensitive, make sure your code matches the example exactly (pinMode and trigPin)
@joshhallwatp3783
@joshhallwatp3783 4 месяца назад
@@Science.Buddies yeah forgot the capital for M
@imahumanbe1ng
@imahumanbe1ng 4 месяца назад
does this work with arduino maker uno x???
@Science.Buddies
@Science.Buddies 4 месяца назад
We haven't used the Maker Uno X but it is listed as fully compatible with the Arduino Uno R3, so it should.
@MotomichiStudio
@MotomichiStudio 5 месяцев назад
How far can the sensor work in terms of distance?
@itsnd64
@itsnd64 5 месяцев назад
~400cm
@jomfawad9255
@jomfawad9255 2 месяца назад
does it work outdoor if theres sunlight?
@Science.Buddies
@Science.Buddies 2 месяца назад
Yes, this sensor uses ultrasonic sound and should not be affected by lighting conditions (with the caveat that the speed of sound depends on air temperature, so that can indirectly affect the readings, but the sensor will still work).
@kastriotgega2486
@kastriotgega2486 21 день назад
Does it work for underground dedection?
@Science.Buddies
@Science.Buddies 17 дней назад
No, this sensor is not designed to detect underground objects. The ultrasonic waves will be reflected back and it will just measure the distance to the ground.
@joshhallwatp3783
@joshhallwatp3783 4 месяца назад
Also saying pinmode was not declared in this scope
@jackleone1206
@jackleone1206 7 дней назад
do "pinMode" not "pinmode" thats what got me. hope this helps someone
@adityamandal2456
@adityamandal2456 Год назад
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👆
@Science.Buddies
@Science.Buddies Год назад
The program in that project uses a function to read the ultrasonic sensor instead of putting all of the code directly in the loop() function. So, you would need to change the function to use two pins instead of one. For example, the call to the function could be distance = readUltrasonic(trigPin, echoPin) and then the first line of the function would be long readUltrasonic(int pin1, int pin2). You would then change the code in the function to use pin1 (corresponding to trigPin) and pin2 (corresponding to echoPin). We're glad that you asked about this because I realized there is actually an error in the existing example program - the way it's written now, the readUltrasonic function should use the "pin" variable inside the function, not "pingPin." so for example the line pinMode(pingPin, OUTPUT); should be pinMode(pin, OUTPUT). Hope that helps! We will update the example code.
@adityamandal2456
@adityamandal2456 Год назад
@@Science.Buddies Thanks for the information 👍
@SunbeamVaruna-ef3pp
@SunbeamVaruna-ef3pp 21 день назад
@Sabbir-ln3bx
@Sabbir-ln3bx 4 месяца назад
how do you use it with LEDs?
@Science.Buddies
@Science.Buddies 4 месяца назад
Please see our Arduino tutorial playlist which covers LEDs: ru-vid.com/group/PLlBVuTSjOrclb0iCMSRpS_H1lSrlSVeEm&si=cyCw5jX3CNvyX5me
@gauthierwouters2593
@gauthierwouters2593 Год назад
how to do the lights?
@Science.Buddies
@Science.Buddies Год назад
If you check out our Arduino tutorial playlist (linked in the description) you will find other videos about controlling LEDs.
@Zemabri
@Zemabri 2 месяца назад
im using this against my dog, not for a distance sensor
@GrahamEisele
@GrahamEisele Месяц назад
Its just reading 0 for me.
@Idontknow4
@Idontknow4 6 дней назад
you might not have the wires connected correctly make sure 5v in vcc ground in ground and that you have trigpin and echopin connected to the correct pin on the arduino to make it match with the code
Далее
НЕ ИГРАЙ В ЭТУ ИГРУ! 😂 #Shorts
00:28
Просмотров 194 тыс.
Ultrasonic Sensor HC-SR04 and Arduino Tutorial
5:16
Просмотров 1,4 млн
13 Brilliant IoT Projects!!! (2024 Edition)
10:25
Просмотров 131 тыс.
Are my Circuits ILLEGAL to use?!
10:42
Просмотров 287 тыс.
Laser vs Ultrasonic - TOF10120 vs. HC-SR04
31:09
Просмотров 183 тыс.