With COVID-19's implications on transport across the world, many people are traversing across to work (and recreational regions) by walking and cycling. Many research studies show exposure to UV-light, certain air pressures and temperatures, as well as air quality, can all affect the transmission. By using the low-cost sensors embedded in the Thunderboard sense 2, the solution proposed using this technology aims to track and record the environmental data for both local uses to view later and cloud usage. This can help to plan better routes to these locations to minimise transmission. This can also help communities with the use of the cloud where the users can submit routes to help their local community to find better transport routes etc. Whilst also hosting environmental data, Convent helps users to map out outbreaks within their communities and also add custom roads and list any local shops to help re-build the community. The design includes an AI Chatbot which can be accessed via SMS ! This helps to spread awareness for COVID -19 with a universal mode of communication.
FunctionWhen you first open the thunderboard sense 2, download the android or ios app and connect to your device. This will automatically stream data from the device to the phone. This will help verify all aspects of your device is working. Also 3D Print the casing attached in the files.
I) Update libraries on your raspberry pi by typing
sudo apt update
sudo apt upgrade
ii)
Install Python 3
sudo apt-get install python3-pip
III) For BLE connectivity install bluepy (licensed under GNU Public V2) using:
sudo apt-get install python-pip libglib2.0-dev
sudo pip install bluepy
If you are not running a version of Debian follow the instructions here: https://github.com/IanHarvey/bluepy
While everything is downloading feel free to move onto the next step
Step 3: Setting up ThingSpeakI) Log on/Create an account and then set up a new channel
II) Add 5 Fields in this order: Battery, Temperature, Humidity, UV Index, Carbon Dioxide
II) Find your Write API Key by navigating to API Keys section. It should look something like this with each x being a number or letter: "xxxxxxxxxxxxxxxx"
Step 4:Setting up Thunderboard Sense 2I) Download the Bluetooth Sniffer App
II) Power your thunderboard and find it in the sniffer app and click connect
III) You should be able to see your device's ID/Address please note this as you will need it in the program
Step 5: Programming Raspberry PiDownload the program attached/below and change:
i) The API Key
ii) Device Address
Then add it to the raspberry pi and open up the terminal and run the program
sudo python REPLACE WITH FILE ADDRESS
Please note you MUST be in sudo for this to work properly. If it does not connect unplug the thunderboard sense 2, re-plug it wait 3 seconds and promptly run the program
Step 6: Data CollectionIf you look onto thingspeak you will the data is being updated live
The next part of the project is run on google maps. Create an account and and navigate to my maps section and create a map. This will host the community platform for changes etc. Each community will have a shared platform. There they can add
i) Businesses
ii)Roads
ii) Bike and Walking Paths
iii) Areas to Avoid
iv) General Environmental Trends
v) Much More...
The entire system will be hosted on Amazon web services for ease of use and reliability. To add to the function we will add a chatbot for users to communicate questions to help improve information and awareness.
i) Sign up for AWS Services or Log In
ii) Create a new Amazon Lex Project and create a custom bot
iii) Create your first intent and begin to add utterances, which are example questions, and the answers. Use a variety of different utterances to help the neural network to better understand the questions.
iv) Create your responses and save the intent. Create multiple intents following the same steps until all question types are completed.
v) Build and Publish Project, then proceed to head over to channels
Step 9: Twilio SetupOn the Twilio SMS page, provide the following information:
- Project Name
- Choose "aws/lex" from KMS key.
- For Alias, choose the bot alias you provided in the project
- Type the AUTH TOKEN from your Twilio account.
- Type the ACCOUNT SID from your Twilio account.
- Activate and copy the endpoin
- Go to the twilio website and to your phone number (twilio) add this as an endpoint
Overall, Convent is a community measure which helps to educate community members about COVID-19 through the widely accessible SMS platform ; help map out outbreaks and restrictions; helps businesses get back on the road and set up an online presence ; helps community members to plan out better routes and collect environmental data to help curb the spread. Convent helps to detect COVID-19 transmissions through heatmaps and community data and helps to protect through public alerts, whilst simultaneously helping the community to re-build businesses and plan routes.
This was made possible due to generous hardware donations for AWS Credits and Thunderboard Sense 2
Comments