Professional Documents
Culture Documents
Automated Sprinkler Management System: 1. Goals
Automated Sprinkler Management System: 1. Goals
Automated Sprinkler Management System: 1. Goals
1. Goals
a. The purpose of this project is to create a Frontend Sprinkler management
System(Panel) and a backend to support the control of the system as well
as read the data from the system.
2. Components
a. The management system consists of
i. sensors
ii. ESP32 chipsets for control of the sprinkler
iii. Sprinkler(s)
iv. Frontend management panel
3. Setup
a. The setup consists of one sensor being connected to one ESP32 chipsets
which inturn is connected to wifi and is controlled via WiFi from remote
devices as well as devices operated on the same WiFi locally(without an
active internet connection).
b. The sensors detect the temperature and in response turn on/off sprinklers
automatically.
c. The sensors transmit data to the ESP32 chipset which inturn is sent to us
via WiFi.
4. Scope of work
a. The hardware setup of the sensors and the chipsets have already reached
completion. This document entails a scope of work on the backend
framework/infrastructure.
b. The scope of work includes
i. Successfully achieving an active duplex communication using
MQTT protocol or any other preferable one, which would ensure
the data transfer/transaction under 1 second. A successful
transaction would include data transfer from sensors as well as the
remote operation of devices.
ii. We would need to receive data from the respective sensors using
the ESP 32 chipsets and provide a brief analytics of the system
including but not limited to average room temperature, last actions
performed, last usage, state.
iii. The system is divided in two parts including an admin panel and a
supervisor panel, where the admin panel would consist of analytics,
data and perform actions over all the devices spread across various
organisations. Whereas the supervisor panel would be limited to
devices, actions, data and analytics from one organisation.
iv. The admin panel should be able to create/disable logins for
supervisors.
v. The supervisor panel should be able to look at an overview of
actions committed by any user and any noteworthy action like
turning on/off a sprinkler under the notifications section.
vi. The admin should be able to create rooms and assign sprinklers
inside the room
vii. The aggregate data from the sensors in a room should be used to
calculate data like the average temperature and so on.
viii. The management system(customer panel) should be capable of
turning on/off the device locally via the WiFi when there is no
stable/active internet connection available on the same WiFi.
ix. We should be able to log scenarios like switching on of a sprinkler,
Error/failure of devices, malfunction, disconnection.
x. All actions sent to devices via WiFi from devices not on the same
network should be executed and in times when WiFi is not available
to the IOT devices, the actions should be stored and executed back
when the connection is back.
5. Deliverables
a. Customer Panel(Desktop App or Web App)
b. Admin Panel
c. Backend
6. Features
a. Customer Panel
i. Statistics
1. Line graph, table data, live operation status
window,Incremental Pie chart temperature & temperature vs
time. IO Switch for sprinkler operation,text block for
displaying 30 minutes system check for system status.
2. The average temperature of a room will be shown as a high
level reference, but if a user goes inside a room he can see
the detailed logs of temperature readings sent to the
backend.
3. Some images have been attached for a loose reference.
4.
5.
3. Edge Cases
a. When the sprinklers are operated through an active
internet connection we will communicate to the
devices using AWS IOT Core via MQTT protocol
where we subscribe on both ends for topics(Sprinkler
subscribes to operation topic and backend will
subscribe to stats, operation topic(if it has been
turned on automatically)).
b. When sprinklers are operated by someone not at the
venue using the web app/app and there is no internet
connection for that device/devices, the actions should
be stored somewhere on the backend and executed
as soon as there is an active connection.
c. When there is no internet but sprinklers are
connected to wifi, they should be operable by a
device on the same WiFi using the router as an APN
d. When there is no internet or wifi connection the
devices will function on their own using the hardware
code we have placed.
v. Calculations
1. The average of the temperatures sent by sprinklers inside
one room should be calculated and updated via sockets to
keep it a live connection.
2. All sensor data will be collected for every last minute value
and will be compared with the current value if the
temperature change is greater than 7 Degree/minute for
consecutive 1 minute than the corresponding dependent
sprinkler output module will operate.
(Example: RoR operation for Particular sensor
Cut Off Temperature - 57 deg C
Sensor1 00:00 (hh:mm) - 40 deg C
Sensor1 00:01 (hh:mm) - 47 deg C
RoR (Rate of Rise Method) - 7 deg C/ Minute
rise
Sprinkler Module 1 - ON
3. Also, if
(Example: RoR corresponding Sensor
Consider Sensor1 operated ON at temperature
57 deg C (ie. Cut Off Temperature)
1----------2----------3----------4----------5----------6
7----------8----------9----------10--------11---------12
(fire)
13--------14--------15---------16--------17---------18
19--------20--------21---------22--------23---------24
Algorithm:
Fire caused temperature increased operation
sensor 10
X = 10
C=6
(x - 1) = ON ie. Sprinkler 9
(x + 1) = ON ie. Sprinkler 11
(x - c) = ON ie. Sprinkler 4
(x - c) = ON ie. Sprinkler 16
5.
iii. Access Logging
1. The admin can create other users as described but we
will need 4-5 admin logins as well which will have all the
alerts and features described.
iv. Event Logging
1. New user/room creation events should be logged here.
2. Alerts regarding a fire, malfunction, device not working,
device out of connection, manual operation of sprinkler
from customer panel/app, should be sent to all admins
via mail and logged as well on admin panel.