How to Use HC-SR04 with Arduino (Quick tutorial for beginners)

preview_player
Показать описание
HC-SR04 is the most popular sensor in robotics and Arduino users, almost every obstacle avoiding robot uses this ultrasonic sensor to detect and avoid obstacles. It is very easy to use and to connect to an Arduino. It produces accurate measurements quickly and can be implemented with few lines of code.
HC-SR04:
Arduino:

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

wow that was amazing and have always been looking for explanation that was as good as yours. This video really helped me with my project thanks :)

dcreator
Автор

Hi Nikodem! Academic explanation (the serious way) is always welcome. You got it! Your viewers have various maths backgrounds but thanks a lot for not forgetting those who understand some minimal maths and signal triggering.Second point: your skills in improving your scripts combined with clear and close shots of your project details are awesome. Keep it up! It's dynamic and EFFECTIVE. By the way, what camera brands do you use to achieve your videos? I rank your quick tuto among the best around. Thanks for taking time to explain.

joetke
Автор

thank you for the video! please what kind of cable is that?SPI? THANKS again ^^

oumayma
Автор

Does temperature and sea level pressure affect these measurements?

maxvideodrome
Автор

I have made Bluetooth robotic car controlled by android app. I just need your help how to put code of obstacle avoidance when I turn myself the robot whether from left or right...

ahmedmutalemwa
Автор

How many points can this sensor detect? Is it only a single point or multiple? Would I need multiple of them for detecting a complex shape? I've been trying to look into it and I can't quite figure out if it'll serve my use case since I need multiple distance points. Example given, if I needed to scan a ball or a more complex shape to do some on-the-flight photogrammetry-esque object visualization, rather than a single point of distance. More than using it to measure distance, I'd be using it to detect depth for generating a pseudo-3D object visualization, but it seems like I'd need a stack of these to achieve such use.

Vectif
Автор

you should also place your coding in your comments so people can copy and paste if they need to

dcreator