How To Make Rain Alarm Using Arduino Uno & Rain Drop Sensor | Rain Detector Using Arduino Uno By Technoesolution | #arduinoprojects

January 30, 2022


Description

Hello, In this article I'll show you how to make a Rain alarm using Arduino and Buzzer. In this project, LCD Displays are used to indicate the status of the Rain also Led's are used to Indicate the rain Status. As raindrops touch Raindrop PCB the base of the transistor gets a trigger and some amount of output goes to the Arduino Analog pin which is read the output of the sensor. As the output value of the sensor goes above 100 the LCD display shows the status of the project and RED Led gets turned ON as the sensor value goes below 100 it indicates not raining and Red LED get turned OFF and the Green LED gets turn ON. We are going to use Arduino & a custom-designed Raindrop sensor plate with the help of Copper clad PCB Board. By using market draw some parallel lines & then etch PCB using ferrite chloride & your DIY Raindrop sensor gets completed. You can also use the Raindrop sensor module to make this project. I have already made a video tutorial on this project you can refer to my youtube channel video for better understanding.

Watch out the following video If reading bores you.

If you got this article helpful then subscribe to our blog as well as our Youtube Channel for more interesting projects.

Material Required:- 

[ I provide the best buy link for the components, The following Links are Affiliated links If you buy from them, we will get some bonus from it.]

Sr.No

Product Name

Quantity

Best Buy Link

1

Arduino Uno

1

https://amzn.to/3nCSn4j

2

Transistor (BC547)

1

https://amzn.to/3GM4inU

3

LED (Red & Green)

1

https://amzn.to/356mcDZ

4

Buzzer

1

https://amzn.to/3FLaFq7

5

Breadboard + Jumper Wires

1

https://amzn.to/3fIWUO5

6

Potentiometer (10K)

1

https://amzn.to/3fIUuis

7

Raindrop Sensor

1

https://amzn.to/33v1mOe

Circuit Diagram:-

Refer above circuit diagram to make proper connections on the Breadboard.

Arduino Code:- 

/*
   Hello guys welcome back to "Techno-E-Solution"
   Project Name:- How To Make Rain Alarm Using Arduino Uno & Rain Drop Sensor
   Project Video:- https://youtu.be/-rdIjbsDtNg
*/
#include <Wire.h> 
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,16,2);
int RainSensor = 0;
int buzzer = 10;
int RedLED = 9;
int GreenLED = 8;
void setup() 
{
  
//lcd.init();
lcd.backlight();
lcd.clear();
lcd.setCursor(0,0);
lcd.print("    WEL-COME    ");
lcd.setCursor (0,1);
lcd.print ("TECHNO-ESOLUTION");
delay (3000);
lcd.clear();
lcd.setCursor (0,0);
lcd.print ("RAIN DETECTOR");
lcd.setCursor (0,1);
lcd.print ("BY ARDUINO & LCD");
delay (3000);
Serial.begin(9600);
pinMode(buzzer,OUTPUT);
pinMode(RedLED,OUTPUT);
pinMode (GreenLED,OUTPUT);
}
 
void loop(){
int SensorValue = analogRead(RainSensor);
if(SensorValue >=100) // Adjust value as per your requirements
{
   
digitalWrite(buzzer,HIGH);
digitalWrite(RedLED,HIGH);
digitalWrite(GreenLED,LOW);
lcd.clear ();
lcd.setCursor (0,0);
lcd.print ("---RAIN ALERT---");
lcd.setCursor (0,1);
lcd.print ("----RAINING----");
Serial.println("RAINING");
delay(1000); 
}
 
else
{ 
digitalWrite(buzzer,LOW);
digitalWrite(RedLED,LOW);
digitalWrite(GreenLED,HIGH);
lcd.setCursor (0,0);
lcd.print ("-----STATUS-----");
lcd.setCursor (0,1);
lcd.print ("--NOT RAINING--*");
Serial.println("NOT RAINING"); 
delay(1000);
}
 }


 

You can Buy me coffee If you got this article helpful.