Welcome to this video on Arduino Tutorial for Beginners. This video about Sonar Module (HC SR04) Ultrasonic Distance Sensor With Arduino.
This video shows how Sonar module work
The sonar module will transfer wave to object and then receive that reflected wave again . And we will base on this way to calculate the distance between object and module.
About TIME :
We call time transfer from module to object is t1
We call time receive echo wave from object is t2
Two time is approximate equal , so we can get the TIME = (t1 + t2 )/2
About SPEED :
The speed of sound is around 340-359 in our air, so i will take average is about 347.5 m/s
we will convert it to cm/us on google or divide be 100000 ,And we can get the SPEED
About DISTANCE:
Base on the formular , we have DISTANCE = TIME * SPEED (cm)
We can use the method above to get the distance or use the library on the internet
----------------------
Code :
pulseIn(_pin,HIGH)
This fuction will retrurn a INTERGER value of HIGH time in a pulse
pulseIn(_pin,LOW)
This fuction will retrurn a INTERGER value of LOW time in a pulse
This video is created by Anh Quân Tống - / anhquantong
Arduino is an open-source hardware platform based on an Atmel AVR 8-bit microcontroller and a C++ based IDE. Arduino is the go-to gear for artists, hobbyists, students, and anyone with a gadgetry dream. Arduino microcontrollers are programmed using the Arduino IDE (Integrated Development Environment). Arduino IDE Can be downloaded for free from arduino.cc/en/M...
Arduino programs, called “sketches”, are written in a programming language similar to C and C++. Many sensors and other hardware devices come with prewritten software - look on-line for sample code, libraries (of functions), and tutorials. Learn the Arduino platform and programming language to create robots, interactive art displays, electronic gadgets and much more.
#ProgrammingKnowledge #Arduino #ArduinoTutorial
★★★Top Online Courses From ProgrammingKnowledge ★★★
Python Programming Course ➡️ bit.ly/2vsuMaS ⚫️ bit.ly/2GOaeQB
Java Programming Course ➡️ bit.ly/2GEfQMf ⚫️ bit.ly/2Vvjy4a
Bash Shell Scripting Course ➡️ bit.ly/2DBVF0C ⚫️ bit.ly/2UM06vF
Linux Command Line Tutorials ➡️ bit.ly/2IXuil0 ⚫️ bit.ly/2IXukt8
C Programming Course ➡️ bit.ly/2GQCiD1 ⚫️ bit.ly/2ZGN6ej
C++ Programming Course ➡️ bit.ly/2V4oEVJ ⚫️ bit.ly/2XMvqMs
PHP Programming Course ➡️ bit.ly/2XP71WH ⚫️ bit.ly/2vs3od6
Android Development Course ➡️ bit.ly/2UHih5H ⚫️ bit.ly/2IMhVci
C# Programming Course ➡️ bit.ly/2Vr7HEl ⚫️ bit.ly/2W6RXTU
JavaFx Programming Course ➡️ bit.ly/2XMvZWA ⚫️ bit.ly/2V2CoAi
NodeJs Programming Course ➡️ bit.ly/2GPg7gA ⚫️ bit.ly/2GQYTQ2
Jenkins Course For Developers and DevOps ➡️ bit.ly/2Wd4l4W ⚫️ bit.ly/2J1B1ug
Scala Programming Tutorial Course ➡️ bit.ly/2PysyA4 ⚫️ bit.ly/2PCaVj2
Bootstrap Responsive Web Design Tutorial ➡️ bit.ly/2DFQ2yC ⚫️ bit.ly/2VoJWwH
MongoDB Tutorial Course ➡️ bit.ly/2LaCJfP ⚫️ bit.ly/2WaI7Ap
QT C++ GUI Tutorial For Beginners ➡️ bit.ly/2vwqHSZ
★★★ Online Courses to learn ★★★
Get 2 FREE Months of Unlimited Classes from skillshare - skillshare.eqc...
Data Science - bit.ly/2lD9h5L | bit.ly/2lI8wIl
Machine Learning - bit.ly/2WGGQpb | bit.ly/2GghLXX
Artificial Intelligence - bit.ly/2lYqaYx | bit.ly/2NmaPya
MERN Stack E-Degree Program - bit.ly/2kx2NFe | bit.ly/2lWj4no
DevOps E-degree - bit.ly/2k1PwUQ | bit.ly/2k8Ypfy
Data Analytics with R - bit.ly/2lBKqz8 | bit.ly/2lAjos3
AWS Certification Training - bit.ly/2kmLtTu | bit.ly/2lAkQL1
Projects in Java - bit.ly/2kzn25d | bit.ly/2lBMffs
Machine Learning With TensorFlow - bit.ly/2m1z3AF | bit.ly/2lBMhnA
Angular 8 - Complete Essential Guide - bit.ly/2lYvYRP
Kotlin Android Development Masterclass - bit.ly/2GcblsI
Learn iOS Programming Building Advance Projects - bit.ly/2kyX7ue
★★★ Follow ★★★
My Website - www.codebind.com
DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This help support the channel and allows us to continue to make videos like this. Thank you for the support!
27 авг 2024