Shikha Mehta
Published © GPL3+

Open Fridge alert with Bolt IoT

A temperature monitoring sensor with Bolt IoT

IntermediateShowcase (no instructions)4 hours81
Open Fridge alert with Bolt IoT

Things used in this project

Hardware components

Bolt WiFi Module
Bolt IoT Bolt WiFi Module
×1
Male/Female Jumper Wires
Male/Female Jumper Wires
×3
USB-A to Mini-USB Cable
USB-A to Mini-USB Cable
×1
Temperature Sensor
Temperature Sensor
×1

Software apps and online services

Bolt Cloud
Bolt IoT Bolt Cloud
Bolt IoT iOS App
Bolt IoT iOS App

Story

Read more

Schematics

Connecting LM35 Sensor to the bolt

Step 1: Hold the sensor in a manner such that you can read LM35 written on it.
Step 2: In this position, identify the pins of the sensor as VCC, Output and Gnd from your left to right. VCC is connected to the grey wire, Output is connected to the white wire and Gnd is connected to the black wire.
Step 3: Using male to female wire connect the 3 pins of the LM35 to the Bolt Wifi Module as follows:
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.
Gnd pin of the LM35 connects to the Gnd.

Hardware Connections and supplying power

Hardware connections are made on the bolt wifi module and bold cloud is online.

Configuration of hardware

Configuration of hardware on bolt cloud itself

Configuring JavaScript code

Configuring the javascript code for polynomial regression on bolt cloud and saving the changes.

Polynomial Regression

After deploying the changes, click on View Product. The temperature sensor hardware connections (with the bolt wifi module along with a power source) is kept in the refrigerator for about 2 hours and data is collected. This helps in setting boundaries for the temperatures.

Email sent when temperature crosses threshold

After setting the boundaries for the temperature, python code is written on Putty that will send an email if the temperature crosses a certain threshold.

z-score analysis for anomaly detection

Next, z-score analysis is performed to detect anomaly when someone opens the fridge. This will send an alert via email saying that someone has opened the fridge.

Email received

This is the output received via email for both polynomial regression as well as z-score analysis.

demo video

Code

temperature crossing threshold email notification

Python
Error opening file.

configuration

Python
Connects Mailgun to Bolt Cloud and user email
Error opening file.

polynomial regression

JavaScript
Error opening file.

z-score analysis for anomaly detection

Python
Error opening file.

Credits

Shikha Mehta
1 project • 0 followers
Thanks to Bolt IoT.

Comments