Interfacing Arduino With Rain Sensor
by ∆IAMCT∆ in Circuits > Arduino
936 Views, 1 Favorites, 0 Comments
Interfacing Arduino With Rain Sensor
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
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
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
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
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!