Bonus Question (5pts). Suppose I have an electrically operated garage door and I
ID: 2249571 • Letter: B
Question
Bonus Question (5pts). Suppose I have an electrically operated garage door and I want to design a system that will automatically open that door when my car is in the driveway but will not open the door if there is a car alrcady inside the garage. The picture below illustrates the operation. ressure System The pressure sensors are available to you and so is the connection that provides signal to the door opening mechanism. Write in VHDL the entity for this system If you think this design can be further improved, explain how you would do so (You can provide pictures and schematics).Explanation / Answer
-- Let sensor_in represents pressure sensor inside the garage
-- where as sensor_out represents pressure sensor outside the garage.
library ieee;
use ieee.std_logic_1164.all
entity garage is
port (sensor_in, sensor_out : in std_logic;
gate_open : out std_logic
);
end garage;
architecture arch of garage is
begin
gate_open <= sensor_out and (not sensor_in);
end arch;
Improvement: Instead of using dual pressure sensor comprising of strain guage, bridge network, signal conditioning we can use IR/Ultra sonic sensor at the proximity of garage entrance. IR/Ultra sonic sensor can flag the presence of vehicle inside or reset the flag to allow a vehicle inside the garage.