Module: Internet of Things 2018/2019
Assignment 1: Fire Alarm
Lecturers: Dr Payam Barnaghi, Dr Chuan H Foh
Demonstrators: Honglin Li, Abdulkadir Kose
Disclaimer: These notes have not been subjected to the usual scrutiny reserved for formal
publications. They may be distributed outside this class only with the permission of the
instructors.
1.1 Introduction
For this assignment you need to develop a simple fire detector. To keep it simple we define
a fire event as the excess of the two sensing parameters temperature and light levels.
You have to implement a control mechanism that checks both sensors on a mote and in
case that a certain threshold is exceeded, alarm has to be raised.
The main program should include the following features:
Control Loop, checking for temperature and light levels
Event Notification, sending a notification to alert the user that there is a fire event by
blinking LEDs and showing messages on the console.
The minimum requirement for this assignment is the successful implementation of the above
two features. However, to obtain a higher mark you need to implement further extensions
(see next Section).
1.2 Additional Implementations
Fire sensors and alarming systems have several requirements. In the following we describe
some of them that you may consider in your implementation:
Fire Sensors can be deployed in areas that are not easily accessible; therefore their
maintenance could be difficult. Because the sensors rely on battery energy, the
power consumption has to be kept low. Implement your control loop in a way that it
consumes less energy; for example by reducing the checking interval. You need to
show evidence to support your claim of energy reduction.
Apart from blinking LEDs and showing messages on the console, the sensor may
also notify a remote server when there is a fire event. For practicability and security
concern, your solution should use unicast for the communication.
Light and temperature level can vary from room to room and also change over the
time. Implement your program in a way that it adapts the thresholds for a fire event
before the initial control loop. For example, the measurements collected in the first 10
seconds can be used to set the threshold values. Or you can develop an advanced
mode that by pressing a button the sensor enters a recalibration phase for 10
seconds and resets the threshold values.
Add your own additional feature. However it has to fit into the fire detection scenario.
1.3 Assignment Hand-in and Marking Scheme (IMPORTANT)
You may submit a single PDF file (containing both programs) or two separate PDF
files. No other formats are allowed (including applying compression).1
Your submission MUST be in text format (not scanned images).1
You MUST include your name and URN at the beginning of each program. You may
do so by putting a comment before your code, e.g. /* Assignment 1, Name: Chuan
Foh, URN: 1234567 */.
1
We will print your code in grayscale. Use of coloured text is not encouraged.
You may use any libraries available in Contiki for your programming. If you use any
libraries, make sure you have good understanding of the usage and limitations. You
may be asked during the assignment interview.
Do not include unnecessary lines/text in your code, by doing so may reduce
readability.
The marking scheme will be uploaded, as a separate file, to SurreyLearn during the
semester.
版权所有:留学生编程辅导网 2020 All Rights Reserved 联系方式:QQ:99515681 微信:codinghelp 电子信箱:99515681@qq.com
免责声明:本站部分内容从网络整理而来,只供参考!如有版权问题可联系本站删除。