Presentation is loading. Please wait.

Presentation is loading. Please wait.

Control & Programming The Sports Coupe Mimic Controlling the Car Alarm.

Similar presentations


Presentation on theme: "Control & Programming The Sports Coupe Mimic Controlling the Car Alarm."— Presentation transcript:

1 Control & Programming The Sports Coupe Mimic Controlling the Car Alarm

2 The Alarm Now you need to program the car alarm.Now you need to program the car alarm. When the alarm is turned on (Input 3) the hazard lights will flash if either of the doors is open.When the alarm is turned on (Input 3) the hazard lights will flash if either of the doors is open. The hazards lights will continue to flash until both doors are closed.The hazards lights will continue to flash until both doors are closed. Now you need to program the car alarm.Now you need to program the car alarm. When the alarm is turned on (Input 3) the hazard lights will flash if either of the doors is open.When the alarm is turned on (Input 3) the hazard lights will flash if either of the doors is open. The hazards lights will continue to flash until both doors are closed.The hazards lights will continue to flash until both doors are closed.

3 The Inputs and Outputs to Use Left Door (1) Right Door (2) Alarm On (3) Hazard Lights (2)

4 Designing the Program You will need a main program and a sub routine to make the hazard lights flashYou will need a main program and a sub routine to make the hazard lights flash You will need 3 decision boxes for Input 3, 1 and 2You will need 3 decision boxes for Input 3, 1 and 2 You will need a main program and a sub routine to make the hazard lights flashYou will need a main program and a sub routine to make the hazard lights flash You will need 3 decision boxes for Input 3, 1 and 2You will need 3 decision boxes for Input 3, 1 and 2

5 The Main Program Check Input 3Check Input 3 If Input 3 is On then check Input 1 & 2If Input 3 is On then check Input 1 & 2 If Inputs 1 & 2 are on then flash the hazards (run the sub routine)If Inputs 1 & 2 are on then flash the hazards (run the sub routine) If Input 3 if Off then turn the hazards offIf Input 3 if Off then turn the hazards off LoopLoop Check Input 3Check Input 3 If Input 3 is On then check Input 1 & 2If Input 3 is On then check Input 1 & 2 If Inputs 1 & 2 are on then flash the hazards (run the sub routine)If Inputs 1 & 2 are on then flash the hazards (run the sub routine) If Input 3 if Off then turn the hazards offIf Input 3 if Off then turn the hazards off LoopLoop


Download ppt "Control & Programming The Sports Coupe Mimic Controlling the Car Alarm."

Similar presentations


Ads by Google