This project is a temperature alert system generally used in medical, motor sports, HVAC, agriculture, aerospace and automotive, where temperature plays an important role. The appropriate temperature range is decided by the Z-score analysis done on the data the sensor receives from its environment. When the temperature deviates from the range an alert is sent via message and email. The light and buzzer start to go ON and OFF as another form of alert.
A.Setting up of Bolt CloudThe bolt cloud is used to connect the WIFI module with third party applications like Twilio and Mailgun (in regards with this project) over the internet, via API Key and Device ID provided in the cloud. For setup follow the following steps:
- Connect your Bolt Device to the Bolt Cloud as per instructions given at https://cloud.boltiot.com/
- After adding your device you will see the the device ID (underlined in red ) on the screen
- For the API Key click on API on the left. You will see your API Key as shown in the screen and click on enable to use it.
- To connect the Bolt WIFI Module to the cloud account, the Bolt IoT Mobile App is available for download on the Android Play store and iOS App Store.use the same username and password that you used for creating your Bolt Cloud account to log in to the app. After logging in click on add device and follow the instructions that follows.
Twilio is a third party SMS providing site, simply put, Twilio is a developer platform for communications. Software teams use Twilio APIs to add capabilities like voice, video, and messaging to their applications. In this project it is used to provide alert via SMS. An account can be created by following the steps below:
- Open Twilio via link https://www.twilio.com/ in the browser.
- Click on ‘Sign Up’ the following screen will pop, fill in your credentials and click on ‘Start your free trial’.
- After verifying email and mobile number the following screen will appear.Click on ‘Choose this Number’. Once you've built your project, configure this phone number to send and receive calls and messages.
- The Account SID and Auth Token can be seen on the Dashboard. These two parameters are used to connect your device with Twilio.
Mailgun is an email automation service provided by Rackspace. It offers a complete cloud-based email service for sending, receiving and tracking email sent through your websites and applications. Mailgun features are available through an intuitive RESTful API or using traditional email protocols like SMTP. In this project it is used to provide alert via Email. An account can be created by following the steps below:
- Open Mailgun via link https://www.mailgun.com/in the browser.
- Click on Start sending. While filling credentials fill ‘Company’ as ‘Boltiot’ and make sure to uncheck the ‘Add payment info now’.
- In the Dashboard by scrolling down you can see your sending domain SID and API key can be found in settings-API keys.
The following steps can be followed to setup the VMware with Ubuntu
- Download the VMware software via https://my.vmware.com/web/vmware/free#desktop_end_user_computing/vmware_workstation_player/12_0.Download the 12.5.9 version
- Download the Ubuntu Server ISO via http://releases.ubuntu.com/16.04/ubuntu-16.04.6-server-i386.iso
- After installing VMware, uncheck the check for product updates and help improve VMware station in the User Experience Settings while installing.
- Open VMware workstation and install ubuntu.
- Enter the login information for Ubuntu workstation
- Enter a virtual machine name
- Set the disc size to 10 and select ‘Store virtual disc as single file.
- Click on finish. The workstation is ready for use.
- After login install python3 using the command
sudo apt install python3-pip- Install Bolt library to use it in the code, using command
sudo pip3 install boltiot4. Z-SCOREANALYSIS
The variables should be standardized or normalized before putting them into machine learning models. The z-score is that standard variable. Z-scores are a way to compare results to a “normal” population. Results from tests or surveys have thousands of possible results and units; those results can often seem meaningless. In this project it is used as the means of anomaly detection(data out of bounds/range). The bounds are calculated using the input values, frame size and multiplication factor. The frame size is the minimum number of input values needed for Z-score analysis and the multiplication factor determines the closeness of the bounds to the input values curve.
Here ‘Mn’ is the mean, ‘Vi’ is the variance, ‘Zn’ is the z-score and ‘Tn’ represents the bounds.
5. HARDWARE SETUPA.Temperature Sensor (LM35)- Hold the sensor in such a manner that the side with LM35 written faces upward.
- Then from left to right the pins are VCC, Output and GND respectively.see figure.(grey-VCC, black-Output, white-GND)
- Connect to the WiFi module as shown in figure.(Output-A0, GND-GND, VCC-5V)
- The LED has two pins, one longer(positive) and other shorter(negative).
- Connect the LED on breadboard.
- Connect the longer pin with any of the digital pins of the module(0, 1, 2, 3 or 4).
- Connect the shorter pin to the ground.(Since the module has only one GND pin, so connect the GND pin to the breadboard and connect the other devices accordingly).
- Connect buzzer in the same way as LED.Positive pin to digital pin 3 and negative to GND.















Comments