This document describes Mumina's design for an automatic window controller. The controller uses an Arduino Uno, moisture sensor, and servo motor to open and close windows automatically based on a timed schedule and detection of rain. It aims to prevent water damage to homes and offices by closing windows when rain is sensed. The design was tested and performed as expected, opening windows every 12 hours and closing them when the sensor detected rain. It provides an effective solution to automatically control windows without needing someone present.
2. IntroductionIntroduction
•In our daily life, we interact with windows to get some fresh
air, but most of us are not able to adjust our windows when we
are not around the windows.
•And when windows are open, they could allow rain into our
houses and offices.
Mumina's Design
3. BackgroundBackground
• Early this year my brother had travelled out of the country
for a month, when he came back he found rain water had
entered his house and most of his valuables had started
decaying.
• This couldn’t have happened if there was a way to close his
windows automatically when it rained, hence the need for
automatic window controller.
Mumina's Design
4. Problem statementProblem statement
• Our homes and offices are fitted with windows, which if not
closed at the right time may allow rain causing damage to
property. Examples of damage caused by rain are:
a) It destroys valuable electronics which are not water proof.
b) It causes decay of valuable furniture
Mumina's Design
Figure showing Property destroyed by rain water
5. ObjectivesObjectives
• Imagine waking up every day without worrying about damage
of property by rain because your windows were not closed in
time. The project aims at designing an efficient and effective
Automatic window controller which:
1) Opens and closes windows after an interval of 12 hrs.
2) Closes window in case of rain to prevent damage of
property.
3) Works in a wide range of temperatures
4) Effective and efficient product at a minimal cost.
Mumina's Design
6. MethodologyMethodology
• This selected design had different parts which worked
together to meet the objectives. These parts are: power
supply,LM393 moisture sensor, arduino Uno ,software and
micro servo motor MG90S.
• The selected design will be powered by a 9V, 1000mA
power supply which will be connected to arduino Uno
board. Other components of the selected design will draw
their power from 3.3V and 5V power pins of the arduino.
• The arduino Uno will be using software created by arduino
IDE to signal micro servo MG90S to go different positions,
which result to opening and closing of window.
• The LM393 moisture sensor will be connected to arduino
Uno. It will be continuously sending an analog values( 0 –
1023) to arduino Uno depending on environment . The
arduino will use the analog value to determine the signal to
send to micro servo motor.
Mumina's Design
7. Complete circuit diagramComplete circuit diagram
Mumina's Design
• In case of rain the sensor will send a signal to arduino Uno, the arduino will
respond by sending a signal to servo motor causing the window to close.
8. Circuit operationCircuit operation
• When the automatic window controller is switched on the
microcontroller sends signal to the servo motor to go to
180 degree position, thereby opening the window. The
servo stays at the 180 degree position for 12 hours.
• After the 12 hours the microcontroller sends signal to the
servo motor to go to 0 degrees position, thereby closing
the window. The microcontroller sends the signals causing
the movement of servo at an interval of 12 hours.
• In case of rain while the micro servo is at 180 degree
position, the sensor value decreases to below 500. In
response, the microcontroller sends signal to micro servo
to go to 0 degree position, thereby closing the window.
And when the rain stops, the sensor value increases to
above 1000. In response microcontroller returns to normal
operation
Mumina's Design
9. Test resultsTest results
Mumina's Design
No. Test point Expected Measured
1 Input voltage to arduino 9V 9V
2 Arduino's 3.3V pin voltage 3.3V 3.2V
3 Arduino's 5V pin voltage 5V 4.98V
4 Sensor output value 0 - 1023 0 -1023
5 Servo motor Positions 0 - 180 degrees
0 - 180
degrees
10. ConclusionConclusion
• Over the given period the main objective of the project has
being achieved, which was to create an automatic window
controller that closes the window when it rains and also is
responsive to time control.
• The chosen design, after it was implemented, performed as
expected after testing its control
• The automatic window controller can be used in office
windows, home windows or even vehicle windows to
prevent damage to valuable items when it rains.
Mumina's Design
11. RecommendationRecommendation
• For better performance, a more powerful servomotor is
recommended. This will also ensure smooth operation for
large windows.
• It is also recommended to check the extent to which your
window can go to prevent breakage of windows. Example if it
is 60 degrees ensure your open angle is 60 and not 180.
Mumina's Design