esp32 experiments

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
fine so next experiment is about interfacing that is the second experiment this distance measurement so in this one we are using one ultrasonic Sensor One i2c LCD because i2c will have less connections compared to nor 16c without IC so in this experiment we'll be connecting one ultrasonic sensor and whatever the distance it measures with the helping object nearby distance will display on the LCD so this is the second experiment I develop the code here LCD this is how we have the interface also and this is a circuit diagram and SDA pins pin is available on 22 and SDA pin is available on 21 so if you see the circuit diagram also on LCD also you'll find those same pins as CSD we see in the video also and see ESP circuit diagram SC is available on 22 and SD is available on 21 P so here we have to connect those two connections of the LCD and we can power on the LCD by connecting to vum and ground 5 volt and ground so from here we can take and connect on the multimeter also so that we'll see in the video This is how we can do the connections with LCD so coming back to the program so in the program we have used Liquid Crystal i2c library and then trigger and EOP of ultrasonic is connected to fifth so D5 return pin you can use it or d18 pin return can be used for triggering Eco connections to varibles for measuring the distance duration and distance like based on the duration distance will be calculated in case of ultrasonic sensor serial begin for displaying the same values in the serial monitor also whatever is detected from the ultrasonic sensor so trigger pin is output that has been mentioned Tri Echo pin is input then LCD functions for begin clear and backlight purpose and LCD function clear to clear the screen and set cursor for giving the address to display on particular location in the LCD ultrasonic sensor based distance so this is for the first row First Column first row zero column and this is for first row second row uh based distance it will display then in the loop uh ultrasonic sensor program is there to calculate the distance and it will this program will display in serial monitor also because serials are mentioned here and even on LCD also because LCDs are mentioned so whatever distance is calculated the distance in centimeter will be displayed here on the LCD to upload the code click here on upload so compiling for any errors once compiling is done it will start uploading still compiling only since there are no errors compiling is done now code is getting uploaded once uploading is done we can see in the video how the program will display the ultrasonic values on the LCD this is the ultrasonic sensor having four pins VCC trigger Eco and ground trigger Eco will be connected on esp32 in the program as mentioned and then uh this is our esp32 from here V in pin and ground will take out the voltage and connect on the multimeter and this is our LCD 16x2 LCD with i2c attached CL SDA VCC ground so these all pins will be connecting uh SC SDA with the esp32 board and then power supplies with a bad board so this is my esp32 so I'm taking out the power supplies from V in and ground pins so this I'm connecting red color any color we can connect V in so next I need to connect the ground and male to female connectors we should use male to female connector so ground any of the columns I'm connecting it on the breadboard and v in also and any of the so this is my VN power supply 5 volt and this is my ground so from LCD also so if I take out ground I will be connecting here and 5 volt I will be connecting here here on the red color one so this is my 5 Vol because I taken 5 Vol from the esp32 over here scsd will check in the program and connect and this is for El uh ultrasonic sensor red color is 5 volt so I'm connecting on 5 volt and then black color is ground in the ultrasonic sensor so here I'm connecting on the ground for power supply to the ultrasonic sensor these connections we have to be monitoring very carefully this is my power supply I connected power supply to the audinos also now as for the program now as part the program pin uh trigger pin on the ultrasonic sensor trigger pin is connected to D5 so in the ESP check for D5 connect it over there D5 pin here it is D5 and E I connected there trigger trigger I am connecting on d18 as mentioned in the program trigger is connected to fifth pin sorry trigger is connected to Eco is 18th Eco here is 18th yes e is 18 trigger is D5 then SC SD SC1 22 sd1 21 now if I power on now if I power on it will start displaying the distance on the LCD distance so connections from ultrasonic sensor trigger Eco as mentioned here 5 and 18 D5 and d18 Trigger Eco and then SDA anyhow we will not mention in the program SDA address we are mentioning 0 x27 so that SL if you see the diagram of is G22 that is d22 and SDA is D21 D21 D will be mentioned when you purchase esp32 def kit so that that is about it is displaying the distance if I measure the distance if I show any object the see distance is very less I'm increasing so it should say 6 to 7 cm 8 cm it is way if I increase see here distance I increased 15 cm I decrease now so it is displaying distance properly see here immediate response is there 14 cm
Info
Channel: Robotic AI projects
Views: 109
Rating: undefined out of 5
Keywords:
Id: YcPEfVCR2-I
Channel Id: undefined
Length: 8min 6sec (486 seconds)
Published: Thu Jul 04 2024
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.