Bukit Mertajam, Penang

Rain Detector

Do you need a roof that suddenly open during rain? or do you need to detect rain fall and keep your cloth in? If it’s yes, then you should see how this rain sensor module works. The sensor plate has 2 PCB tracks which routed parallel around it. These tracks are not connected, but when water/rain drop to the surface of plate and changes the resistance between the tracks because water/rain is conductive, this further changes the resistance between tracks and lower down the resistance. More water/rain touches the plate and the resistance become lower. 

 

Hardware Preparation

This tutorial use :

  1. Maker UNO
  2. Rain Sensor Module
  3. TowerPro SG90 Micro Servo x2
  4. USB Micro B Cable

You can make the hardware connection based on the diagram and table below.

Connection
Servo1 : VCC Maker UNO: 5V
Servo1 : GND Maker UNO: GND
Servo1 : A0 Maker UNO: Pin 11
Servo2 : VCC Maker UNO: 5V
Servo2 : GND Maker UNO: GND
Servo2 : A0 Maker UNO: Pin 10
Rain Sensor : VCC Maker UNO: 5V
Rain Sensor : GND Maker UNO: GND
Rain Sensor : A0 Maker UNO: Pin A0
Rain Sensor : DO Maker UNO: NC
Figure 1 : Circuit diagram for Rain Detector

Sample Code

This is the sample code used for this tutorial. Try it!

Thank you

Thank you for reading this tutorial and we hope it helps your project development. If you have any technical inquiry, please post at Cytron Technical Forum.

Comments (11)

Is it possible to replace servo with stepper?
if yes,
how exactly ?

Please give the code for interfacing 4 servo motors with rain drop module using arduino uno.

Hi, yes it is possible, you need to know how stepper motor works first. For further technical questions, please post at Cytron technical forum. Thanks.

Hi, sorry, for now we don’t have that code. Thanks.

Michael Primavera

Hello,

Is it possible for the motor to make a full rotation (cover cars) when the rain touches the raindrop sensor but does NOT go in reverse direction once the sensor is dry? Also, does this program work with raspberry pi?

Can change the maker arduino to arduino uno ? It it possible to use the regular motor for the roof ?

Kindly give me the code for this project as soon as possible … thanks

Hi, yes you can use Arduino Uno. We use servo motor so that it can move to certain position. Thanks.

Hi, you can find the code in the tutorial. Thanks.

hello. i cannot find the code. it is not appeared above. can you help?

Leave a comment