AUTOMATIC SMART

HANGER
GROUP 20

MUHAMMAD ANAS BIN SAHABUDEN
A148609
MOHAMAD FAIZUL BIN MOHD KASSIM
A149768
NURSYAZWANI BINTI ADNAN A150560
NURUL AZLINA BINTI SUERMAN A150994

INTRODUCTION

Malaysia is located near to the equator line. Therefore
Malaysia is prone to experience rain and damp state
over the years. These days, the climate is
unpredictable. It is difficult to dry the garments
outdoor due to unlikely weather condition such as
rain. For people who working, of course they worry
about their clothes that have been dried outside
because sometimes it is rain in the afternoon or the
whole day. Therefore to solve this problem, we come
out with our project named “Automatic Smart
Hanger”. Basically this Automatic Smart Hanger is not
just like ordinary clothes line in the market, we do
major innovation on our design to solve this problem.

Also light sensor is use to detect the light after raining and close the umbrella so that the clothes can dry naturally under the sun. this project uses stepper motor to open and close the umbrella . The function of water sensor is to detect water drop from rainfall and to prevent the clothes from wet.This Automatic Smart Hanger can run automatically by using microcomputer and microprocessor as the main function to control component in this product. In addition. In our design we included sensors such as light sensor and water sensor.

. 4) When rainy seasons. there is nobody home to take the clothes if it is raining in the afternoon 3) People often forgot to takes the clothes before night. PROBLEM STATEMENTS 1) Difficulty in drying clothes due to unstable weather condition 2) During the working hours. people willing to take no risk to hang their clothes outdoor.

OBJECTIVES 1) To ease people or house-wife to hung up their clothes during raining day 2) To establish something realistic so that this product can be commercialized in the market .

SCOP OF APPLICATION 1) Rain Sensor -Detect water drop from rainfall and to prevent the clothes from wet 2) Light Sensor -light sensor is use to detect the light after raining and close the umbrella so that the clothes can dry naturally under the sun 3) Stepper Motor .Use to open and close the umbrella when signal from rain or light sensor send to stepper motor .

HARDWARE DESIGN .

.

SOFTWARE DESIGN 1) FLOWCHART 2) CODING .

.

Initialize and set up MOV AL.82H OUT DX. ORG 1000H MOV DX.03H JE Buzzer_Led JNE Rain_Sensor .The content of the byte-wide input Port b into AL register CMP AL.1000 .01H JE Light_Sensor JMP START Light_Sensor: MOV DX.AL MOV CX.ABH .Port B address IN AL.Port B address IN AL.The content of the byte-wide input Port B into AL register CMP AL.Set the counter 1000 so .DX .DX .A9H .A9H .that the stepper motor will .rotate 5 revolutions START: MOV DX.

A9H IN AL.09H JE Buzzer_Led JMP START RET Buzzer_Led: MOV DX.Rain_Sensor: MOV DX.DX CMP AL.AL CALL Stepper_Motor RET .Buzzer and Led is turn of OUT DX.0000H .A8H .AL MOV AX.Port A address MOV AL.60H OUT DX.

Port C address MOV AL.Delay period was reduced .No operation ROL AL.relatively shorter time POPF RET .0FH OUT DX.rotates faster JNZ LOOP .AL CALL DELAY2 NOP .Rotate in anti-clockwise LOOP Stepper_Motor .Stepper_Motor: MOV DX.1 .AAH .so the stepper motor LOOP: DEC BX .direction DELAY2: PUSHF PUSH AX MOV BX.because each step consumed POP AX .05FFH .

with 8 bits wide each which is low bank and high bank. we use 16K byte memory which is EPROM (erasable programmable read-only memory). As 8086 contains 20 address lines. 3)The bank selection is by separate bank decoder. 2)The 16-bits data bus was divided into 2 separate sections (banks). DISCUSSION 1)For the hardware design. EPROM contains 14 address lines .

port C is AAH and the command register is ABH.4)We use decoder to decode the address pins that do not connect to the memory. we have decided to use 3 to 8 line decoder. In our design.74LS138. port B is A9H. 6)The port address for port A is A8H. . I/O we also use 3 to 8 line decoder. 74LS138. 5)The minimum address for our design is 50000 H while the maximum address is 57FFFH . For the input output.

the program will run from initial again. firstly we check whether the switch is on (1) or of (0). then call the code to activate the stepper motor. If the output is 1. if on it will jump to the code that will check another input which is the light sensor 3) If the switch is of. water sensor and light sensor). 4)If output 0 is given. it will jump to code which will check the output of the rain sensor . it will jump to the code which make the buzzer and LED on. DISCUSSION 1) Port B was set as the input while port A and port C as output 2) As there is three input (switch.

6) If output 0 is given. the program will run from initial again. then call the code to activate the stepper motor. if output 1 is given. When the buzzer and LED is turn on. .5)For the rain sensor. it will jump to the code which make the buzzer and LED on. the stepper motor will start to rotate 7) A stepper motor employs rotation of its shaft in terms of steps rather than continuous rotation as in case of AC or DC motors. The stepper motor rotates counter-clockwise.

the water forms a resistive connection across the two copper strip. The sensor works base on the resistance of the water 2) When the sensor is dry.1) A rain sensor or rain switch is a switching device activated by rainfall. hence the sensor can detect rain. 3) This change in resistance allows the circuit to diferential between dry and wet. When there is water on the surface of the board (touching the expose copper). . the resistance between both contact is very large (open circuit).

4) When running under the human visible mode. full spectrum and human visible mode. They are infrared mode. this sensor will give you readings just close to your eye feelings.Light Sensor. this digital module features a selectable light spectrum range due to its dual light sensitive diodes: infrared and full spectrum 3) You can switch between three detection modes to take your readings. . as  Grove .1) This module is based on the I2C light-to-digital converter TSL2561 to transform light intensity to a digital signal 2) Diferent from traditional analog light sensor.

we are able to understand on how this project works. The program is successfully executed . CONCLUSION As a conclusion. We know how to design the system in hardware part and software part.