There are times when you want rest of your work but your work is like ensuring correct temperature of a freezer and if it is out of limits you need to see the matter. So to give you rest this device will help you. Basically the project uses Temperature sensor which sends the temperature value to the bolt cloud and notifies you about anomaly in temperature by sending an E- mail to you. It uses Z- score analysis of ML to find the anomaly and online mail service to send a notification. Also You can know about future temperature using Polynomial Regression technique.
Applications- In Pharmaceutical industries medicines need to be stored in a temperature range. So this device can ensure that the temperature of surrounding in which the medicines are stored is suitable.
- In cold storage also temperature needs to be checked at regular intervals.
- Anywhere where you need to maintain a temperature and don't want temperature beyond certain range.
The value sent by sensor need to be divided by 10.24 to get actual temperature value.
Z-score analysis is used for detecting the anomalous behavior in values that are measured. First we calculate mean of the values and then calculate the z score which is added to value to set thresholds at that point.
Frame size tells about number of past values that needs to be taken in account for calculating z-score. And multiplication factor is the value set according to our need of thresholds.
- Connect the LM35 temperature sensor according to its pin by bolt wifi module. Connect Ground pin to GND, Vout to A0, 5v pin to 5v.
- Connect Bolt wifi module via usb charging adapter.
- If you are having ubuntu OS nice else setup a subsystem for linux on your windows. You can view how to setup in following link https://www.youtube.com/watch?v=Cvrqmq9A3tA
- Install following stuff before moving. Python3 and BoltIOT. Use the following commands.
- Now create your account on Mailgun.
- After connecting your device to Bolt cloud, We need to create product in following way.
- Select A0 pin and name it as of your choice.(here I have named it as temp)
- Now to apply Polynomial regression write the code given below and save the changes.
- Now Link This product to your device.
- Now you can view the data on a graph and can see the future determined data as well.
- Now to use Z-score analysis first we need to create configuration file in which we need to write Api key of bolt device and our mailgun account which you can view in respective dashboards. You can view it in code as shown below. At First It is important to check the boundaries of temperature of your refrigerator so that the frame size and multiplication factor can be set accordingly to detect the anomaly.
- Then code of anomaly detection need to be written as shown below.
- To see the results run the python code by command 'sudo python3 'file_name''.
- Following is the mail received when anomaly is detected.
Hence Our project is complete. Now we can rest during our busy schedule without any worry as if there is a fault we will be notified by our great friend.
Comments