Ask Question, Ask an Expert

+1-415-315-9853

info@mywordsolution.com

Ask Electrical & Electronics Expert

House Burglar Alarm Specification

A house has 2 rooms each of which have PIR motion sensor. Each room has the security light. There is also a PIR sensor outside front door that becomes active when it is dark outside. There is a security light outside the front door. Security lights are switched on, and an audible alarm sounds under certain conditions.
If the outside PIR is triggered (that is, it is dark, and motion is detected), the outside security light is switched on for 20 seconds. Any room sensor activated will trigger the light for (only) that room for 10 seconds. Both room sensors activated within 10 seconds will set off the audible alarm continuously.
Only way to stop audible alarm is to input the correct PIN. If correct PIN is input, the alarm system is de-activated, and becomes dormant (ready for further burglar detections). If incorrect PIN is entered, a ‘first warning’ is given on an LCD panel.
If the further incorrect code is entered, the alarm remains on, the outside light flashes, and a message is sent to the police station. Entering the correct code at any time that the audible alarm is on will de-activate the alarm.
The STD shown in first Figure is intended to reflect this requirement specification. Second figure below shows the hardware to be used for the implememntation and testing of the code.

Tasks for the specification given:                   

1) Produce a Flowchart            
2) Produce a working program
  a) uses sensible labels in code, and is easy to read
  b) uses correct inputs
  c) generates correct LED outputs
  d) generates correct LCD outputs
3) Produce report, presenting all above, readable to software/hardware engineer
4) A demonstration of the working program.

1876_transition diagram.jpg

Figure State Transition Diagram for Simple Burglar Alarm

Key:
inputs:
•    R1S => room1 sensor, simulated on hardware by switch on RB0 active.
•    R2S => room2 sensor, simulated on hardware by switch on RA5 active.
•    MovementS =>movement sensor, simulated on hardware by analogue input on RA3 >= half full scale.
•    CorrectCode simulates correct PIN input, simulated by RB0 active.
•    WrongCode simulates incorrect PIN input, simulated by RA5 active.
•    tamperSwitchActivated, simulated by analogue input on RA3 < half full-scale.

outputs:
•    LED D8 indicates Dormant state. D1 indicates R1Activated state. D2 indicates R2Activated state.
•    D3 indicates AlarmOn state. D4 indicates Warning state. D5 indicates AlarmLatched state.
•    D6 indicates OutsideLightsOn state. D7 may be used for any purpose. The LCD should indicate the state in words.

2286_Hardware for implemantation.jpg

Figure Hardware for implementation and testing of the program

Electrical & Electronics, Engineering

  • Category:- Electrical & Electronics
  • Reference No.:- M9503

Have any Question? 


Related Questions in Electrical & Electronics

A verify the value of alpha20 for copper in table by

a. Verify the value of α 20 for copper in Table by substituting the inferred absolute temperature into Eq. (1). b. Using Eq. (2) find the temperature at which the resistance of a copper conductor will increase to 1 from ...

Assume that the output amplitude of a circuit depends on

Assume that the output amplitude of a circuit depends on frequency according to: Find: a. The break frequency. b. The slope of the Bode plot (in dB per decade) above the break frequency. c. The slope of the Bode plot bel ...

Why maximum power output is given by a machine at an

Why maximum power output is given by a machine at an efficiency of 50 percent?

The analog multi meter in figure 56 is set on the 3 v range

The analog multi meter in Figure 56 is set on the 3 V range to measure dc voltage. The pointer is at 150 on the upper ac-dc scale. What voltage is being measured?

A construct a signal plus noise random sequence using 10

(a) Construct a signal plus noise random sequence using 10 samples of Where N[n] is generated using randn in MATLAB and    Design a discrete-time matched filter for the cosine signal. Filter the signal plus noise sequenc ...

A soccer player heads a wet 050 kg soccer ball moving

A soccer player "heads" a wet 0.50 kg soccer ball moving directly toward him by striking it with his forehead. Assume the player initially moves his head forward to meet the ball at 5.0 m/s and the head stops after the b ...

A train with linear induction motor is traveling uphill at

A train with linear induction motor is traveling uphill at 80 km/h when the frequency of its primary windings is 15Hz. The inclination of the hill is 5°. The frontal area of the train is 25m2 and its coefficient of drag ...

Carry out the experiment relating to illustration 83 and

Carry out the experiment relating to Illustration 83 and Illustration 84 and try to develop a refined voice recognition system for five words. Think creatively and try to find novel solution where possible.

The t-1 telephone system multiplexes together 24 voice

The T-1 telephone system multiplexes together 24 voice channels. Each voice channel is 4 kHz in bandwidth and is sampled every 1/8000 of a second, or every 125 µs. If the 24 channels are to share the system by time-divis ...

What are the significant differences in the way ammeters

What are the significant differences in the way ammeters and voltmeters are connected?

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

A cola-dispensing machine is set to dispense 9 ounces of

A cola-dispensing machine is set to dispense 9 ounces of cola per cup, with a standard deviation of 1.0 ounce. The manuf

What is marketingbullwhat is marketing think back to your

What is Marketing? • "What is marketing"? Think back to your impressions before you started this class versus how you

Question -your client david smith runs a small it

QUESTION - Your client, David Smith runs a small IT consulting business specialising in computer software and techno

Inspection of a random sample of 22 aircraft showed that 15

Inspection of a random sample of 22 aircraft showed that 15 needed repairs to fix a wiring problem that might compromise

Effective hrmquestionhow can an effective hrm system help

Effective HRM Question How can an effective HRM system help facilitate the achievement of an organization's strate