Rain Sensor Clothes Protection
by umbrawithin in Craft > Cardboard
866 Views, 2 Favorites, 0 Comments
Rain Sensor Clothes Protection
Many times, we hang clothes outside for drying, and suddenly it starts raining. If no one is there to remove or cover the clothes, they get wet again, which wastes time and effort. So I thought of creating a system that can automatically protect the clothes when it rains. This project not only solves a real-life problem but also helped me understand how sensors and automation work together.
Characteristics of the Project
- It is automatic — works without human intervention
- It is based on a real-life problem
- It uses simple and low-cost components
- It is easy to build and understand
- It combines sensor + Arduino + motor control
- It is a good example of home automation
- It is efficient and saves time and effort
- It can be improved further with advanced features
Supplies
Components / Requirements
- Arduino Uno
- Rain Sensor Module (with sensor plate)
- Servo Motor
- Jumper Wires
- Breadboard
- USB Cable (for programming Arduino)
- Cardboard / Base (for making model structure
Tools Required
- Glue gun or Fevicol
- Cutter / Scissors
- Tape
- Ruler (for measurement)
- Laptop / Computer (for coding and uploading program)
I Started Making a Simple Model
I basically made the main model that looks like a small clothes drying setup. First, I took a piece of cardboard and used it as the base. Then I made two vertical supports using cardboard and fixed them on both sides, like small walls of a house. After that, I placed a stick between these supports, which acts like the rod where clothes are hung. I also added small pieces of cloth or paper to represent clothes so the model looks more realistic. Then I made a small roof or cover using another piece of cardboard and attached it from one side so it can open and close easily. I placed this roof just above the clothes so it can cover them properly when needed. So overall, I created a simple house-like structure with a clothes area and a movable cover that can protect the clothes from rain.
Connecting Servo Motor With the House & Cover
- First, I took the servo motor and placed it near one side of the roof (cover)
- Then, I fixed the motor properly on the base or side wall using glue or tape so it doesn’t move
- After that, I attached the servo arm (plastic horn) to the edge of the roof using a stick or directly with glue
- I made sure that the arm is connected in such a way that when it rotates, it can push or pull the roof
- Then, I checked it by slightly rotating the servo by hand to see if the roof is opening and closing properly
- If the movement was not smooth, I adjusted the position of the motor or the stick until it worked correctly
I Carefully Connected All the Components (wiring Part)
1. Rain sensor connection
The rain sensor module usually has pins like VCC, GND, and DO or AO.
First, I connected the VCC pin of the rain sensor to the 5V pin of the Arduino. This gives power to the sensor.
Then, I connected the GND pin of the rain sensor to the GND pin of the Arduino. This completes the power circuit.
After that, I connected the DO pin of the rain sensor to digital pin 7 of the Arduino. This wire is used to send the rain signal to the Arduino. When water falls on the sensor plate, this pin tells the Arduino whether rain is detected or not.
If your module has AO, you can leave it for now, because for this simple project we only need the digital output.
2. Rain sensor plate connection
The rain sensor usually comes in two parts:
- one small control module
- one sensor plate
The sensor plate connects to the rain sensor module using the small wire that comes with it. So just plug the plate into the module properly. This plate is the part where water actually falls.
3. Servo motor connection
Now let’s connect the servo motor. A servo usually has three wires:
- Red = power
- Brown or Black = ground
- Orange or Yellow = signal
First, I connected the red wire of the servo to the 5V pin of the Arduino. This powers the motor.
Then, I connected the brown/black wire to the GND pin of the Arduino.
After that, I connected the orange/yellow signal wire to pin 9 of the Arduino. This is the control wire. Through this wire, Arduino tells the servo how much to rotate.
4. Common ground
One important thing is that both the rain sensor and the servo motor should share the same GND with Arduino. This means all the ground wires must be connected properly. Without common ground, the components may behave strangely or not work at all.
5. Final wiring check
Before turning it on, I checked everything once again:
- rain sensor VCC to 5V
- rain sensor GND to GND
- rain sensor DO to pin 7
- servo red to 5V
- servo brown/black to GND
- servo signal to pin 9
If all this is connected correctly, the circuit part is ready.
After That, I Uploaded the Code Into Arduino
After finishing the wiring, I connected the Arduino to my laptop and uploaded the code. The code is written in such a way that the Arduino keeps checking the rain sensor continuously. If it detects water, it sends a command to the servo motor to rotate, otherwise it keeps everything normal.
Downloads
Testing the Project
I tested whether my project is working properly or not. I took a little water and carefully dropped a few drops on the rain sensor to act like rain. As soon as the sensor got wet, it immediately detected the presence of water and sent a signal to the Arduino. This step helped me confirm that the sensor and the whole system are responding correctly when rain is detected.