Reference no: EM133055881
ENGT5108 Programming and Software Engineering - De Montfort UniversityCoursework - Fault Tolerant IoT Controller
1 PURPOSE
This laboratory test is summative. It contributes 50% of your total final mark for the module.
OPERATIONAL DETAILS
You should work individually for this coursework and you should have all the required hardware to build your prototype yourself. You will need to build on the Arduino based prototype from Coursework 1 to im- plement an Internet of things application which will perform as the system described in Coursework speci- fication 1 with the following additional requirements.
You will use 2 Arduino boards, one ESP8266 module, one LED, resistors, wires, diodes and opto-couplers to implement a prototype that
1. implements a WiFi soft-access point via the ESP8266 module and provides a web page interface to the workings of the system.
2. The web page has a button or a link that can toggle the LED's behaviour from stopped to started, reports on the health condition of the Arduino controllers and reports on the status of the LED itself. The system is initially in idle state where the LED is off. The system changes the state from idle to operational state on a click on the link/button on the web page. The operational state is defined by feature 6. The system changes the state from operational to idle state on a click on the link/button on the web page.
3. Makes sure the voltage interface between ESP8266 and Arduino is appropriate.
4. Keeps the LED operational as long as at least the ESP8266 and one of the Arduino boards are powered and a button on a web page implemented by the ESP8266 is pressed by the user.
5. Only one Arduino can control the LED at any time.
6. The operation of the LED is given in table 2.1. In other words, when the LED is operational, it has 12 states and it must continuously follow them from 0 to 11 and back to 0 again.
State
|
Duration in seconds
|
LED state
|
0
|
1
|
On
|
1
|
1
|
Off
|
2
|
0.5
|
On
|
3
|
0.5
|
Off
|
4
|
0.5
|
On
|
5
|
0.5
|
Off
|
6
|
0.333
|
On
|
7
|
0.333
|
Off
|
8
|
0.333
|
On
|
9
|
0.333
|
Off
|
10
|
0.334
|
On
|
11
|
0.334
|
Off
|
Table 2.1: LED states and durations