Simulation of Arduino-based Rain Detector in Proteus | Rain Sensor | Arduino
Discover the innovative Arduino-based rain detector, a simple yet effective device that senses moisture and alerts users, enhancing home automation and gardening efficiency. Explore our Arduino rain detector, designed to identify moisture presence. This device aids in home automation, automatic watering, and effective data collection for optimal use. Learn about our Arduino rain detector, a reliable tool for moisture detection. It integrates seamlessly into home systems, providing alerts and improving water management strategies.
A rain detector based on Arduino is a simple electronic device designed to detect the presence of rain or moisture in the environment. It typically consists of a series of sensors, usually in the form of conductive plates or wires, connected to an Arduino microcontroller board. When raindrops or moisture make contact with these sensors, they create a conductive path, allowing the Arduino to detect the change in resistance and infer the presence of rain.
Here is a brief description of the components and how they work together:
Arduino Board: The heart of the rain meter, the Arduino board is responsible for processing the input from the sensor and performing appropriate operation according to the situation. Humidity level.
Rain Sensors: These are the components required to detect rainfall. These can be simple conductive plates or wires arranged in such a way that when rain falls on them, they form a path and cause change. Arduino then measures the change in resistance.
Indicator or Alarm: When the Arduino detects rain based on the sensor's reading, it can give an indicator or alarm notifying the user of the presence of rain. This could be an LED light, a ringtone, or even a notification sent to your smartphone or computer via an extension such as a Wi-Fi or Bluetooth module.
Power: The whole body needs power to function. This can be a battery pack or USB connected to a power outlet or computer.
Using Arduino as a Rain Detector:
Automatic Watering System: You can prevent water deficiency in your plants by integrating the rain sensor into your water system. You can save water and save costs by spraying during the rainy season..
Home Automation: Rain detectors can be used in home automation systems to close windows, retract awnings, or adjust outdoor lighting when it rains.
Alarm Systems: Rain devices can be used as alarms or warnings, allowing users to take necessary actions such as covering outdoor furniture, carrying clothing, or preparing for floods.
Data collection and analysis: By recording rainfall events over time, data collected from rain meters can be analyzed to understand rainwater patterns, which can be used for agriculture, climate monitoring or environmental research.
Overall, the Arduino-based rain detector provides a cost-effective and customizable way to detect rain and put it into a variety of applications for technology, convenience and resource savings.
CLICK HERE -->> Download Arduino Code and Proteus Simulation File
CLICK HERE -->> Download Rain Sensor Library for Proteus
Code:
Arduino Rain Detector
// include the library code:
#include
//LiquidCrystal lcd(rs, en, d4, d5, d6, d7);
LiquidCrystal lcd(13, 12, 11, 10, 9, 8);
//Define the Pin Numbers
const int SENSOR_PIN = 2;
const int SPEAKER_PIN = 5;
const int RLED_PIN = 7;
const int GLED_PIN = 6;
void setup ()
{
pinMode (SENSOR_PIN, INPUT); // Set the Sensor pin as INPUT
pinMode(SPEAKER_PIN, OUTPUT); // Set the Red LED pin as OUTPUT
pinMode(RLED_PIN, OUTPUT); // Set the Red LED pin as OUTPUT
pinMode(GLED_PIN, OUTPUT); // Set the Green LED pin as OUTPUT
lcd.begin(20, 4); // set up the LCD's number of columns and rows:
lcd.setCursor(0,0); // set the cursor position:
lcd.print("Arduino Based");
lcd.setCursor(0,1);
lcd.print(" RAIN DETECTOR ");
}
void loop ()
{
int Sensor_Val = digitalRead(SENSOR_PIN); //get reading from Sensor
if (Sensor_Val == HIGH) //If Sensor Detected the Rain
{
digitalWrite(RLED_PIN, HIGH);
digitalWrite(SPEAKER_PIN, HIGH);
digitalWrite(GLED_PIN, LOW);
lcd.setCursor(0, 3);
lcd.print(" Rain Detected ");
delay(100);
lcd.setCursor(0, 3);
lcd.print(" Rain Detected. ");
delay(100);
lcd.setCursor(0, 3);
lcd.print(" Rain Detected.. ");
delay(100);
lcd.setCursor(0, 3);
lcd.print(" Rain Detected... ");
delay(100);
}
else
{
lcd.setCursor(0, 3);
lcd.print(" NO RAIN ");
digitalWrite(RLED_PIN, LOW);
digitalWrite(SPEAKER_PIN, LOW);
digitalWrite(GLED_PIN, HIGH);
}
}
What's Your Reaction?