首页
网站开发
桌面应用
管理软件
微信开发
App开发
嵌入式软件
工具软件
数据采集与分析
其他
首页
>
> 详细
辅导CE323语言编程、讲解C/C++程序、C/C++辅导 辅导Python编程|解析Java程序
项目预算:
开发周期:
发布时间:
要求地区:
Advanced Embedded Systems Design CE323/860 Ali Hoshiar Spring 2021
CE323/CE860 Advanced Embedded Systems Design Assignment 2
The assignment is worth 25% of the total mark for this module. This assignment is to design a home
alarm system based on the mbed NXP LPC1768 and its virtual board (2 LEDs, 2Switches, 1 LCD, 1 virtual
keypad, 1 alarm-LED) or based on the Arduino and virtual board on tinkercad. The home alarm system
specification is given below. The sensors mentioned below will be replaced with the switches in the
virtual extension board and the alarm is replaced with a LED in your design. Based on the specification,
you need to develop a formal specification using a graphical representation (preferably Unified
Modeling Language (UML)). The UML specification should include structure diagrams (class diagrams
and/or object diagrams), and behaviour diagrams (state machine diagram, sequence diagram). The
formal specification should be written in a report. Then you must write a C/C++ program to implement
the design of the home alarm system. You also need to make a demonstration in the lab.
The report:
The report should be in PDF and must include a cover page with the module name, student name and
ID. The source code should be included in the report. The maximum length of the report is of 5 pages
for CE323 Students and 10 pages for CE860 students (without appendix).
An important note for CE860 Students:
The program and functionality are similar. However, higher level of technical explanations is expected
from CE860 students. Therefore, the length of the report is considered to be 10 pages.
The report should include:
1. Requirement form
2. UML graphical representation of the system
• class diagrams
• state machine diagrams
• sequence diagrams
When necessary, you should provide explanation.
3. Source code
The parts of code you are developing in the labs can be used in your program. You must complete the
program and deliver required functionalities. You can also use the program developed in the
Assignment 1 (virtual extension board). Full source code should be provided in the report as an
appendix.
*Online version
Considering the limited access to the labs due to the COVID-19 pandemic. Mbed online simulator or
tinkercad online simulator is used for evaluating the code.
Advanced Embedded Systems Design CE323/860 Ali Hoshiar Spring 2021
Submission:
The report should be submitted through the online coursework submission system (FASER). You
should submit a single pdf file called “CE323 Assignment 2 (your name)” for CE323 students and
“CE860 Assignment 2 (your name)” for CE860 students and.
Assessment criteria:
• Following the rules mentioned in this document for the submission and preparation of the
assignment 10%
• Class diagram 10%
• State machine diagram 10%
• Sequence diagram 10%
• Correctness of program 40%
• Quality of program 10%
• Clarity of program and comments briefly 10%
Late submission and plagiarism
This assignment is to be done individually, i.e. whatever you submit must be your own individual work.
Any software or any other materials that you use in this assignment, whether previously published or
not, must be referred to and properly acknowledged. Please be aware that the module supervisor may
ask students for an interview to explain their submitted work. Please refer to the Undergraduate
Students’ Handbook for details of the School policy
regarding late submission and University regulations regarding plagiarism:
http://www.essex.ac.uk/ldev/resources/plagiarism/default.aspx
http://www.essex.ac.uk/about/governance/policies/academic-offences.aspx
Advanced Embedded Systems Design CE323/860 Ali Hoshiar Spring 2021
Home Alarm System
1. Introduction to alarm systems
A home alarm system is constructed from various separate parts, which all connect to a central control
unit (in this link you can find a DIY example of a home alarm system). Your task is to implement a basic
control unit and the functionality behind its user interface. To complete this task you must first
understand the specification of the external parts provided and the required behaviour of the overall
system.
A conventional alarm system normally contains:
• Central control unit
• Keypad entry point / user interface
• Sounder unit
• Sensors such as: magnetic contacts (reed switches), pressure mats, movement sensors like
passive infrared sensors (PIRs).
In the case of the sensors, they all contain switches that are “closed” circuit under normal
circumstances. This type of switch is known as a Normally Closed (NC) switch, the converse is known
as Normally Open (NO). Magnetic contacts are used to detect when doors and windows are opened.
When a door is opened a magnet is moved away from the reed switch which causes the switch
contacts to open. Likewise, when a movement sensor is triggered or a pressure mat depressed the
circuit is broken (the switch is opened), see Figure 1. The opening of a contact can be detected by
using one of the microcontroller's parallel port inputs, connected to the top of the switch whose lower
end is connected to GND. The top of the switch is also connected through a resistor to 3.3v (V+). When
the switch is closed the port, input is connected to 0v (GND), and it will be pulled-up to 3.3v (V+) by
the resistor when the sensor's switch opens. Therefore, the microcontroller input is logic low (0v)
when a door is closed / there is no movement, and logic high (3.3v) when the sensor is activated. The
alarm controller must detect these events and respond as specified later in this document. In this
assignment the sensors are emulated using normally closed push to break switches.
Figure 1: Alarm sensors
Normal home alarm systems include multiple sensors located in various locations, each location can
have its own circuit which allows identification of the triggered switch, i.e. it lets the user know where
the break-in occurred. Each sensor circuit is known as a zone, and zones can have different behaviour.
Advanced Embedded Systems Design CE323/860 Ali Hoshiar Spring 2021
2. Functional Specification - Zone Behaviour
The virtual extension board (3 LEDs, 2 Switches, 1 LCD, 1 virtual keypad), will be used for
demonstration. This alarm has SIX states of operation set, unset, entry, exit, alarm, and report. Initially
it is in the unset state.
• Unset state:
▪ In the unset state, activation of any of the sensors should not cause the alarm-LED to
blink.
▪ Entry of the correct four-digit code in the user interface (described later) followed by
“B” should cause the system to change to the exit state.
▪ If the user enters an invalid code three times, the alarm should change to the alarm
state.
• Exit state:
▪ When in the exit state, the user has a time interval called the exit period (you can
choose any time e. g. 1 minutes) in which to evacuate their home.
▪ In the exit state, activation of any sensors in a full set zone should cause the alarm to
enter the alarm state.
▪ Whilst in the exit state the alarm-LED should blink.
▪ If the user enters their four-digit code followed by “B” within the period, the exit state
should change to the unset state.
▪ If an invalid code is entered three times, the exit state should change to the alarm
state.
▪ If all the zones are inactive when the exit period (e. g. 1 minutes) expires, the exit
state should enter the set state.
• Set state:
▪ In the set state, activation of any sensors in the set state zone should cause the
system to enter the alarm state.
▪ Activation of the entry / exit zone should change the state to entry state.
• Entry state:
▪ The purpose of the entry state is to allow the user a period of time to gain access to
their home so that they can unset the alarm, this duration is known as the entry
period (e. g. 2 minutes).
▪ Whilst in the entry state, the alarm-LED should sound blink.
▪ If the user enters their four-digit code followed by “B” within the period, the state
should change to the unset state.
▪ If the user fails to enter their correct code within the entry period, the state should
change to the alarm state.
▪ In the entry state, activation of any sensors in a full set zone should cause the state
to enter the alarm state.
• Alarm state
▪ When in the alarm state, the alarm-LED should be on all the time.
▪ After 2 minutes, the alarm-LED unit should be disabled.
▪ If the user enters the correct code followed by “B”, the alarm should change to the
report state, otherwise stay in the alarm state.
Advanced Embedded Systems Design CE323/860 Ali Hoshiar Spring 2021
• Report state
▪ When in the report state, the LCD should show the zone numbers or code error
information in the first line (e. g. ‘code error 1’). In the second line it should show “C
key to clear”.
▪ When an “C” is entered, the alarm should change to the unset state.
3. Functional Specification - User Interface
The user interface consists of:
• a 4x4 virtual keypad
• a 16 character by 2-line LCD display
• 1 LEDs for entrance door (replaced with 1 switch connected to a LED)
• 1 LEDs for alarm.
• 1 sensor for 1 zone (replaced with 1 switch connected to a LED)
Fig. 2 Mbed online simulator for home alarm system
Advanced Embedded Systems Design CE323/860 Ali Hoshiar Spring 2021
Fig. 3 TinkerCAD online simulator for the home alarm system
When a sensor in a zone is active (circuit broken), the corresponding LED should be illuminated. When
the system leaves the alarm state, the alarm-LED should be off.
The LCD should display the state of the system on the first line of the LCD display.
• When the user enters the first digit of their code in the unset state, the second line of the
display should additionally show left aligned “Code: * _ _ _” with the “_” characters being
replaced with each successive digit entered.
• If the user presses the “C” key, then the last entered character should be deleted and replaced
with “_” unless there are no characters left, in which case the display should only display the
state, i.e. be the same as when none of the code had been entered.
• When all four digits of the code have been entered, the second line of the display should
display “Press B to set”.
• Any other key should cause the code entry procedure to abort without checking the user
code.
Advanced Embedded Systems Design CE323/860 Ali Hoshiar Spring 2021
Alternative Design Assignment 2
For the students with Experience/Interest in embedded system programming a complementary
assignment task is available. If you feel you are interested in doing more than tasks in the current
assignment you can volunteer for this extra task. This extra work is on the design and development of
an embedded system for the microrobotics system we are currently developing in the University of
Essex (Fig. 4).
Fig. 4 Magnetic actuation system for Microrobotics studies
The following system is controlled by Mega Arduino. We have developed a MATLAB connection and
we want to monitor the system in real time using cameras. The system controls a 3D magnetic field.
Please kindly note that the requirement and the quality of the work is high for this design and you
should discuss during the lab 6 with the module supervisor.
软件开发、广告设计客服
QQ:99515681
邮箱:99515681@qq.com
工作时间:8:00-23:00
微信:codinghelp
热点项目
更多
代做ceng0013 design of a pro...
2024-11-13
代做mech4880 refrigeration a...
2024-11-13
代做mcd1350: media studies a...
2024-11-13
代写fint b338f (autumn 2024)...
2024-11-13
代做engd3000 design of tunab...
2024-11-13
代做n1611 financial economet...
2024-11-13
代做econ 2331: economic and ...
2024-11-13
代做cs770/870 assignment 8代...
2024-11-13
代写amath 481/581 autumn qua...
2024-11-13
代做ccc8013 the process of s...
2024-11-13
代写csit040 – modern comput...
2024-11-13
代写econ 2070: introduc2on t...
2024-11-13
代写cct260, project 2 person...
2024-11-13
热点标签
mktg2509
csci 2600
38170
lng302
csse3010
phas3226
77938
arch1162
engn4536/engn6536
acx5903
comp151101
phl245
cse12
comp9312
stat3016/6016
phas0038
comp2140
6qqmb312
xjco3011
rest0005
ematm0051
5qqmn219
lubs5062m
eee8155
cege0100
eap033
artd1109
mat246
etc3430
ecmm462
mis102
inft6800
ddes9903
comp6521
comp9517
comp3331/9331
comp4337
comp6008
comp9414
bu.231.790.81
man00150m
csb352h
math1041
eengm4100
isys1002
08
6057cem
mktg3504
mthm036
mtrx1701
mth3241
eeee3086
cmp-7038b
cmp-7000a
ints4010
econ2151
infs5710
fins5516
fin3309
fins5510
gsoe9340
math2007
math2036
soee5010
mark3088
infs3605
elec9714
comp2271
ma214
comp2211
infs3604
600426
sit254
acct3091
bbt405
msin0116
com107/com113
mark5826
sit120
comp9021
eco2101
eeen40700
cs253
ece3114
ecmm447
chns3000
math377
itd102
comp9444
comp(2041|9044)
econ0060
econ7230
mgt001371
ecs-323
cs6250
mgdi60012
mdia2012
comm221001
comm5000
ma1008
engl642
econ241
com333
math367
mis201
nbs-7041x
meek16104
econ2003
comm1190
mbas902
comp-1027
dpst1091
comp7315
eppd1033
m06
ee3025
msci231
bb113/bbs1063
fc709
comp3425
comp9417
econ42915
cb9101
math1102e
chme0017
fc307
mkt60104
5522usst
litr1-uc6201.200
ee1102
cosc2803
math39512
omp9727
int2067/int5051
bsb151
mgt253
fc021
babs2202
mis2002s
phya21
18-213
cege0012
mdia1002
math38032
mech5125
07
cisc102
mgx3110
cs240
11175
fin3020s
eco3420
ictten622
comp9727
cpt111
de114102d
mgm320h5s
bafi1019
math21112
efim20036
mn-3503
fins5568
110.807
bcpm000028
info6030
bma0092
bcpm0054
math20212
ce335
cs365
cenv6141
ftec5580
math2010
ec3450
comm1170
ecmt1010
csci-ua.0480-003
econ12-200
ib3960
ectb60h3f
cs247—assignment
tk3163
ics3u
ib3j80
comp20008
comp9334
eppd1063
acct2343
cct109
isys1055/3412
math350-real
math2014
eec180
stat141b
econ2101
msinm014/msing014/msing014b
fit2004
comp643
bu1002
cm2030
联系我们
- QQ: 9951568
© 2021
www.rj363.com
软件定制开发网!