Arduino Projects

Unlock my car with my phone, Start engine, Start A/C, Anti theft using Arduino

Unlock my Car with my Phone Project Description:

 

Unlock my car with my phone, Start the engine, Start A/C, and Anti-theft using Arduino- In this tutorial, I will show you how to control your car wirelessly using your android cell phone. In this tutorial, you will also learn how to protect your car from being stolen. This project is based on an atmega328 microcontroller, the same microcontroller which is used in Arduino and HC-05 or HC-06 Bluetooth module. I named this project a Bluematic car, a car that can be controlled using an android cell phone, and Bluetooth.

I also have an article on the Bike Anti-theft system in which I used the RFID technology and practically demonstrated everything.


You can also watch a video Tutorial given at the end of this Article. Without any further delay let’s get started!!!

Amazon Links:

Bluetooth Module: Hc-05:

12v Adaptor:

Arduino Uno

Arduino Nano

Mega 2560:

Atmega328 micro controller:

16Mhz crystal:

22pf capacitors:

10k Resistor:

10uf capacitors:

1n4007 diode:

10k Resistor:

2n2222 NPN transistor

12V SPDT Relay:

8 channel Relay Module

Other Tools and Components:

Top Arduino Sensors:

Super Starter kit for Beginners

Digital Oscilloscopes

Variable Supply

Digital Multimeter

Soldering iron kits

PCB small portable drill machines

DISCLAIMER:

Please Note: these are affiliate links. I may make a commission if you buy the components through these links. I would appreciate your support in this way!



Bluematic Car:

I named this project as the Bluematic Car. Bluematic car is an app designed for the security of your Car. Bluematic car allows you to operate your car without even touching it. it has a number of features including, anti-theft, Ignition and doors unlocking, in case you forget your keys inside the car or you lose your keys while the car is locked, do not panic, take out your cell phone and using your cell phone you can unlock the doors.

By enabling the anti-theft function nobody can start your car even if he has a key to do so. if you suspect anyone near your car, you can horn to scare the people away. This project is designed in such a way that even if someone removes the battery terminals, the car won’t reset, that’s how efficiently the anti-theft function works.

I have practically installed the circuit and it works perfectly

  • I can Unlock my car with my phone
  • I can start my car engine remotely using my cell phone
  • I can lock and unlock the doors.
  • I can turn on the car A/C using my android cell phone
  • I can enable my car anti-theft protection mode.


Now I can use my cell phone as the Car Key. This Car project really helped me to control and protect my car and I believe every car owner should make this project. If you follow this article completely you will be able to design your own car automation system using Arduino and a Bluetooth module. Or you can use my designed PCB to reduce the project cost. It’s just like the Arduino as I am using the same microcontroller “Atmega328”.

Block Diagram of the Arduino Bluetooth Controlled Car

Unlock my car with my Phone

SOFTWARES USED:

  1. SolidWorks for 3D designing
  2. Arduino Uno IDE for programming
  3. Proteus simulation for basic circuit checking to confirm connections
  4. Eclipse for android application designing.
  5. Cadsoft eagle for PCB designing.


We tried to design this project according to the market requirements, for this purpose before building the hardware, first, we designed our hardware in 3d software called SOLIDWORKS. This designing really helped us in understanding the dimension of the components and then using these components within the defined area. for the complete hardware design, we had to make each and every component. After the design was final. then we started performing some experiments on the Bluetooth interfacing and basic commands transferring. we defined the credentials like pin code and its baud rate. after we completed the circuit then we started the programming to check our hardware. for the programming, we used Arduino Uno IDE. The heart of our project is the Atmega328 microcontroller.  The Android software is highly secured as it needs pairing code, and the login password. In the android application, we also defined different passwords for all the features. This android application can not be used for other cars unless new passwords are defined. each and every car will have its own codes, in order to make it highly secured.

Bluetooth Car Control Circuit Diagram:

Unlock my car with my Phone

Unlock my car with my Phone

Bluetooth Car Control PCB DESIGN:

Unlock my car with my Phone


Hardware Picture:

Unlock my car with my Phone

Download the Original PCB board file: Bluetooth

SolidWorks design of the Bluetooth Car control system:

Unlock my car with my Phone

The SolidWorks designing really helped me in understanding the dimensions of all the components. It was due to the dimensions that I was able to place the components with precise accuracy. If you want to learn SolidWorks then you can visit my YouTube channel “Electronic Clinic”.

Download the APK file of the Car control App:

Download APK file: unlock my car apk

After you download and install the Bluematic car app in your cell phone. use the following credentials.

username: admin
password: fgrty

If you want to learn how to make your own Android cell phone application then read my article on “Unlock my car with my phone, Start the engine, Start A/C, Anti-theft using Arduino

Note: You can use the above cell phone App for free. The app source code is available only at 100 Dollars.

Arduino “Atmega328” Bluetooth Car Project Programming:

#include <SoftwareSerial.h>
SoftwareSerial Blue(0, 1);
long int data;

