Objective:- This project is just a small protocol. It will be useful in bigger projects like monitoring sunlight falling on plants.
Component description:Bolt Wi-Fi Module:An IoT platform that lets you control or monitor things over the internet. It collects and visualizes the necessary data for monitoring different sensors. It can be operated remotely as well. It connects to the Bolt Cloud through an android application, Bolt IoT.
LDRAn LDR is a light-controlled variable resistor. The resistance of an LDR decreases with increasing incident light intensity(photoconductivity). The voltage developed across it depends directly on its resistor using the voltage divider rule. The Bolt module measure the voltage change through its analog input pin, A0. The measured value is then converted into a digital value by the Bolt module. The Bolt module sends this value to the Bolt Cloud.
Hardware Connections:1. Connect one pin of LDR to 3.3V pin and the other one to the analog pin,A0, of the bolt module.
2. Connect one pin of the resistor to the ground pin and another one to the analog pin,A0.
To avoid cross-connection, use breadboard and jumper wires. At last, power on the module via adapter.
Prediction graph:The data collected from the module is plotted instantly on the cloud. Using polynomial regression, we can predict the data and manage to take early actions.
Polynomial regression formula:
1) Fetch the latest sensor value from the Bolt device.
2) Check if the sensor value is in the defined range.
3) If it is not in range, send an email.
4) Store the sensor value in a list that will be used for computing z-score.
5) Compute the z-score and upper and lower threshold bounds for normal and anomalous readings.
6) Check if the sensor reading is within the range for normal readings.
7) Alert through email if an anomaly is detected.
8) Wait for 10 seconds.
9) Repeat from step 1.
Z-score Analysis:It is a technique used for anomaly detection. The formula for z-score analysis is
- Bolt IoT Training
- Wikipedia
Comments