Group 9

SMART CAR
 

GROUP LEADER :Mohd Nadrin Bin Pairazi
PROJECT MANAGER : Mohd Nor Azam Bin Marlan
MEMBERS :
1) Muhammad Hafizrul Bin Badrul
2) Ahmad Syafiq Bin Muhamed Amir
3) Mohammad Amiryl Bin Sabaruddin
4) Mohamad Zulhilmi Bin Ahmad Hisyam
5) Mohammad Shamsul Bin Md Salleh









INTRODUCTION



Used 2 motors operate with  3V.
Used 9V batteries
Variables resistors  is use to control the motor
  speed.
A microcontroller is used to program the
  direction  of the vehicles . 
Switch  is us as the sensor .

OPERATION

 
-When the switch is ‘ON’ ,the vehicles will move
  forward .
-When it hit a obstacle switch at the front will ‘ON’
   the sensor, the vehicle  will move back ward for a
   second. 
-After that, the vehicle will stop for a second and
  will turn the tyre to the right and then the 
 -vehicle will move forward.

OPERATION CURCUIT

-9V input go to switch ON/OFF to operate
   Circuit.
-When switch ‘ON’ it will go to microcontroller.
-Microcontroller act as the controller to move
  the motor operate and will move the tyre
  forward ,reverse ,right ang left.
-When hit something the switch will invert the
   current in the motor.
-It will stop for a while ,turn and move
 
FLOWCHART
 
 

PROGRAM

 
ORG 0000H
    SETB P2.0
MAIN    : JB P2.0,BACKWARD
    MOV A,#00110101B    
FORWARD : MOV P1,A 
    JNB P2.0,FORWARD
    JMP MAIN
   
    MOV A,#00101110B
BACKWARD: MOV P1,A
    MOV R2,#50
    CALL DELAY 
   
STOP    : MOV A,#00011011B
    MOV P1,A
    MOV R2,#20
    CALL DELAY
   
LEFT  : MOV A,#00000101B
    MOV P1,A
    MOV R2,#50
    CALL DELAY
STOP1   : MOV A,#00011011B
    MOV P1,A
    MOV R2,#20
    CALL DELAY
    JMP  FORWARD   
   
DELAY   : MOV R0,#00
    MOV R1,#200
   
LOOP    : DJNZ R0,LOOP
    DJNZ R2,LOOP
    DJNZ R2,DELAY
    RET
    END

CIRCUIT