int relay1 = 5; // car switch ON
long int password1 = 98421615;// to on switch
long int password2 = 96951628;// to off switch

int relay2 = 6; // engin ON " this will turn on the switch for few seconds to turn on the engine, after the engine starts the switch is released again.
long int password3 = 74151525; // engine self on
long int password31 = 45614787; // engine self 0ff

int relay3 = 7; // doors open
long int password4 = 84515822;

int relay4 = 8; // doors close
long int password5 = 81426337;

// car A/C

int relay5 = 9;// for A/c
long int password6 = 86741749; // to turn on ac
long int password7 = 22241729; // to turn off A/c

// Horn

int relay6 = 10; // for horn
long int password8 = 34156469; // to turn the horn button

// PARKING LIGHTS

int relay7 = 11; // anti theft
long int password9 = 24127161; // to turn on anti theft
long int password10 = 48615369; // to turn off anti theft


char state = 0;


void setup()
{

pinMode(relay1, OUTPUT); 
digitalWrite(relay1, LOW);

pinMode(relay2, OUTPUT); 
digitalWrite(relay2, LOW);

pinMode(relay3, OUTPUT); 
digitalWrite(relay3, LOW);

pinMode(relay4, OUTPUT); 
digitalWrite(relay4, LOW);

pinMode(relay5, OUTPUT); 
digitalWrite(relay5, LOW);

pinMode(relay6, OUTPUT); 
digitalWrite(relay6, LOW);

pinMode(relay7, OUTPUT); 
//digitalWrite(relay7, LOW);
digitalWrite(relay7, HIGH);
delay(500);

// incase if the power from battery is disconnected and then connected again then the horn will on and off few times 

digitalWrite( relay6, HIGH);
delay(1000);
digitalWrite(relay6, LOW);
delay(500);
digitalWrite( relay6, HIGH);
delay(1000);
digitalWrite(relay6, LOW);
delay(500);
digitalWrite( relay6, HIGH);
delay(1000);
digitalWrite(relay6, LOW);
delay(500);


Serial.begin(9600);
Blue.begin(9600);

}

void loop()
{

  while(Blue.available()==0) ;

 if(Blue.available()>0) 
{
data = Blue.parseInt();


} 
//delay(100);
//Serial.print(data);

if (data == password1)
{
  digitalWrite(relay1,HIGH);
  Serial.println("Switch On");
  delay(1000);

   }
   
   if( data == password2)
   {
       digitalWrite(relay1,LOW);
  Serial.println("Switch OFF");
   }

   if( data == password3) // for self on
   {
       digitalWrite(relay2,HIGH);
  Serial.println("Self ON");
delay(200);
   }
     if( data == password31) // for self off
   {
       digitalWrite(relay2,LOW);
  Serial.println("Self OFF");
  delay(1000);
 
   } 
   
   if( data == password4) // for doors opening
   {
       digitalWrite(relay3,HIGH); // press button
  Serial.println("Doors Opened");
  delay(2000); // keep the switch pressed for 2 seconds
   digitalWrite(relay3,LOW); // release button
   }
   
      if( data == password5) // for doors opening
   {
       digitalWrite(relay4,HIGH); // press button
  Serial.println("Doors Closed");
  delay(2000); // keep the switch pressed for 2 seconds
   digitalWrite(relay4,LOW); // release button
   }
   
         if( data == password6) //to turn on a/c on
   {
       digitalWrite(relay5,HIGH); // press button
  Serial.println("A/c ON");
  delay(2000); 

   }
   
          if( data == password7) //to turn on a/c on
   {
       digitalWrite(relay5,LOW); // press button
  Serial.println("A/c OFF");
  delay(2000); 

   }
   
             if( data == password8) //to turn on and off horn switch
   {
       digitalWrite(relay6,HIGH); // press button
  Serial.println("Horn ON");
  delay(2000); // keep the switch pressed for 2 seconds
         digitalWrite(relay6,LOW); 
  Serial.print("Horn OFF");

   }
   
                if( data == password9) //to turn on anti theft
   {
       digitalWrite(relay7,HIGH); 
  Serial.println("Anti theft ON");
  delay(2000); 


   }
   
                   if( data == password10) //to turn off anti theft
   {
       digitalWrite(relay7,LOW); 
  Serial.println("Anti theft OFF");
  delay(2000);

   }

 }

For the complete explanation watch video tutorial given below.

At the end of this project, I was able to Unlock my car with my phone, I was also able to start the engine, open and close the doors, blow the horn, turn on the A/C, and activate the anti-theft mode. This project was a success, you can watch the practical demonstration in the following video.



Watch Video Tutorial:

Engr Fahad

My name is Shahzada Fahad and I am an Electrical Engineer. I have been doing Job in UAE as a site engineer in an Electrical Construction Company. Currently, I am running my own YouTube channel "Electronic Clinic", and managing this Website. My Hobbies are * Watching Movies * Music * Martial Arts * Photography * Travelling * Make Sketches and so on...

10 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button