Interfacing Arduino With Rain Sensor

by ∆IAMCT∆ in Circuits > Arduino

936 Views, 1 Favorites, 0 Comments

Interfacing Arduino With Rain Sensor

How to make a Arduino Rain detector and automatic sweeping mechanism... IAMCT

Hi there!

In this tutorial I am gonna show how can you interface rain sensor with Arduino Uno or any. Afterward, I will add servo in the same setup and servo will act as sweeper. Whenever it receive data from from rain sensor, it will get active and start functioning

MATERIAL REQUIRED

Screenshot (66).png
Screenshot (67).png
Screenshot (68).png
Screenshot (69).png
Screenshot (70).png

As always the first step is the basic requirement. So here are the following material requirement

1.Arduino nano

2.Some jumper wire

3.A breadboard

4.Rain sensor

5.Batteries

6.1602 LCD with i2c module

WIRES AND CONNECTIONS

RAIN SENSOR.jpg
Screenshot (71).png
Screenshot (72).png
Screenshot (73).png
Screenshot (74).png
Screenshot (76).png

First of all we need to setup a basic hardware including all the wiring and connection. See the attached pictures for careful wiring.

ARDUINO====RAIN SENSOR

GND========GND

5V==========VCC

A0==========A0


//////////////////////////////////////////

ARDUINO====LCD 1602

GND========GND

5V==========VCC

A5==========SCL

A4==========SDA

Follow the above sequence for wiring.


SKETCH AND LIBRARY

Screenshot (77).png
Screenshot (78).png
Screenshot (79).png
Screenshot (83).png
Screenshot (84).png

After completing all the setup, Now its time to upload the code.

Don't forget to include the required libraries.

For better understanding visit my Youtube channel:

OVERVIEW

Screenshot (84).png
Screenshot (83).png
Screenshot (81).png
Screenshot (78).png

See the above images for basic mind mapping.

Her you can see that the LCD is changing its display according to the data received or amount of raining.

Here you will find sketch and libraries: check description box

NOW YOUR PROJECT IS COMPLETED.
ENJOY!

HAPPY CREATION!