0% found this document useful (0 votes)
154 views4 pages

Project Name: Interfacing of Rain Drop Sensor With Arduino Uno

This document describes how to interface a rain drop sensor with an Arduino Uno board. The rain drop sensor detects moisture on its printed circuit board through changes in resistance measured by an LM393 op-amp. The sensor provides analog and digital outputs to indicate moisture levels. The document provides materials needed, circuit diagrams, sample code to read the sensor, and precautions when building and testing the circuit.

Uploaded by

Siddhi rustagi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
154 views4 pages

Project Name: Interfacing of Rain Drop Sensor With Arduino Uno

This document describes how to interface a rain drop sensor with an Arduino Uno board. The rain drop sensor detects moisture on its printed circuit board through changes in resistance measured by an LM393 op-amp. The sensor provides analog and digital outputs to indicate moisture levels. The document provides materials needed, circuit diagrams, sample code to read the sensor, and precautions when building and testing the circuit.

Uploaded by

Siddhi rustagi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Project Name: Interfacing of Rain Drop Sensor with Arduino Uno.

Description: In this tutorial we will learn how to interface a Rain Drop Sensor with the Arduino Uno.

What is a Rain Drop Sensor?

Raindrop sensor is basically a board on which nickel is coated in the form of lines. It works on the principal of
resistance. Rain Sensor module allows to measure moisture via analog output pins and it provides a digital output
when a threshold of moisture exceeds.

The module is based on the LM393 op amp. It includes the electronics module and a printed circuit board that
“collects” the rain drops. As rain drops are collected on the circuit board, they create paths of parallel resistance
that are measured via the op amp.

Material Required:

Material Quantity

Arduino Uno 1

Rain drop sensor 1

Jumper cables 4
Pinout Diagram:

Circuit Diagram:

Parameter Value

Vcc +5 Volts Power Source

GND Ground or negative power source

A0 Analog Output – A0

.
Tested Programming Code:
const int sensorMin = 0;

const int sensorMax = 1024;

void setup()

Serial.begin(9600);

void loop()

int sensorReading = analogRead(A0);

int range = map(sensorReading, sensorMin, sensorMax, 0, 3);

switch (range)

case 0:

Serial.println("RAINING");

break;

case 1:

Serial.println("RAIN WARNING");

break;

case 2:

Serial.println("NOT RAINING");

break;

delay(1000); }
Precautions:

1. Double check the connections before powering on the circuit.

2. Don’t use loose jumper cables.

3. Check whether proper board is selected from Arduino IDE.

4. Ensure proper placement of Rain drop Sensor for correct working.

5. Don’t lose hope if Rain Drop Sensor does not run properly for the first time, try again.

Conclusion:

Once your sketch is running, you have to open your serial monitor. There you can see the Moisture or
Rain on the Board.

References: https://electrosome.com/interfacing-rain-sensor-arduino/

http://www.instructables.com/id/Arduino-Modules-Rain-Sensor/

You might also like