Question: N4 -Sp17 inal The case study below consists of controlling a parking usic we have in talls in) and the e (25 points) ng has

N4 -Sp17 inal The case study below consists of controlling a parking usic we have in talls in) and the e (25 points) ng has I entry and I exit gates; at the ent ling a parking using PC16F84 to a DC motor and 2 LAP in) and the end sB In) of a car to allow entry. exit gate the front (LAF Out) and the end and should be controlled The RFID board is producing a 1 if it is programm n the exit gate, we installed ONLY 2 Laser sensors to detect LsB Out) of a car. The parking capacity is (CarN-256) cars Laser sensors to detect the front ccording to the RFID of the users and Laser sensors 0 for the wrwrking according ed for right users Calready programmed) and af system is working according to the following Detection Start If parking is full No res LED Full ON LEDE- LED FulI OfT (LEDE 0) Ir both (LsB In) and (LsF In) detect cars in Entry gate Else Switch Action SwD or SwU Open Closed Call Center (CC' TRFID is correct M1 M2 Motor direction ElsIf LsF_ In) detects a car on its front in Entry stop Up 0 Update number of cars (CarN CarN-1) TurnMotor Up till Switch Up (SWU) is l Down Not Used 0 and then Motor Off Light Green On (LEDG-I') Call delay 2 second , If back car is detected (LsB_In) Light Green Off (LEDG-'0') Turn Motor Down till Switch (SwD) is 1 and then Motor Off Else Alarm On (Alarm '1') blinks Green Light until Key is inserted and then goto main Else Call Center (CC-'1') and goto Start goto Start (infinite Loop) Interrupt If Rising edge of LsF Out Indicate that car is leaving the parking (use Flag) If LsB Out is triggered Update number of cars (CarN CarN+1) should not exceed 255) Nates: N4 -Sp17 inal The case study below consists of controlling a parking usic we have in talls in) and the e (25 points) ng has I entry and I exit gates; at the ent ling a parking using PC16F84 to a DC motor and 2 LAP in) and the end sB In) of a car to allow entry. exit gate the front (LAF Out) and the end and should be controlled The RFID board is producing a 1 if it is programm n the exit gate, we installed ONLY 2 Laser sensors to detect LsB Out) of a car. The parking capacity is (CarN-256) cars Laser sensors to detect the front ccording to the RFID of the users and Laser sensors 0 for the wrwrking according ed for right users Calready programmed) and af system is working according to the following Detection Start If parking is full No res LED Full ON LEDE- LED FulI OfT (LEDE 0) Ir both (LsB In) and (LsF In) detect cars in Entry gate Else Switch Action SwD or SwU Open Closed Call Center (CC' TRFID is correct M1 M2 Motor direction ElsIf LsF_ In) detects a car on its front in Entry stop Up 0 Update number of cars (CarN CarN-1) TurnMotor Up till Switch Up (SWU) is l Down Not Used 0 and then Motor Off Light Green On (LEDG-I') Call delay 2 second , If back car is detected (LsB_In) Light Green Off (LEDG-'0') Turn Motor Down till Switch (SwD) is 1 and then Motor Off Else Alarm On (Alarm '1') blinks Green Light until Key is inserted and then goto main Else Call Center (CC-'1') and goto Start goto Start (infinite Loop) Interrupt If Rising edge of LsF Out Indicate that car is leaving the parking (use Flag) If LsB Out is triggered Update number of cars (CarN CarN+1) should not exceed 255) Nates
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
