• Team: UIU Durbango
  • Course: Electronics Laboratory (A)
  • Position : Participant 193
  • Teacher : Md. Abir Hassan
  • TA: Azim
  • YouTube

Projects Title

Fusion-(vehicle security)


Team Members

# Full Name Student Id Email
1 Chamak Paul 011 173 044 chamakpaul5@gmail.com
2 Md. Badrul Amin 011 122 071 badrul.aminporag@gmail.com
3 Tazin Ferdousi Hossain 011 173 042 oiyshwarja03@gmail.com
4 Ahmed Ali Md. Sibgatallah 011143044 shreshtho329@gmail.com

Project Description


So, we are basically tried to make a project based on vehicle security system where checking authorized access is the major work. Nowadays car or public transport is the most important transport for people. Car is an automobile for human to move one destination to another destination. Due to the complex’ designs that consist of many part, the price of the car is expensive. There are many cases or reports due to the car theft and it keep increase time by time. Therefore there are many ways that have been taken by car owner to protect the car from being stolen or hijacked. Hence, every vehicle it is important to have or install a security system. An early version of a car alarm for use as a theft deterrent was invented by an unknown prisoner from Denver in 1913.[1] This version was manually armed, and triggered when someone tried to crank the engine. A later alarm inspired by an early version of a remote starter was published in 1916.[2] This version had the car owner carry a receiver, which would buzz if the car ignition system was tampered with. In this project, we tried to make a system which can authorize access of vehicle to authorized driver and also warn to prevent smoking in a vehicle as a health awareness issue. 

Applications


The purpose of this project was to ensure the security in vehicles.This device was mainly designed for using in the public transports.This device can only give driving access to a selected few.The vehicle won’t start until the driver is not among the selected few.Driver is identified using RFID tag.This device can detect smoking. If the driver is smoking while driving it will give a warning tell him to stop smoking.Most of the people are not okay with smoking and it is even more annoying in public transports. so this device can help reducing thing this problem.Since not everyone can have access to driving it can also reduce vehicle theft. Accidents will also cause less if only experienced drivers are allowed to drive the vehicle.Now-a-days most of the people in Bangladesh use public transport in their day to day life,so this device can be helpful to ensure their safety and security. 

Components


Components list of our electronics project are given below. 

  1. Arduino UNO
  2. GSM Module
  3. Wire
  4. LED
  5. Power Cable for arduino
  6. Plastic wood
  7. Anti cutter
  8. Glue stick
  9. Sensor
  10. Servo motor ,
  11. Buzzer,
  12. Speaker,
  13. LCD display
  14. Breadboard
  15. Switch 2types
  16. Sim Card
  17. Battery

Budget


Budget list and component price are given below. 

Component NamePriceComponent Name Price
Arduino UNO400Sensor300
GSM Module1100Servo motor/Buzzer/speaker/LCD display400
Wire 105Breadboard70
LED 10Switch30
Power cable (arduino)10

Plastic wood100

Anti cutter 40

Glue Stick60



Diagram



Source Code


#include <Arduino.h>
#include <LiquidCrystal.h>

#include <SPI.h>
#include <MFRC522.h>
#include <Servo.h>

LiquidCrystal lcd(A0, A1, 5, 4, 3, 2);
int greenLed = 11;
int buzzer = 7;
int smokeA0 = A5;
// Your threshold value
int sensorThres = 400;

int red = 2;
//int green = 7;
int buz = 8;
#define SS_PIN 10
#define RST_PIN 7

#define SERVO_PIN 6
Servo myservo;
int pos = 0; 
#define ACCESS_DELAY 2000
#define DENIED_DELAY 1000
MFRC522 mfrc522(SS_PIN, RST_PIN);   // Create MFRC522 instance.
 
