关于机器学习:KIT317-物联网系统分析

38次阅读

共计 2979 个字符,预计需要花费 8 分钟才能阅读完成。

Assignment 1
Due: 15 April 2022
You are required to build a basic IoT system with the following modules. It will include the following:
A. Ethernet Module for the Internet.
B. An RGBLED or LCD for visual output.
C. An LDR (Light Sensor) for sensor input.
D. A switch module.
E. Interrupt Button.
The system should have the following features:
• The IoT device must have an ACTIVE state and a SUSPENDED state.
• A web page displaying different information as stated below.
In the ACTIVE state:
a. the LCD must display something like‘Running’.
OR
b. the RGBLED goes GREEN indicating a running status.
i. A webpage should be there to visualize the sensor information from (C) in real-time. Sensor data in the
remote lab must be reflected on your web page every 15 seconds (approx.).
Note: You can choose any styling of the web page, but it must be readable.
ii. You must implement an input mechanism (interrupt) using (E). If the button is pressed, then the system
goes into a SUSPENDED state.
In the SUSPENDED state:
a. the LCD must display something like‘Maintenance Initiated’.
OR
b. the RGBLED goes RED indicating maintenance.
iii. The device takes a 3-digit input (between 100 and 999) using the switch module (D). This number should
be used as the sampling rate of the LDR sensor data in (ii). For example, if you choose 150 as a 3-digit
input, your system should take 150 samples in 15 seconds before uploading the average to the web
page. (You can select your delay mechanism depending on the number of samples you are taking).
iv. The web page will stop updating, i.e., there is no periodic update in this state. (* see bonus)
v. Once the 3-digit input has been taken, it should move to the ACTIVE state immediately.
Tasks 16 marks
KIT317 2022
vi. There must be a timeout of 60s for iii-v. If the user presses the interrupt button, but no modification
happens in the 60s after the device enters the SUSPENDED state, the system automatically goes back to
the ACTIVE state. (hint: use millis() to timeout)
Please see the attached timing diagram.
The assignment submission should include:
• Your code for the Arduino and PHP as a zip file.
• A flowchart diagram for the system that you implemented.
Two different states are implemented on the device (Arduino), and it moves smoothly between
the states. (ii and v-vi)
• All working 3
• Transition is not timely 2
• It is implemented but does not work 1
• Nothing is implemented 0
The web page shows all features (i and iv)
• The graph is updating, and data is saved properly 3
• One of the features above is not working 2
• The web page is implemented but not working 1
• Not implemented 0
The sampling happens correctly (iii)
• The 3-digit input is taken correctly, and the sampling is happening correctly 4
• One of the features above is not working 3
• Two of the features above is not working 1
• Not implemented 0
The inputs work appropriately (ii)
• The button interrupt/switch module works correctly 1
• Not implemented 0
The inputs work appropriately (vi)
• The timeout works correctly 2
• It is implemented but the features do not work properly 1
• Not implemented 0
Flowchart 3

  • Bonus task: A‘Under maintenance’message is shown on the web page when the device is in the SUSPENDED
    state. 2 marks
    Marking Scheme
    KIT317 2022
    You have to demonstrate the program you created on at least 2 RLs. Record your demonstration as a video
    (preferable mp4). The length of the video should be less than 10 minutes.
    You need to demonstrate the change in the sampling (iii) impacts the charts reflecting on the web page.
    Check video upload deadline on MyLO.
    Demonstration 4 marks
正文完
 0