Rain Sensor Circuit
Rain Sensor Circuit
GJUS&T, Hisar
Department of Electrical and Electronics Engineering
March, 2024
RAIN SENSOR CIRCUIT
Aim: To design a rain sensor circuit using Arduino nano.
Components Required:
1. Arduino Nano
2. Rain Sensor
3. LED
4. Buzzer
5. PCB
Introduction:
Raindrop Sensor is a tool used for sensing rain. It consists of two modules, a rain
board that detects the rain and a control module, which compares the analog value,
and converts it to a digital value. The raindrop sensors can be used in the automobile
sector to control the windshield wipers automatically, in the agriculture sector to
sense rain and it is also used in home automation systems.
Working voltage 5V
Output format: Digital switching output (0 and 1), and analog voltage
output AO
Potentiometer adjust the sensitivity
Uses a wide voltage LM393 comparator
Comparator output signal clean waveform is good, driving ability, over
15mA
Anti-oxidation, anti-conductivity, with long use time
With bolt holes for easy installation
INTERNAL CIRCUIT DIAGRAM OF THE RAIN
SENSOR USED
Theory:
Sensor Sensing Mechanism:
The rain sensor module consists of two conductive pads. When water comes in
contact with these pads, it creates a conductive path between them.
This change in conductivity is detected by the sensor.
Arduino Integration:
The Arduino Nano reads the analog value from the rain sensor module using the
analogRead() function. The analog value represents the conductivity level
between the two pads of the rain sensor, which is directly proportional to the
amount of water detected.
Circuit Diagram:
Precautions:
1)Ensure a stable power supply to the Arduino Uno.
2)Waterproof the sensor and any exposed electronics to prevent damage from
moisture.
3)Keep the Arduino and other electronic components isolated from direct
contact with water to prevent short circuits.
4)Proper grounding is essential to prevent electrical interference and ensure
accurate readings from the rain sensor.
5)Write robust code with error handling to handle unexpected conditions, such
as sensor malfunction or communication errors.
Applications:
1)Use the rain sensor to detect when it's raining and automatically turn off
irrigation systems, conserving water and preventing overwatering.
2)Incorporate the rain sensor into a weather monitoring station to track rainfall
levels over time, providing valuable data for meteorological research or local
weather forecasting.
3) Utilize the rain sensor to trigger actions such as closing windows, retracting
awnings, or adjusting outdoor lighting when rain is detected, enhancing
convenience and energy efficiency.
4)Create an automated car wiper system that adjusts wiper speed based on
rainfall intensity detected by the rain sensor, improving visibility and driving
safety during inclement weather.
5) Use the rain sensor in conjunction with other environmental sensors to
regulate the climate inside a greenhouse, adjusting ventilation and humidity
levels based on rainfall conditions.