Automatic Vehicle Accident Alert System using AWS IoT


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.


Step 2: Download and install WiringPi

(Cr. WiringPi)

Step 3: Set up AWS IoT C SDK

(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

Scroll to Top
Read previous post:
system to monitor pool sensors and refill
System to monitor pool sensors and refill

The Idea Over the last summer my sons and I rebuilt our entire pool system. It started with a problem...