No More Worries!

image Our orders are delivered strictly on time without delay

Paper Formatting

  • Double or single-spaced
  • 1-inch margin
  • 12 Font Arial or Times New Roman
  • 300 words per page

No Lateness!

image Our orders are delivered strictly on time without delay

Our Guarantees

image

  • Free Unlimited revisions
  • Guaranteed Privacy
  • Money Return guarantee
  • Plagiarism Free Writing

Internet of Things (IoT) devices

Internet of Things (IoT) devices that use multiple sensors, actuators, etc are finding their way into our
homes at an alarming rate. The need to store, access, and analyse the data from these devices
becomes increasingly a top priority, mainly due to the requirement to provide real-time monitoring of
activities happening within the home.
In this assignment, you will develop an active control system with the following specifications:

  1. Read data captured from IoT devices that have been stored in text files. The files contain a
    day’s worth of data captured at hourly intervals. You are required to use the code provided (in
    the appendix below) but adapt it to make use of structures.
  2. Process data to activate/deactivate devices. The sensor data is used either to turn ON or OFF
    devices within the rooms being monitored
  3. Display state of devices based on location and/or time.
    The following devices are used as part of the home monitoring system:
    ● Humidity sensors (used to turn ON or OFF a ventilation system)
    ● Internal and external temperature sensors (used to turn ON or OFF a heating system)
    ● Motion sensors (used to turn ON or OFF lights in that room)
    Data Files
    The data files containing the days’ worth of information have been provided (on the Moodle
    assignment link) and contain information at which the sensor data has been recorded. The files are
    named per the location where the data was recorded.
    Each text file contains information in the following order:
    timestamp, outside temperature and inside temperature, humidity, and motion sensors (6 samples
    over a 1-hour slot i.e. one sample every 10 minutes)
    timestamp outside
    temperature
    inside
    temperature
    humidity motion sensors
    10 m 20 m 30 m 40 m 50 m 60 m
    00:33:44 11.5 15.7 57.2 9.5 10.7 7.5 9.5 7.1 11.5
    01:33:44 8.5 18.8 41.5 11.6 9.5 9.6 10.7 8.5 10.5
    02:33:44 10.4 13.5 49.5 9.5 7.5 11.8 10.5 7.7 7.5
    03:33:44 10.9 15.5 59.5 8.5 7.7 9.5 10.5 11.9 11.5
    04:33:44 9.8 14.5 57.3 9.5 10.2 8.5 11.5 11.9 9.2
    Created in Master PDF Editor
    3
    Energy Consumption
    Three files are available for data recorded in the living room, bedroom and kitchen. The data
    loaded from these files are then used to:
  4. Decide wherever to turn ON or OFF the associated device (e.g. heating, ventilation, and lights)
  5. Compute the energy consumption based on how long the devices have been ON on a daily
    basis. Daily consumption in per KiloJoules (KJ) is calculated using equation 1.0 below
    Daily Consumption (KJ) = Daily Heating Energy + Daily Ventilation Energy + Daily Light Energy
    Equation 1.0 Energy Consumption
    The information in Table 1.0 indicates the amount of energy consumed per hour when the
    respective devices are ON.
    Table 1.0 Energy Consumption
    Heating 300KJ
    Ventilation 250KJ
    Lights 100KJ
    Functionality and Marking Scheme
    Your program will need the following functionality:
  6. Read/load data from sensor files provided using the ReadDataFunction provided in
    Appendix. Note you will need to request the user to provide a file location as a string for
    each file before running this function.
    a. TimeDat[] for the time
    b. TempArr[][] for the temperatures
    c. HumiArr[] for humidity
    d. MotionArr[][] for motion sensors
    (15 marks for loading data successfully from all three files)
    Created in Master PDF Editor
    4
    Your system should therefore provide a menu system that provides options to the user by
    using functions for the following:
  7. Control the state of the devices (turn ON or OFF) based on the user’s specifications
    It is expected the user will supply a threshold for each device, regardless of location, to turn
    ON
    (15 marks)
  8. Calculate the energy consumption per day
    It is expected you will use a 2D array (time v/s device) to store the states of the device at any
    given time. E.g., one table per location. Each element in the array will contain either a 0
    (OFF) or 1 (ON). The program will then use the total units when each device is ON to
    calculate total energy (using equation 1.0 for every location and using table 1.0 to get hourly
    energy).
    Energy consumption calculate is to be added to an Energy Log (Energy.txt) with a timestamp
    of the day that the information was calculated on
    (30 marks)
  9. Write the state of the devices on an hourly basis in three different files (and separate from
    the ones you read in). If the file does not exist, the program should create one for you.
    For each location, write to a follow-up file e.g., KitchenDevices.txt that displays for each
    timestamp, wherever each device was ON or OFF

Sample Solution

, however Fielder’s description of how situational factors affect the leadership style required for the situation is extremely useful in understanding the fundamentals of leadership (Pettinger, 2007). Chelladurai in his Multi Dimensional Model of Leadership, expands on much of Fiedler’s theory but in a continuum based approach, in which the leader can adapt their leadership style to fit the situation (Chelladurai and Madella, 2006). Chelladurai’s theory is taken from sports psychology but can be applied to an organisational scenario. It provides a much more empirical categorisation of task structure, clearly differentiating a plethora of situations that require certain leadership styles for success. Chealldurai found three characteristics that affect the leadership style required for a situation, called antecedents, they mainly expand upon Fiedler’s situational factors and leader – member relations and ultimately affect how a leader should behave towards a situation. The first are situational characteristics, the environment in which the leader must perform, the second are leader characteristics, the experience, personal qualities and skills of the leader, and the third are member characteristics, the motivation, skill and experience levels of group members (Chelladurai and Madella, 2006). The situational characteristics and member characteristics have a required behaviour to ensure maximum group performance, they also have a preferred behaviour to ensure the satisfaction of group members, if the leaders actual behaviour matches both the required behaviour and preferred behaviour of the situation the consequence is maximum group performance and satisfaction. However, if the group are not performing and achieving goals or are not satisfied or both, then the leader is able to amend their actual behaviour to improve this. Leaders able to monitor performance and satisfaction, and understand what is required to amend the situation will achieve optimum group performance in Chelladurai’s model. The one limitation of Chealldurai’s model is that it assumes the leader is in a position of complete positional power over the group, and can implement any leadership style of their choosing without constraints. Positional power is the authority and influence a leader has over a group, if the leader has positional power, they will be able to implement the leadership style they best see fit for the situation. Positional power cannot be measured or quantified, making it highly ambiguous and hard for a leader to understand whether they have it or how then can gain it. It becomes the responsibility of the organisation to have policies in place to provide leaders with some positional power, usually by establishing a clear hierarchal structure. By establishing a hierarchy, the lea
PLACE AN ORDER NOW

Price Calculator

Subject:
Type:
Pages/Words:
Single spaced
approx 275 words per page
Urgency:
Level:
Currency:
Total Cost:

12% Discount

image

  • Research Paper Writing
  • Essay Writing
  • Dissertation Writing
  • Thesis Writing

Why Choose Us

image

  • Money Return guarantee
  • Guaranteed Privacy
  • Written by Professionals
  • Paper Written from Scratch
  • Timely Deliveries
  • Free Amendments