Documente Academic
Documente Profesional
Documente Cultură
HANGER
GROUP 20
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
DELAY2: PUSHF
PUSH AX
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
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