void setup() 
{    
      
      lcd.begin(16, 2);
      pinMode(red, OUTPUT);
      //pinMode(green, OUTPUT);
      pinMode(buz, OUTPUT);

      //gas sensor part..
      pinMode(buzzer, OUTPUT);
      pinMode(smokeA0, INPUT);
    
  Serial.begin(9600);   // Initiate a serial communication
  SPI.begin();          // Initiate  SPI bus
  mfrc522.PCD_Init();   // Initiate MFRC522

  myservo.attach(SERVO_PIN);
  //myservo.write( 180 );
  //delay(3000);
  myservo.write( 0 );
  Serial.println("Put your card to the reader...");
  Serial.println();
  lcd.print("Show your card");
          delay(5000);                                    
          lcd.clear();
          delay(500);

}
void loop() 
{           lcd.print("Show your card");
             delay(500);                                    
            lcd.clear();
            delay(500); 


  
            //gas sensor start here;
            int analogSensor = analogRead(smokeA0);
          
            Serial.print("Pin A0: ");
            Serial.println(analogSensor);
            // Checks if it has reached the threshold value
            if (analogSensor > sensorThres)
            {
              tone(buzzer, 1000, 200);
              lcd.print("Stop smoking");
             delay(5000);
             lcd.clear();
             //delay(500);
            }
            else
            {
              noTone(buzzer);
            }
            delay(100);
  
  // Look for new cards
  if ( ! mfrc522.PICC_IsNewCardPresent()) 
  {
    return;
  }
  // Select one of the cards
  if ( ! mfrc522.PICC_ReadCardSerial()) 
  {
    return;
  }
  //Show UID on serial monitor
  Serial.print("UID tag :");
  String content= "";
  byte letter;
  for (byte i = 0; i < mfrc522.uid.size; i++) 
  {
     Serial.print(mfrc522.uid.uidByte[i] < 0x10 ? " 0" : " ");
     Serial.print(mfrc522.uid.uidByte[i], HEX);
     content.concat(String(mfrc522.uid.uidByte[i] < 0x10 ? " 0" : " "));
     content.concat(String(mfrc522.uid.uidByte[i], HEX));
  }
  Serial.println();
  Serial.print("Message : ");
  content.toUpperCase();
  if (content.substring(1) == "9A F5 8F 07") //change here the UID of the card
        {
             
             lcd.print("Authorized access");
             delay(1000);
             lcd.clear();
             delay(500);
         // digitalWrite(green,HIGH);
                
                Serial.println("Authorized access");
                Serial.println();
                               for (pos = 0; pos <= 90; pos += 1) { // goes from 0 degrees to 180 degrees
                                          // in steps of 1 degree
                                    myservo.write(pos);              // tell servo to go to position in variable 'pos'
                                    delay(15);      
                                    //Serial.println("Authorized access");// waits 15ms for the servo to reach the position
                        }
                        delay(4000);
                               for (pos = 90; pos >= 0; pos -= 1) { // goes from 180 degrees to 0 degrees
                                     myservo.write(pos);              // tell servo to go to position in variable 'pos'
                                    delay(15);       
                                    //Serial.println("Authorized access");// waits 15ms for the servo to reach the position
                  }
                  
                  //myservo.write( 0 );
        // myservo.write( 180 );
        // delay(3000);
       //myservo.write( 0 );
       //digitalWrite(green,LOW);
      
      
        }
        
 
 //else if(content.substring(1) == "9A F5 8F 07")
        else{

        lcd.print("Access Denied");
          delay(1500);
          lcd.clear();
          delay(500);
        digitalWrite(red,HIGH);
        digitalWrite(buz,HIGH);
           
          Serial.println(" Access denied");
          Serial.println();
          delay(DENIED_DELAY);
          digitalWrite(red,LOW);
        digitalWrite(buz,LOW);
          
        }
           
}

Challenges


• Time management issues
• Lack of team work
• Group member absence
• Equipment damage issue like GSM Module and others
• Coding Problem
• While buying the equipment had to go many places
• On project show day, one of our member forgot to carry RFID tags, LIPO and laptop.

Additional