# Final project description

The idea behind my project started when I have got my driverâ€™s license and started noticing the driving behavior of drivers especially starting from 7am until around 6pm (where workers are heading out to work and students are going to school). During this time, drivers (especially who are driving a car that their company owns) start driving at a scary manner, even inside villages. Due to that, for every few months, one would hear that a child was hit by a car on his way from/to school or while driving his bike. So, I have thought about designing a project that will help limit the amount of accidents that occur.

My final project will be a device that fits inside a cup holder of a car. It calculates the speed of the driver's vehicle and sends a message to the person in charge in the form of SMS whenever the car's speed exceeds the speed limit and sends the location of the car at that time. It will also feature a form of geo-fencing, where there will be speed restricted zones (near schools, hospitals, etc), where the speed limit will be significantly less.

For my project, the main components I am going to use are: an ATmega328 Arduino Unoboard as my micro-controller, a gps module (Venus638) and a GSM module. This is how the project will function:
1- The GPS sends a signal to the microcontroller that contains the time and coordinates (in latitude and longitude).
2- The microcontroller calculates the speed by comparing the current coordinates with the previous data. It will then compare the calculated speed with the speed limit set on the zone in which the driver is in.
3- If the speed is higher than the limit, the microcontroller will start logging the data (maybe at a rate of 0.1Hz), until the driverâ€™s speed becomes lower than the limit.
4- The microcontroller will send a signal to the GSM module that consists of the starting time in which the limit was passed, duration, maximum velocity, average velocity and the location to the person in charge of the driver.