hello guys welcome to tech maker in this video I will show you how to make the
distance measuring device using arduino so let's get started so that gets
the components required are i2c LCD display for jumper wives
HC SR 04 ultrasonic sensor, breadboard arduino uno or nano now first
insert the arduino nano on the breadboard carefully now first we'll
connect the i2c LCD display to the board here you can see it is having the
four pins the one is ground second one is VCC third one is SDA and fourth one is
ScL this SDA, SCL goes to the a4 and a5 respectively
first we connect the SDA to the a4 of nano and SCL goes to a5 and
ground goes to ground
finally vcc goes to 5v one, by this the
display part is completed now we will insert this ultrasonic sensor which is
called as HCSR 04 in the breadboard here we can see the four
pins first one is the ground second one is echo and third one is
trigger and fourth one is VCC now it will place this on the bed board and
take few jumper wires and first pin is VCC will goes to +5 volts and trigger
goes to d3 and echo goes to d2 finally the ground goes to ground here the
in part is completed now way to - the circuit now I'm uploading code to this
or in own an award now the code is uploading you can see the blinking of
the TX and rx the core uploaded successfully now you can see here now we
showing 38 centimeters and 14 inches now I am reducing the distance see 9
centimeters 3 inches somewhat for 16 centimeter and 6 inches somewhat for 26
centimeters 10 inches you can download the code from the link in the
description that's all in this video for more
electronic projects and tutorial don't forget to like don't forget to like
share and subscribe I will see you in the next one
you
Không có nhận xét nào:
Đăng nhận xét