Smart_refrigerator
Assignment
Capstone Final Project
This is the capstone project to summarize all the learnings in the 3 modules of the course and to give you practical hands-on experience by working on a major project using Bolt IOT module.
Working principle
A) Creation of an account and configuration for SMS on Twilio
B) Creation of an acount and configuration for Email on Mailgun
C) Login in your Oracle VM (VirtualBox) or in your digital ocean
D) Code writing in python
E) Running code and view the output
F) Ending with receives the SMS and the Email
Components:
- Bolt IoT module
- LM-35
- Jumper Wires(Male/Female)
- USB cable
- Breadboard(optional)
API's used:
MailGun Email API, Bolt Cloud API, Python Library, Twilio API
Connecting the LM35 to the bolt module
- VCC pin of the LM35 connects to 5v of the Bolt Wifi module.
- Output pin of the LM35 connects to A0 (Analog input pin) of the Bolt Wifi module.
3.Gnd pin of the LM35 connects to the Gnd.
The algorithm for the code can be broken down into the following steps:
a) Fetch the latest sensor value from the Bolt device.
b) Store the sensor value in a list, that will be used for computing z-score.
c) Compute the z-score and upper and lower threshold bounds for normal and anomalous readings.
d) Check if the sensor reading is within the range for normal readings, then send email.
e) If it is not in range, send the SMS.
f) Wait for 10 seconds.
g) Repeat from step a.
Output of Prediction using Polynomial Regression
Alert! Sms using Twilio API
Alert! Email using mailGun API
ThankYou!