Tags: Water, Raindrops, Detection, Sensor, 3.3, 5v, Single, side, copper, Amplifier

Water Raindrops Detection Sensor 3.3-5v Single Side Copper With Amplifier

  • 7.00 AED
    • Ex Tax:7.00 AED
    • Product Code: Raindrops Sensor single Side
    • Availability: In Stock
    Water Rain snow Detection Sensor 3.3-5v Single side copper plate can be used for a variety of weather conditions and converted into a number using the ADC with Arduino or directly without it. the Opamp with it has a TTL-level output, TTL output valid signal is low. Driving capability ..

    Water Rain snow Detection Sensor 3.3-5v Single side copper plate can be used for a variety of weather conditions and converted into a number using the ADC with Arduino or directly without it. the Opamp with it has a TTL-level output, TTL output valid signal is low. Driving capability 100mA so can directly drive relays, buzzers, a small fan, and so on.


    Product description:
     The sensor uses the one-sided sensing plate, large Size 5.0 * 4.0cm, and with a Copper surface no Nickel, High conductivity.

     TTL-level output, TTL output valid signal is low. Driving capability 100mA so can directly drive relays, buzzers, a small fan, and so on.

     Sensitivity can be adjusted via potentiometer Operating voltage 3.3V-5V
     The output in the form: digital switching outputs (0 and 1) and analog AO voltage output;
     A fixed bolt hole for easy installation
     Power indicator, the output signal LED indicator.
     LED lights up when there is no rain output is high, raindrop up, the output ground level, LED light.
     Raindrops and control panels are separate, easy to wire.
     A large area of rain board, which gives a more conducive area to detect rain.
     Board with positioning holes to make the installation easier.
     Small board PCB size: 3.2cm x 1.4cm
     A wide voltage LM393 comparator

    How to use:
    Connected to 5V power supply, the power indicator light, sensor board is not water droplets, DO output is high, the switch lights off, dropping on a drop of water, DO output is low, the indicator light switch,
    wipe off the water above, and you will see it returned to output high state. . . .
    AO analog output can be connected to the microcontroller AD port to detect the size of the drops on the plate.
    DO TTL digital outputs can also be connected to the microcontroller detects whether there is rain.


    Connection Pins:

    1, VCC: positive power supply (3-5V)
    2, GND: negative one.
    3, DO: TTL switching signal output
    4, AO: Analog signal output

    Package Including:
    1 x Rain-sensing board
    1 x Control board
    2 x Dupont wire


    Tutorial of how to wire and connect the Water Rain snow Detection Sensor and Arduino code for Water Rain snow Detection Sensor :

    The Control Board

    The control board consists of two input pins and four output pins. The input pins are connected to the mainboard and the output pins to your favorite microcontroller, for example, an Arduino Uno or a NodeMCU.

    On the control board, you find multiple resistors that also functions are the voltage divider to provide an analog signal for the rain intensity. Therefor as input, we get resistance from the mainboard and the control board converts this resistance into a voltage drop between the analog pin and ground. The microcontroller uses the internal analog to digital converter (ADC) to convert the voltage from the analog pin to a digital value between 0 and 1023 that can be printed to the serial output in your Arduino IDE.

    The biggest part on the control board is the potentiometer to adjust the sensitivity of the rain detector. The potentiometer is only a variable resistor whose resistance is changed with the setting wheel at the top. We need this potentiometer to compare the resistance of the potentiometer with the resistance of the mainboard. If the resistance of the raining board is lower than the threshold, defined by the potentiometer, the digital output of the control board changes from 1 HIGH to 0 LOW.

    LM393 High Precision Comparator - Sensitivity Adjustment
    LM393 High Precision Comparator - Comparator

    But who does this comparison between the two resistances? This is done by the LM393 comparator because the voltage drop over both resistors is linear to their resistance due to ohms law. The LM393 consists of two independent precision voltage comparators and is specially designed to operate from a single power supply, in our case the microcontroller.

    Wiring of the Rain Sensor

    The following two pictures show the wiring between the mainboard and the control board as well as the connection between the control board and the Arduino microcontroller and the NodeMCU as ESP8266 based microcontroller. Because the raining board only connects a resistance to the control board, switching the connection does not have any influence.

    Rain Sensor Arduino_Steckplatine
     
    Rain Sensor NodeMCU_Steckplatine

    Examples of the Rain Sensor

    • Read-only the analog value and create a time series chart of the analog value.
    • Read also the digital value and print the analog and digital value to the serial output.


    1- we can use the wiring from the previous picture :

    #define rainAnalog A1
    #define rainDigital 2
    void setup() {
     Serial.begin(9600);
     pinMode(rainDigital,INPUT);
    }
    void loop() {
     int rainAnalogVal = analogRead(rainAnalog);
     boolean bIsRaining = !(digitalRead(rainDigital));
     Serial.println(rainAnalogVal);
     delay(200);
    }
    

    The first step of the Arduino sketch is to define the analog and the digital pins that connect the microcontroller and the control board. In our case, we used the pin A1 for the analog connection and D2 for the digital connection as you see in the fritzing sketch of the Arduino Uno.

    In the setup function, we set the baud rate of the serial connection to 9600 that have to match to the serial output setting of the Arduino IDE to print the values. Also, we have to set the digital pin as input because we want to read values at this pin.

    In the loop function, we create the variable rainAnalogVal as integer and read the analog value from the analog pin with the built-in function analogRead(). Then we read also the digital value, with the build-in function digitalRead() and convert the logic with the NOT operator because the digital value from the control board is 0 (LOW) when it is raining and the logic makes more sense if the boolean variable is 1 (TRUE) if it is raining.

    To view the time series chart of the analog rain sensor we print the analog value to the serial output and with a short delay of 200 milliseconds we pause the script at the end before the loop is executed again.

    In the Arduino IDE, you can now activate the serial plotter under Tools → Serial Plotter and get a time series chart of the rain sensor like the following. You see clearly that the sensor value drops when we touch the raining board with my dry or wet finger.

    Rain Sensor Serial Plotter

    Read the analog and digital value

    Now we want also to display the digital value. This is super easy. We only have to add three lines of code to the loop function:

    void loop() {
     int rainAnalogVal = analogRead(rainAnalog);
     boolean bIsRaining = !(digitalRead(rainDigital));
     Serial.print(rainAnalogVal);
     Serial.print("\t");
     Serial.println(bIsRaining);
     delay(200);
    }
    

    After we print the analog value to the serial output we make a table and print the analog value of the rain sensor. In the following picture you see that if the analog value is reduced below a defined threshold through the potentiometer, the digital value changes from 0 to 1.

    Rain Sensor Serial Monitor

    There are no reviews for this product.

    Write a review

    Please login or register to review