0% found this document useful (0 votes)
46 views8 pages

Cse 323 Project

This document provides details about an Arduino-based rain detection project. It describes the background and motivation for creating a simple rain alarm system. The system uses a rain sensor connected to an Arduino board to detect rain and trigger an alarm. When the rain sensor gets wet, its resistance decreases and the Arduino detects a low voltage, signaling rain. If rain is detected, the Arduino activates a buzzer to alert users. Diagrams show the circuit connections and flowchart outlines the process. Code was written and testing showed the system successfully detects rain and triggers the alarm.

Uploaded by

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

Cse 323 Project

This document provides details about an Arduino-based rain detection project. It describes the background and motivation for creating a simple rain alarm system. The system uses a rain sensor connected to an Arduino board to detect rain and trigger an alarm. When the rain sensor gets wet, its resistance decreases and the Arduino detects a low voltage, signaling rain. If rain is detected, the Arduino activates a buzzer to alert users. Diagrams show the circuit connections and flowchart outlines the process. Code was written and testing showed the system successfully detects rain and triggers the alarm.

Uploaded by

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

Project Report

ARDUINO BASED PROJECT RAIN


DETECTOR

Submitted By
1. Saiful Islam Tanvir (2012530642)
2. Md. Taibur Rahaman (193142462)
3. Md. Rakibul Islam Reshad (2021723642)
CONTENTS

Introduction
Overview

Background and Motivation


Methodology
Tool Description
Coding Platform
Design Platform
Methodology
Project Diagrams and
Design Simulation Result
References
1. Introduction
1.1 Overview
The Rain Alarm Project is a simple but very useful project that detects rain (rainwater) and
automatically triggers an alarm or buzzer. Water is a basic need in everyone's life. Saving
water and proper usage of water are very important.
Here is an easy project that will sound the alarm when there is rain so that we can take some
actions for rainwater harvesting and also save the rainwater for later use.

1.2 Background and Motivation


With the help of saving this rainwater through rainwater harvesting, we can increase the
levels of underground water by using the underwater recharge technique. A rain water
detector will detect the rain and make an alert; it is used in the irrigation field, home
automation,
communication, automobiles, etc. This system is a very simple and reliable circuit for a
rainwater detector that can be constructed at a low cost. In this project, we have designed a
simple rain alarm circuit that, upon detecting rain, will activate a buzzer. Based on the
buzzer, we can take the necessary actions.

1.3 Methodology
When the rain board is fully wet and the resistance offered by it is minimum, the output
voltage will be as low as possible (approx. 0). This 0V is read as 0 value if read by an analog
pin of the Arduino. If the rain board module is partially wet, the output of this rain board
module will be with respect to the resistance it offers. If the resistance offered by the rain board
module is in
such a way that the output is 3V, the read analog value will be 613. The formula to find
ADC can be given as ADC = (analog voltage value X 1023)/5. By using this formula, you
can
convert any analog voltage to the Arduino analog read value.

2. Tool Description
2.1 Coding Platform
SENSOR CHARACTERISTICS
● Voltage: 3, 3v-5v
● Sensor Dimension: 3.9 x 5.4 cm
● Sensitivity potentiometer
● 2 control LED
CONNECTIONS
Arduino-- Comparator
5V >VCC
GND >GND
D0 >D4
A0 >A4

2.2 Design Platform


A rain sensor is composed of a rain detection plate with a comparator who manages intelligence.
The rain sensor detects water that comes short circuiting the tape of the printed circuits.
The sensor acts as a variable resistance that will change status: the resistance increases when the
sensor is wet, and the resistance is lower when the sensor is dry.
The comparator has two outputs connected to the rain sensor: a digital output (0/1) and an analog
output (0 to 1023).

3. Methodology
In this project, an Arduino Uno has been used, which is a type of Arduino board that is provided
as an open-source board that uses an ATmega328p microcontroller in the board. The Arduino
Uno contains a set of analog and digital pins that are input and output pins, which are used to
connect the board to other components. There are a total of fourteen I/O pins placed inboard, of
which six are analog input pins.

The rain sensor module or board is shown below. Basically, this board includes nickel-coated
lines, and it works on the resistance principle. This sensor module permits the measurement of
moisture through analog output pins and gives a digital output while the moisture is measured.
Flowchart

4. Project Diagrams and Design


The below circuit diagram shows the circuit connections for the Rain Drop Sensor with
Arduino. The design is done using proteus; the physical modules are similar to those shown in
the circuit diagram.
The rain gauge module, which is shown in the circuit diagram is connected to the control board.
The control board’s VCC pin is connected to the 5V supply. The ground pin is connected to
ground. If needed, the D0 pin is connected to any digital pin of the Arduino, and that pin must
be declared as an output pin in the program. The problem we face with the D0 pin is that we
can’t get the exact value of the output voltage. If the output crosses the threshold voltage, then
the control module can sense the change in the output. We need to operate the buzzer, even if
there is a considerable change in the output voltage in the rain board module. Due to these
reasons, the A0 pin is connected to the analog pin of Arduino, which makes monitoring the
change in output easy. The buzzer, which is used as a signal to the user, can be connected to any
digital pin of the Arduino. If the buzzer needs more than 5V, then try to connect a relay circuit
or a transistor and then connecting the load to it.

5. Simulation Result
The Arduino code for the rain sensor was written using the Arduino IDE. The complete code
for this project is given below
Here is some screenshot of our output results

6.References
Okafor, John Paul (2018) DESIGN AND IMPLEMENTATION OF A RAIN SENSOR AS
A PROTECTIVE SYSTEM 10.13140/RG.2.2.34760.47366/1.

You might also like