Hello, everyone.
Welcome back to the course of Raspberry Pi.
Pico.
So in this video, I'm going to show you how you can interface a raindrop sensor using Raspberry Pi
Pico.
So without wasting any time, let's get started.
So in order to build a project, we need a few components which are breadboard LCD to display Raspberry
Pi, Pico Raindrop sensor module and a few jumper wires.
So first of all, let us see the circuit diagram.
So now coming to the coding section.
So basically we require two files for this project.
First of all, we need these two LCD driver.py files and second one is our main.py file.
And these two driver basically for displaying my value on the LCD display.
And basically we have, we, we will do work in the main.py file.
And in this file we do the rain coverage 100 minus.
First of all, we have to write the conversion factor which is 100 divided by 65,005 35 then if this
is true, then we have to go to rain coverage with 100 minus ATC dot read 16 into conversion factor
means that my the amount of water occupied on my rain drop sensor.
Then we have to print this value in percentage in on on on our LCD display.
So there is one which is LCD display string rain, which is 0.1 percentage in, in the rain in the percentage
format.
Then it will go to sleep for 100 milliseconds.
So now let us run this code.
So after uploading the code, when I used to put the drop of water in my raindrop sensor, you can see
that my rain intensity is showing that it is 48.5% drastically increasing then it is more.
I used to put the drop of water, then it is increasing to 66.2%, 65.2%, 63.6%.
So in this way you can interface a raindrop sensor using Raspberry Pi pico.
Thank you.