Introduction:
Viruses are tiny organisms that live inside ‘hosts’ (like you!). When you have a viral infection, like influenza or coronavirus (COVID-19), it means that the virus is living inside your body. Like any living organism, viruses like to multiply and spread to make sure they’ll survive.coronavirus (COVID-19) spreads from person to person through droplets that an infected person sneezes or coughs out.
These droplets carrying SARS-CoV-2(causes COVID-19) can enter your body through your nose and mouth which provide a direct pathway to your throat and lungs. Considering the spreading of the COVID-19 pandemic the Masks are a key measure to suppress transmission and save lives. As we all know many of us have the habit of forgetting to wear a mask while going out of the house, here the bolt iot comes in through which you can build a system which alerts you for wearing mask while going out from home.
Hardware Setup:1.Using the USB power supply turn on the Bolt Wifi module.
2.If you don't know how to setup the Bolt WiFi module then click here.
3. Now make the hardware connections as shown in the figure below.
4.Place this system at the entrance of your house in such a way that whenever a person goes out he/she decreases the intensity of light falling on the sensor.
5.As the intensity decreased more than a certain level set by you buzzer start to ring make sure you place the buzzer on the mask stand so that attention goes towards the mask.
Creating an account on Twilio:Step 1: Open https://www.twilio.com/ in browser.
Step 2: Click on Get a Free API Key
button to sign up.
Step 3: Fill all the necessary details in SIGN UP form.
Step 4: Verify your email address by following the instructions sent to your gmail.
Step 5: Verify your phone number by entering the OTP.
step 6: Follow the instructions by answering some questions regarding your project.
step 7: Go to your Twilio dashboard and click on "Get a Trial Number
" button and then "Choose this number
" button.
step 8: Now you can view the Account SID, Auth token, and trial number on the dashboard of your account.
1) Click here to download VM VirtualBox.
2) Click here to know how to install ubuntu on VirtualBox.
3) Update the packages on Ubuntu by this command : sudo apt-get -y update
4) Install pip3 using this command : sudo apt install python3-pip
5)install the boltiot python library on your Ubuntu server by : sudo pip3 install boltiot
1) Login to your ubuntu server by entering your name and password.
2) Create a folder by writing " mkdir mask_alert
".
3) Create a new file named conf.py by writing " sudo nano conf.py
" on your terminal.
4) In conf.py
file write the code given below by entering all the required credentials carefully.
SID = 'You can find SID in your Twilio Dashboard'
AUTH_TOKEN = 'You can find on your Twilio Dashboard'
FROM_NUMBER = 'This is the no. generated by Twilio. You can find this on your Twilio Dashboard'
TO_NUMBER = 'This is your number. Make sure you are adding +91 in beginning'
API_KEY = 'This is your Bolt Cloud accout API key'
DEVICE_ID = 'This is the ID of your Bolt device'
5) After completely entering all the required data save the file by pressing "ctrl+x" and then press Y.
6) Now create one more python file by writing " sudo nano mask_alert.py
" and write the code given below in the Code section.
7) Save and exit the nano editor by pressing " ctrl + x
" and then press Y
.
8) Now to run the mask_alert.py file use this command : sudo python3 mask_alert.py
As expected whenever a person comes across the LDR sensor in such a way that his shadow falls on it the buzzer will run for 5 seconds and you will receive an alert message on your number reminding you to not forget your face mask.
The output on the terminal and the message received in mobile is given below:
Comments
Please log in or sign up to comment.