Sunteți pe pagina 1din 20

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.
This Automatic Smart Hanger can run automatically
by using microcomputer and microprocessor as the
main function to control component in this product.
In our design we included sensors such as light
sensor and water sensor. The function of water
sensor is to detect water drop from rainfall and to
prevent the clothes from wet. 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. In addition, this project uses stepper motor
to open and close the umbrella
PROBLEM STATEMENTS
1) Difficulty in drying clothes due to
unstable weather condition

2) During the working hours, 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.

4) When rainy seasons, 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
ORG 1000H

MOV DX,ABH ;Initialize and set up


MOV AL,82H
OUT DX,AL
MOV CX,1000 ;Set the counter 1000 so
;that the stepper motor will
;rotate 5 revolutions

START: MOV DX,A9H ;Port B address


IN AL,DX ;The content of the byte-wide input Port B
into AL register
CMP AL,01H
JE Light_Sensor
JMP START

Light_Sensor: MOV DX,A9H ;Port B address


IN AL,DX ;The content of the byte-wide input Port b
into AL register
CMP AL,03H
JE Buzzer_Led
JNE Rain_Sensor
Rain_Sensor: MOV DX,A9H
IN AL,DX
CMP AL,09H
JE Buzzer_Led
JMP START
RET

Buzzer_Led: MOV DX,A8H ;Port A address


MOV AL,60H
OUT DX,AL
MOV AX,0000H ;Buzzer and Led is turn
of
OUT DX,AL
CALL Stepper_Motor
RET
Stepper_Motor: MOV DX,AAH ;Port C address
MOV AL,0FH
OUT DX,AL
CALL DELAY2
NOP ;No operation
ROL AL,1 ;Rotate in anti-clockwise
LOOP Stepper_Motor ;direction

DELAY2: PUSHF
PUSH AX

MOV BX,05FFH ;Delay period was reduced


;so the stepper motor
LOOP: DEC BX ;rotates faster
JNZ LOOP ;because each step
consumed
POP AX ;relatively shorter time
POPF
RET
DISCUSSION

1)For the hardware design, we use 16K byte memory which is


EPROM (erasable programmable read-only memory).

2)The 16-bits data bus was divided into 2 separate sections


(banks), with 8 bits wide each which is low bank and high bank.

3)The bank selection is by separate bank decoder. As 8086


contains 20 address lines, EPROM contains 14 address lines
4)We use decoder to decode the address pins that do not connect
to the memory. In our design, we have decided to 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, I/O we also use 3 to 8 line decoder,74LS138.

6)The port address for port A is A8H, port B is A9H, port C is AAH
and the command register is ABH.
DISCUSSION

1) Port B was set as the input while port A and port C as output

2) As there is three input (switch, water sensor and light


sensor), firstly we check whether the switch is on (1) or of (0), if
on it will jump to the code that will check another input which is
the light sensor

3) If the switch is of, the program will run from initial again. If
the output is 1, it will jump to the code which make the buzzer
and LED on, then call the code to activate the stepper motor.

4)If output 0 is given, it will jump to code which will check the
output of the rain sensor
5)For the rain sensor, if output 1 is given, it will jump to the
code which make the buzzer and LED on, then call the code to
activate the stepper motor.
6) If output 0 is given, the program will run from initial again.
When the buzzer and LED is turn 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.
1) A rain sensor or rain switch is a switching device activated by
rainfall. The sensor works base on the resistance of the water

2) When the sensor is dry, the resistance between both contact is


very large (open circuit). When there is water on the surface of the
board (touching the expose copper), the water forms a resistive
connection across the two copper strip.
3) This change in resistance allows the circuit to diferential between
dry and wet, hence the sensor can detect rain.
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, as


Grove - 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. They are infrared mode, full spectrum and human visible
mode.
4) When running under the human visible mode, this sensor will give
you readings just close to your eye feelings.
CONCLUSION

As a conclusion, we are able to understand


on how this project works. We know how to
design the system in hardware part and
software part. The program is successfully
executed

S-ar putea să vă placă și