GrayBOX - Accident Detection and Theft Protection System
9642 Views, 193 Favorites, 0 Comments
GrayBOX - Accident Detection and Theft Protection System
GrayBOX is a device which protects you and your vehicle*.
This device will be mounted on your vehicle* and will perform some tasks automatically to save you and your vehicle*.
GrayBOX contains a SIM card so you can communicate with it via text message(SMS only, no watsapp ;-)).
Tasks performed by this device are :
- Accident detection : If you are in a road accident while driving your vehicle* then GrayBOX will automatically send help message to predefined numbers(as many numbers you store in the GrayBOX) with your GPS location.
- Theft protection : When you are going to a place where rate of vehicle theft is high, then at such location you can keep GrayBOX in alert mode by sending it "ALERT" command** via text message. In alert mode, if your vehicle* is moved then GrayBOX will send you help message. To cancel the alert mode, just send "RELAX" command**.
- Stopping theft execution : If by any chance thief stole your vehicle* then also you can stop him/her. To do so, send a command** "STOP" and GrayBOX will disconnect the power supplied to the spark plug of the engine and vehicle* will stop. To again engage the spark plug send "RUN" command**.
- Location acquisition : you can also track your vehicle* by sending "?" (question mark) command** to the GrayBOX and in return it will reply you with its GPS location.
- Communication with user : GrayBOX also communicate with owner of the vehicle*.
*This project is made keeping two wheelers in mind, but with little changes in code it can also be applied to four wheelers.
**Commands should be in the form of *command#.
Ex. - *ALERT#, *STOP# etc.
NOTE - This project is completely working but not yet tested in the field.
.....More videos coming soon.....
Tools and Materials
MATERIALS :
- Microcontroller board (Arduino compatible) or Arduino UNO.
- GSM module
- GPS module
- Accelerometer sensor
- SIM card (Activated and with some balance)
- Relay switch
- LCD
- Fasteners
- connecting wires
- Battery (12v)
TOOLS :
- Soldering iron (If making custom microcontroller board and relay switch module)
- FTDI board (If making custom microcontroller board)
- Screw driver
- wire stripper
- Multimeter
- Glue gun
- Power supply
- A computer
Link from where I bought my components - http://www.rhydolabz.com/index.php
Making Custom Microcontroller Board
Note - If you are using Arduino board or any other Arduino compatible board then jump to step 4.
- Components required
- Atmega328 with Arduino bootloader
- 28 pin IC base for Atmega328
- IN4007 diode
- 470uf capacitor
- 10uf capacitor
- 7805 voltage regulator
- 22pf paper capacitor (Quantity - 2)
- 16 MHz Crystal oscillator
- 100nf capacitor
- 1k resistor (Quantity - 2)
- 10k resistor
- LED
- Berg strip
- Jumper wires
- Download the schematic and PCB file and make PCB.
- Drill with 1 mm drill bit for soldering components at their respective places.
- Solder each component carefully.
If everything goes as planned then your microcontroller board is ready.
NOTE - Use expressPCB to open .pcb file
Connect GSM, GPS Module, Accelerometer Sensor and LCD to Microcontroller Board
Connect GSM, GPS module and Accelerometer sensor as shown in images. If you are using Arduino board then connect as following.
Accelerometer sensor:
- x-pin to A5
- y-pin to A4
- z-pin to A3
- vcc to +5v/3v3
- GND to GND
GPS Module :
I connected GPS module's serial pins (Tx and Rx) to software serial pins of the microcontroller board. So you can change it in the code according to your need.
- Tx-pin to 5
- Rx-pin to 6
- vcc to +5v/3v3
- GND to GND
GSM Module :
- Rx-pin to Tx
- Tx-pin to Rx
- Vinterface-pin to +5v
- Vin-pin to +5v
- GND to GND
LCD :
LCD is only for our convenience, otherwise not needed.
- rs-pin to 2
- rw-pin to 3
- enable-pin to 4
- D4-pin to 10
- D5-pin to 11
- D6-pin to 12
- D7-pin to 13
Final Assembly and Programming
- Assemble the different modules as I did for making GrayBOX compact.
- Insert SIM card in GSM module.
- Connect FTDI to the microcontroller board (only if using custom microcontroller board, otherwise directly upload the code to arduino board) and upload the given code.
In case of suggestion or doubt feel free to contact. You are always welcome :-)
Email ID- usav.swapnil@gmail.com