How to make an Arduino Distance Meter using Ultrasonic Sensor
ฝัง
- เผยแพร่เมื่อ 27 พ.ค. 2024
- Find electronic components on www.utsource.net/
Utsource is a proffesional elelctronics supplier with more than 2 million product, lower price with free shipping.
Utsource also provide 0 profit health care product like masks and Infrared Thermometer..., you can order it here www.utsource.net/home/healthcare
Hello and welcome back to creative stuff..
In this video we are going to make an Arduino Distance Meter using HC-SR04 Ultrasonic Sensor.
HC-SR04 Ultrasonic (US) sensor is a 4 pin module, whose pin names are Vcc, Trigger, Echo and Ground respectively. This sensor is a very popular sensor used in many applications where measuring distance or sensing objects are required. The module has two eyes like projects in the front which forms the Ultrasonic transmitter and Receiver. The sensor works with the simple high school formula that
Distance = Speed × Time
The Ultrasonic transmitter transmits an ultrasonic wave, this wave travels in air and when it gets objected by any material it gets reflected back toward the sensor this reflected wave is observed by the Ultrasonic receiver module .
To make this project we are going to need :-
1----1x Breadboard www.utsource.net/itm/p/922129...
2----1x Arduino UNO www.utsource.net/itm/p/864718...
3----1x 1602 LCD Display www.utsource.net/itm/p/646629...
4----1x 10K Potentiometer www.utsource.net/itm/p/803895...
5----1x HC-SR04 Ultrasonic module
5---- connecting wires
Arduino Code:-drive.google.com/open?id=16Di...
Subscribe to my channel
/ creativestuff
If you want to support my channel financially, you can do that here
paypal.me/creativestuffyt
Contact for business:-
facebook - / creativestuff101
Email:- rupak3219@gmail.com
whatsapp- +917657022069 (whatsapp only, dont call)
If you like what i do here and want to help me financially so that I can make more videos for you...then,this is for you :- paypal.me/creativestuffyt
MAKE YOUR OWN 7 SEGMENT DISPLAY
• MAKE YOUR OWN 7 SEGMEN...
how to make WIRELESS SCROLLING DISPLAY BOARD
• how to make wireless s...
How to make an ELECTRIC SCREWDRIVER
• How to make an Electri...
How to Control a LOT of LEDs with Arduino & 74hc595
• How to Control a LOT o...
#creativestuff #electronics - วิทยาศาสตร์และเทคโนโลยี
Please send me code not opening discrspriton
If you want to use potentiometer for correction distance error what is code?
Rather than 10k ohm potentiometer can we use 20k ohm potentiometer...?
Nice Video and project. great idea I'm going back to basics because I'm a bit rusty with arduino and looking for ideas
Thank you really much for this tutorial. It was great. Heres a tip: try to name the pins of the lcd next time. But overall, this was a super good tutorial.
Thanks for the idea!
Can use jumper wire instead of using the wires in the middle 1:19 hope you reply 😢😢
Great video and project
Sir ye project ek din ke liye de skte hai kya
Another great tutorial friend.
Thanks for sharing.
I'm facing this error while compiling code
C:\Users\HOME\AppData\Local\Temp\ccfan3ci.ltrans0.ltrans.o: In function `pulseIn':
C:\Users\HOME\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.3\cores\arduino/wiring_pulse.c:46: undefined reference to `countPulseASM'
collect2.exe: error: ld returned 1 exit status
Compilation error: Error: 2 UNKNOWN: exit status 1
excellent Am hobbyist. I need the code and circuit diagram for 1) distance measurement both CM & Inches with decimal( Centimeter & Inches) for 16X02LCD without using breadboard
And
2) distance measurement both CM , Inches , Ft & MM with decimal(CM , Inches, Millimeter & feet) for 16X04LCD
Can you pls share it?
my lcd is displaying in some other language or just in characters but not english
how do increase The fps
Can we change the unit of Length on this Circuit?
yes, it's a programming
What's the use of potentiometer?
To control the visibility of the lcd module
Code is not working
What is the use of potentiometer in the circuit
Potentiometer Controls The Contrast
How to program any microcontroller from mobile please make a video
I will try to make that ....thanx for the comment
Sir how to power the adruino how much volt
5 volt....mobile charger se ya fir 9 volt battery
BRO WHAT IS THE USE OF THE POTENTIOMETER IN THIS PROJECT?
Contrast
brightness
Contrast
Paste code here please, in description the code is not opening
#include
#define trigger 9
#define echo 8
LiquidCrystal lcd(12,11,5,4,3,2);
float time=0,distance=0;
void setup()
{
lcd.begin(16,2);
pinMode(trigger,OUTPUT);
pinMode(echo,INPUT);
lcd.print(" Ultra sonic");
lcd.setCursor(0,1);
lcd.print("Distance Meter");
delay(2000);
lcd.clear();
lcd.print(" creative stuff");
delay(2000);
}
void loop()
{
lcd.clear();
digitalWrite(trigger,LOW);
delayMicroseconds(2);
digitalWrite(trigger,HIGH);
delayMicroseconds(10);
digitalWrite(trigger,LOW);
delayMicroseconds(2);
time=pulseIn(echo,HIGH);
distance=time*340/20000;
lcd.clear();
lcd.print("Distance:");
lcd.print(distance);
lcd.print("cm");
lcd.setCursor(0,1);
lcd.print("Distance:");
lcd.print(distance/100);
lcd.print("m");
delay(1000);
}
hi i was trying your aurdino ultra sonic i did all the steps althoug its not working pls help me i he only few days
Brother can u send me a code
How far can he measure?
from 2 cm to 4 meters
my lcd is not showing text.....what should i do?
same
@@jamalanees3432 i think the code is wrong
Did you manage to find a solution?
Sir my lcd is not working please guide me
What do you mean by not working?
Sir it is not displaying anything after I have connected my audrino to my computer
I will reconnect every wire again
Is the backlight working?(the yellow/blue screen light)
Arduino: 1.8.12 (Windows 10), Board: "Arduino Uno"
Sketch uses 2986 bytes (9%) of program storage space. Maximum is 32256 bytes.
Global variables use 200 bytes (9%) of dynamic memory, leaving 1848 bytes for local variables. Maximum is 2048 bytes.
avrdude: ser_open(): can't open device "\\.\COM4": The system cannot find the file specified.
Problem uploading to board. See www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
It says error can u help me pls?
disconnect the arduino cable and reconnect.. if it still doesnt work, check the ports, select correct board, check port drivers, it should work fine