How To Make a Automatic Rain Sensing Cloths Retracting System - Rain Saver
How to make an automatic clothes retraction system when rain is detected, here's the plan using a rain sensor, Arduino Uno, and a servo motor:
Components:
- Arduino Uno
- Rain sensor with module
- Servo motor (like SG90)
- Pulley or retracting mechanism (for retracting clothes)
- Power supply
- Jumper wires
- Clothesline or holder
Mechanism:
- The servo motor will control a pulley or retracting rod mechanism. When the rain sensor detects rain, the motor will rotate, pulling the clothesline in to protect the clothes.
Circuit Diagram:
Rain Sensor:
- Connect VCC of the rain sensor module to the 5V pin of Arduino.
- Connect GND of the rain sensor module to GND of Arduino.
- Connect the OUT pin of the rain sensor module to any digital pin, e.g., D2.
Servo Motor:
- Connect the red wire (VCC) of the servo to the 5V pin of Arduino.
- Connect the brown wire (GND) of the servo to GND.
- Connect the orange signal wire to a PWM pin on Arduino, e.g., D9.
Video Link: - Click Here For Video
How To Make a Automatic Rain Sensing Cloths Retracting System - Rain Saver simple Circuit: -
Arduino IDE Program
-----------------------------------------------------------------------------------------------------------------------------
Changes:
- A new function
moveServoSlowly(int targetPosition)
was added. It gradually moves the servo to the target position (either 90 degrees or 0 degrees). - The servo is moved in small steps, with a delay of 20 milliseconds between each step. You can adjust this delay to make the servo move slower or faster.
- The current position of the servo is tracked using the
currentPosition
variable to ensure smooth transitions between positions.
This should make the servo operate more slowly and smoothly during the retraction and extension of the clothes.
moveServoSlowly(int targetPosition)
was added. It gradually moves the servo to the target position (either 90 degrees or 0 degrees).currentPosition
variable to ensure smooth transitions between positions.Mechanism Drawing (Description):
- The clothesline or hanger should be attached to a rod or hook controlled by the servo motor.
- A pulley system could be used where the servo motor pulls a rope or wire loop that retracts the clothes.
- Pulley Example:
- The pulley wheel will turn, pulling the clothesline in when rain is detected.
- When rain stops, the pulley system allows the line to extend back.
Circuit Simulation:
You can not use Tinkercad to simulate this project as there is no rain sensor available in tinker cad yet. Let me know if you need more details or help setting up.
Share, Support, and Subscribe!!! 1. PRO KAM EXPLAINED 2. Knowledge KAM 3. PRO KAM Follow us on 1. Facebook 2. Instagram 3. Pinterest 4. Blogspot 5 Twitter If you have any other ideas to make me design, you can describe them in the comment section and if I can, I will make a designing video on it. So I am waiting #prokam #wtc #Arduino #ideas #projects #diy #how #to #ArduinoProjects #UltrasonicSensor #HeightMeasurement #TechDIY #WeTechCreators
0 Comments