Cse 323 Project
Cse 323 Project
Submitted By
1. Saiful Islam Tanvir (2012530642)
2. Md. Taibur Rahaman (193142462)
3. Md. Rakibul Islam Reshad (2021723642)
CONTENTS
Introduction
Overview
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
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
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.