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.

Servo1 : VCCMaker UNO: 5V
Servo1 : GNDMaker UNO: GND
Servo1 : A0Maker UNO: Pin 11
Servo2 : VCCMaker UNO: 5V
Servo2 : GNDMaker UNO: GND
Servo2 : A0Maker UNO: Pin 10
Rain Sensor : VCCMaker UNO: 5V
Rain Sensor : GNDMaker UNO: GND
Rain Sensor : A0Maker UNO: Pin A0
Rain Sensor : DOMaker 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 (4)

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.

Leave a comment