Question

In: Computer Science

Create a high-level design for a home alarm system. Assume that there are 4 windows and...


Create a high-level design for a home alarm system. Assume that there are 4 windows and 2 doors. The windows and doors have light sensors, so if any object crosses the light path, an appropriate event will be registered. Also, each window and door has latches with sensors that detect if the latch has been turned.

Your solution will consist of the following parts

1.       Use a variable “Armed” to allow a user to arm the alarm system. So if a user is at home, the alarm is disarmed.

2.       Create appropriate variables that will capture the state of the windows and doors. (2 points)

3.       Create a flowchart that will process the sensed input. (2 points)

4.       Design the right output. (2 points)

5.       Create a mechanism to reset the alarm. (1 point)

6.       Write pseudo-code (e.g. code that looks like C), using any functions you may create. 

Solutions

Expert Solution

1. We will use Armed variable as 1 or 0, 1- Activated & 0- Deactivated.

2. Following are the variables we will be using to represent the status of latches and the Light sensors if particular doors and windows.

All the variables used are of type enumeration that is they can only take specified values 1 or 0.

Entity Latch Variable Light Sensor
Door1 D_Latch1 D_Ls1
Door2 D_Latch2 D_Ls2
Window1 W_Latch1 W_Ls1
Window2 W_Latch2 W_Ls2
Window3 W_Latch3 W_Ls3
Window4 W_Latch4 W_Ls4

The Following is the flowchart

In the output we will print the name of the window or the door where an unappropriate activity is happened, that is the light sensor is being cut.

The Pseudocode can be given as:

  1. Start
  2. Set all the latches and Light Sensors.
  3. If(D_Ls1,D_Ls2 OR W_Ls1 OR W_Ls2 OR W_Ls3 OR W_Ls4 ==1)
  4. {
  5. if(Armed==1)
  6. {
  7. SET Alarm=1;
  8. print("Enter 0 to turn off the alarm");
  9. if(input==0)
  10. {
  11. SET Alarm=0;
  12. }
  13. }
  14. }
  15. if (D_Ls1==1)
  16. {Print("Unappropriate activity at door1");}
  17. if (D_Ls2==1)
  18. {Print("Unappropriate activity at door2");}
  19. if (W_Ls1==1)
  20. {Print("Unappropriate activity at Window1");}
  21. if (W_Ls2==1)
  22. {Print("Unappropriate activity at Window2");}
  23. if (W_Ls3==1)
  24. {Print("Unappropriate activity at Window3");}
  25. if (W_Ls4==1)
  26. {Print("Unappropriate activity at Window4");}
  27. END

Related Solutions

You have been hired by a home security company to design and implement a home alarm...
You have been hired by a home security company to design and implement a home alarm system. The logic of the system is as follows: once the alarm system has been armed, it is to sound if the front door is opened, the back door is opened or either of two windows is opened (you can assume there are only two windows). Design the necessary circuit to implement the situation described above. Your circuit should have five inputs (A =...
design a circuit of an alarm system that has buzzer that rings for 2 minutes and...
design a circuit of an alarm system that has buzzer that rings for 2 minutes and LED'S that flicker for 2minutes.
Design and implement a Fire Alarm IOT System, using the framework of the Raspberry PI device,...
Design and implement a Fire Alarm IOT System, using the framework of the Raspberry PI device, temperature, C02 and CO sensors. •Define the process specification of the system. The system should collect and analyze the sensor data and email alerts when a fire is detected •Define the domain model for this IOT device •Define the Service specifications
Problem 4-23 (Algorithmic) EZ-Windows, Inc., manufactures replacement windows for the home remodeling business. In January, the...
Problem 4-23 (Algorithmic) EZ-Windows, Inc., manufactures replacement windows for the home remodeling business. In January, the company produced 15,000 windows and ended the month with 9,500 windows in inventory. EZ-Windows’ management team would like to develop a production schedule for the next three months. A smooth production schedule is obviously desirable because it maintains the current workforce and provides a similar month-to-month operation. However, given the sales forecasts, the production capacities, and the storage capabilities as shown, the management team...
5.         I’ve spent $10,000 to install high efficiency windows in my home. They are expected to...
5.         I’ve spent $10,000 to install high efficiency windows in my home. They are expected to last 20 years.   I expect my annual heating bill to decrease by $1,000. a.         What is the “net present value of my investment? Use a discount rate that is appropriate for YOU as an individual?   b.         If city hall had made this investment, what is the “payback” time? Use a discount rate appropriate for a public project. c.         Calculate the “Internal Rate of Return”...
5.         I’ve spent $10,000 to install high efficiency windows in my home. They are expected to...
5.         I’ve spent $10,000 to install high efficiency windows in my home. They are expected to last 20 years.   I expect my annual heating bill to decrease by $1,000. a.         What is the “net present value of my investment? Use a discount rate that is appropriate for YOU as an individual?   b.         If city hall had made this investment, what is the “payback” time? Use a discount rate appropriate for a public project. c.         Calculate the “Internal Rate of Return”...
Digital System Design Write the verilog HDL code for 2-4 decoder (Gate level modeling) along with...
Digital System Design Write the verilog HDL code for 2-4 decoder (Gate level modeling) along with the testbench and simulate using ModelSim. Upload the assignment (i) code (ii) testbench (iii) simulation in single pdf file.
Allison is a system analyst; she needs to ensure to create a system design which is...
Allison is a system analyst; she needs to ensure to create a system design which is flexible and adaptable. The better the system design the more cost can be saved in the future. X is performed most often to improve the existing software rather than respond to a crisis or a system failure. Identify X. State and explain in details the practice of X.
can someone explain to me a the design of macro in verilog(high level view)?
can someone explain to me a the design of macro in verilog(high level view)?
Problem 9-2 (Part Level Submission) Bonita Home Improvement Company installs replacement siding, windows, and louvered glass...
Problem 9-2 (Part Level Submission) Bonita Home Improvement Company installs replacement siding, windows, and louvered glass doors for single-family homes and condominium complexes. The company is in the process of preparing its annual financial statements for the fiscal year ended May 31, 2017. Jim Alcide, controller for Bonita, has gathered the following data concerning inventory. At May 31, 2017, the balance in Bonita’s Raw Materials Inventory account was $452,880, and Allowance to Reduce Inventory to NRV had a credit balance...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT