Data has the potential to change the way we look at issues and solve problems. Collecting anonymous data about the environment around us can benefit our society greatly.
Weather data is often collected by a few weather stations situated sparsely around city environments, resulting in inaccurate data for many people who depend on the data to plan their day. Roads are often bumpy, filled with potholes and cracks, resulting in potential vehicle damage and increasing the risk of accidents. Many of these issues are related to a lack of adequate data collection.
The solution to this: IoT devices attached to vehicles connected to the Helium Network.
Using the Helium Developer Kit and its available sensors, I created a proof of concept to use the Helium Network to collect relevant data and display it to potential users.
I first implemented the ability to detect potholes and record the corresponding GPS location. Using the Helium Developer Kit's IMU and GPS modules, I wrote a script to monitor if there is excessive and sudden Z (vertical) axis movement. When this movement is detected (corresponding to a significant bump in the road), the GPS module records the current GPS location. Then, all of this data is sent via the Helium Console to a database using AWS IoT and AWS Lambda so that it can be viewed by trusted parties in the future.
I have included my script in the code below. To set this up, I created a new lambda script and uploaded the dependencies as a zip file. I then used MongoDB Atlas to set up the backend so that the data can be sent there, making sure to paste the username and password into my Lambda environment variables. The script takes data sent by the Helium Console through AWS IoT and processes it prior to sending it to the database. To set up the connection from the console to the lambda script, I followed this guide: https://developer.helium.com/console/integrations/awsiotcore
I also used the onboard temperature, pressure, and humidity sensors to collect weather related data every few minutes, also recording the GPS location where these measurements were taken so that many data points can be compiled together to make a better, more accurate weather map. Again, this data is sent via the Helium Console to a database using AWS IoT and AWS Lambda.
The Helium Network allows data to be collected and sent in almost real-time from many different vehicles. In the future, this system can be expanded to use many sensors on many different vehicles to build comprehensive datasets around both cities and rural areas that can be used by companies and voernments to better inform their decisions.
Comments