Automatic Vehicle Accident Alert System using AWS IoT

Introduction

According to the Top 10 Causes of Death Report by CDC, Road Injuries hit in several country including my country, Thailand that 4 percent of death is a result of the vehicle accident. Frequently, the serious accidents occur at nighttime; in that case, it might be not caught sight of other people then the victim who is unable to call some emergency services by himself donā€™t get help at the right time. With Automatic Vehicle Accident Alert System, an alerting message which contains accidentā€™s time and location sent automatically by the particular device embedded in a vehicle to emergency and relief agencies. So, they can rush to the accident and help the victim in time.automatic vehicle accident alert system using aws iot

I use the amazing AWS IoT along with SNS, DynamoDB and Lambda for this project. AWS IoT enables communication between Internet-connected vehicle-embedded devices and the AWS cloud over MQTT. About alert services, AWS SNS is used for alerting an involved person via E-mail and Real-time Framework handle a real-time messaging task. DynomoDB is used for store accident information such as car number, time, latitude and longitude. Indispensably, AWS Lambda take a role of a manager who invokes the other services.

Additionally, I would rather make a comparison about system developing using AWS IoT and vice versa. 3 years ago when I was a college student, I developed a simply home automation system using Arduino. It took a long time because I had to set up the Apache web server for communicating with devices via HTTP. Contrariwise, this project is more thoroughly and took a little time for developing. Thus, AWS IoT provide a great environment for ā€œInternet of Thingsā€.

Part 1: Setup Raspberry Pi 2

Step 1:Ā Follow all steps in the following link to setup, connect and flash the image for Raspberry Pi 2.

https://www.raspberrypi.org/help/noobs-setup/

(Cr. Raspberrypi.org)

Step 2:Ā Download and install WiringPi

http://wiringpi.com/download-and-install/

(Cr. WiringPi)

Step 3: Set up AWS IoT C SDK

http://docs.aws.amazon.com/iot/latest/developerguide/iot-device-sdk-c.html

(Cr. Amazon)

Part 2: Create AWS Environment

Step 1: Setup the AWS IoT

Step 1.1: Login to the Amazon AWS Console. Then, select AWS IoT service.

Step 1.2: Create a thing. Type a thing name and its attributes.

Step 1.3: Create a certificate. Then, download all the key & certificate files.

Step 1.4: Create a policy. Type a policy name and add a policy statement.

Step 1.5: Activate a certificate. Then, attach a policy and a thing to the certificate.

Ā Step 1.6: Create a rule. (After Complete Step 5)

Step 2: Setup the AWS DynamoDB

Step 2.1: Login to the Amazon AWS Console. Then, select AWS DynamoDB service.

Step 2.2: Select Create table. Type Table name and Primary key.

Step 2.3: Select Manage Stream. Choose New and old images Type.

schematic automatic vehicle accident alert system using aws iot

Step 3: Setup the AWS SNS

Step 3.1: Login to the Amazon AWS Console. Then, select AWS SNS service.

Step 3.2: Select Create Topic. Type Topic name and Display name.

Step 3.3: Create a topicā€™s subscription. Then, confirm it by follow the link in your E-mail.


About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top