MEVIHUB

LOCKING AND UNLOCKING OF THEFT VEHICLES USING Arduino

Preventing vehicle theft is causing a stir in today’s auto industry. The design and development of a theft control system for a car can be accomplished by making use of the GPS function of the mobile phone. The developed system makes use of a mobile phone that is integrated into the vehicle with an interface with the Engine Control Module (ECM) via gsm. The stolen vehicle can be stopped using the GPS function of the mobile phone and the vehicle owner uses this information for future processing.

The owner sends the message to the mobile that is embedded in the vehicle that he has stolen, which in turn controls the vehicle’s engine, blocking the operation of the engine immediately. The developed system accepts the message and transmits it to the vehicle network via gsm. Only the vehicle owner can unlock the engine by sending the message again. The goal behind the design is to develop vehicle safety and an integrated system for communicating with the vehicle’s engine.


This project uses a regulated 5V 500mA power supply. The 7805 and 7812 three-terminal voltage regulators are used to regulate voltage. The bridge type full wave rectifier is used to rectify the secondary AC output of the 230 / 12v step-down transformer.

Software :
Hardware :
BLOCK DIAGRAM:
Arduino Uno

Arduino Uno is a microcontroller board based on ATmega328P (datasheet). It has 14 digital input/output pins (of which 6 can be used as PWM outputs), 6 analog inputs, a 16 MHz ceramic resonator (CSTCE16M0V53-R0), a USB connection, a power connector, an ICSP header, and a reset button. . It contains everything necessary to support the microcontroller; just plug it into a computer with a USB cable or power it up with an AC-to-DC adapter or battery to get started. You can play with your Uno without worrying too much about doing something wrong, in the worst case you can replace the chip for a few dollars and start over.

“Uno” means one in Italian and was chosen to mark the release of Arduino Software (IDE) 1.0. The Uno board and version 1.0 of the Arduino software (IDE) were the reference versions of Arduino, now evolved to newer versions. The Uno board is the first in a series of Arduino USB boards and the reference model for the Arduino platform; For an extensive list of current, outdated, or outdated boards, check out the Arduino Board Index.

Tech specs
SIM800L GSM Module 

The SIM800A quad-band GSM / GPRS module with RS232 interface is a complete quad-band GSM / GPRS solution in an LGA (Land grid array) type that can be integrated into customer applications. SIM800A supports band rate 850/900/1800/1900 MHz, it can transmit voice, SMS and data information with low power consumption.

With a small size of 100 x 53 x 15mm, it can accommodate the slim and compact demands of custom design. An integrated AT, enables total cost savings and fast time to market for customer applications.

The SIM800A modem has a GSM SIM800A chip and RS232 interface while allowing easy connection to the computer or laptop using the USB to Serial connector or to the microcontroller using the RS232 to TTL converter. Once you connect the SIM800A modem using the USB to RS232 connector, you must find the correct COM port in the Device Manager of the USB to Serial Adapter.

You can then open Putty or any other terminal software and open a connection to that COM port at 9600 baud, which is the default baud rate for this modem. Once a serial connection is opened through the computer or your microcontroller, you can start sending the AT commands. When you send AT commands, for example, “AT”, you should receive a reply from the SIM800A modem saying “OK” or another reply depending on the command sent.

Application : 

Features :

Specifications
Final Code

/////////LOCKING AND UNLOCKING OF THEFT VEHICLES USING Arduino ////

#include <SoftwareSerial.h>
#include <LiquidCrystal.h>


SoftwareSerial mySerial(8, 9);
const int m1 = 11;
const int m2 = 12;
const int buzzer = 13;
const int IR_SENSOR1 = 3;
const int IR_SENSOR2 = 4;

LiquidCrystal lcd(14, 15, 16, 17, 18, 19);
int buttonState1 = 0;
int buttonState2 = 0;
void setup()
{

  pinMode(IR_SENSOR1, INPUT);
  pinMode(IR_SENSOR2, INPUT);
  mySerial.begin(9600);
  Serial.begin(9600);
  pinMode(12, OUTPUT);
   pinMode(11, OUTPUT);
   pinMode(13, OUTPUT);
   
     lcd.setCursor(0, 0);
lcd.println("WATER RESERVOIER ");

  
}
void loop()
{
  buttonState2 = digitalRead(IR_SENSOR1);
  buttonState1 = digitalRead(IR_SENSOR2);
lcd.setCursor(0, 1);

  
  if (buttonState1 == LOW && buttonState1 == LOW )
  {



    Serial.println("sending message..");
    mySerial.println("AT+CMGF=1");    //select text mode
    delay(10);
    mySerial.println("AT+CMGS=\"99xxxxxxxx\"\r");  // enter receipent number
    Serial.println();
    digitalWrite(buzzer,HIGH);
    delay(1000);
    mySerial.println("WATER LEVEL IG HIGH GATE OPEN");// The SMS text you want to send
    mySerial.println("            ");// The SMS text you want to send

    mySerial.println((char)26);// ASCII code of CTRL+Z
    lcd.setCursor(0,1);
    lcd.println("HIGH WATER   msg sent");   
    
    Serial.println("sent...");
    digitalWrite(11,HIGH);
    digitalWrite(12,LOW);
    delay(2000);


  }

     if (buttonState1 == HIGH && buttonState1 == HIGH )
  {



    lcd.println("LOW WATER...     ");   
    Serial.println("LOW WATER...     ");
    digitalWrite(12,HIGH);
    digitalWrite(11,HIGH);


  }

  else

  { 
    lcd.setCursor(0, 0);
    lcd.print("WATER RESERVOIER ");
    digitalWrite(m1,LOW);
    digitalWrite(m2,LOW);
    
  }
}

Exit mobile version