Project tutorial
How to Make a Smart Central Lock System for Motorcycle

How to Make a Smart Central Lock System for Motorcycle © CC BY-NC-SA

It feels awesome when you have the power to control things remotely.

  • 748 views
  • 0 comments
  • 6 respects

Components and supplies

Necessary tools and machines

Apps and online services

About this project

Smart Central lock device for motorcycle (bike). by using this device you can control your bikes ignition lock. you can Lock/ unlock it remotely. Also can start and stop the engine by using your smartphone. So let's see how you can make one by yourself.

you need all the above mentions components to make this device.

now first solder all the components as per the circuit diagram on a prototype PCB. or you can design custom PCB as per the given circuit diagram. I recommend PCBWay.com for your prototype PCB fabrication.

lets understand the circuit. starts from the input power supply. it needs 12volt DC power supply to operate. I added a Diode Bridge here to protect this circuit from reverse polarity. after that bridge, I Stepped down the voltage into 5 volts by using a linear voltage regulator IC LM7805. then its feed to Arduino nano and to the Bluetooth module. Bluetooth module connected with Arduino using Tx & Rx pins As Bluetooth's Tx pin goes to Arduino's Rx pin And Bluetooth's Rx pin goes to Arduino's Tx pin. transistor T1 And T2 Acting As Switch To control the Relay RLY1 & RLY2 respectively. the base of the transistor T1 is connected with the digital pin 5 of Arduino through a current limiting resistor of 1k. and the base of T2 is connected to digital pin 4 of Arduino.

After soldering All components. insert the Arduino nano to it and connect it with PC and upload the given program.

//program by Shubham Shinganapure on 26-10-2019
//
//for Blutooth Central Lock device.
int LCK=4; //left motor output 1
int SLF=5; //left motor output 2
char d=0;
int FLG=0;
void setup()
{
pinMode(LCK,OUTPUT);
pinMode(SLF,OUTPUT);
Serial.begin(38400);
}
void loop()
{
if(Serial.available()>0)
{
d=Serial.read();
Serial.println(d);
if(d=='B')
{
digitalWrite(LCK,HIGH);
FLG=1;
}
if(d=='A' && FLG==1)
{
digitalWrite(SLF,HIGH);
}
else
{
digitalWrite(SLF,LOW);
}
if(d=='C')
{
digitalWrite(LCK,LOW);
digitalWrite(SLF,LOW);
FLG=0;
}
}
}

now connect the Bluetooth module with the circuit.

and solder all other wires For power input and to the output pins of the relay for starter and ignition control of the bike.

fit this all circuit assembly inside of an encloser box and close it. I am using a box made up from cardboard.

now its time to install it on a motorcycle. I installing it into my Hero Splendor Plus bike. the wiring diagram provided with this tutorial is tested with only Hero Splendor Plus, Hero Splendor Pro, Hero CD Delux. I am not sure if this wiring work with other bikes. to install it on other bikes rather than above mentioned you need to find out a starter relay of bike and pinouts of it. as well the ignition switch wiring of that bike on which you wish to install this device.

Let, s See how to install it on Hero Splendor Plus

Open battery cover And Seat. and put this device in a suitable position where you find enough space for it.

now combine yellow, Green and Red wire and connect them to the positive terminal of the battery. find the flasher relay. it is usually placed near to the battery bellow seat.

grab that 2 terminal relay and disconnect it from its wire harness. now connect ignition relay wire from our device that is yellow wire to the positive terminal of this connector. now a question arises here, that how to find out which one is the positive terminal? so to find out that take a piece of wire connect it's one end to the positive terminal of the battery and touch the other end of the wire to both ends of the relay harness. The ignition will be on when the second end of the wire is at any one terminal of the relay harness. The point at which the ignition is on is the positive point of the relay. now connect the yellow wire to that point and put back the flasher relay.

now connect the starter relay wire. for that search for start relay. in my case, it is placed under the fule tank. just remove it and find out the positive terminal of this relay also. now to find out this take a 12volt bulb attach one end of bulb to the negative terminal of the battery and second end of it to one of the ends of start relay harness. and press start button of bike. remember that while testing this you should have to turn on ignition using your keys. now on which point of relay harness bulb will glow that is the target point. now connect green wire into that point and insert back the start relay. and fix it on its position. now all done.

note: if you are not familiar with bike/motorcycle wirings please don't try it without the help of any bike mechanic. wrong wiring can burn your bike.

install the application from the given link. click here

turn on Bluetooth, search for new device, click on HC-05. enter 1234/0000 if it asks for a password. 1234/0000 is the default password for HC-05, you can change this password by changing its setting. to know more about the Bluetooth module setting visit my previous tutorial. if you still not understand how to change that setting let me know in the comment box and I will make a short note on how to change the Bluetooth setting.

once you connected with device you are ready to operate Lock/Unlock ignition by sliding the switch on the app.

Hope you find this useful. if yes, like it, share it, comment your doubt. For more such projects, follow me! Support my Work and Subscribe to My Channel on YouTube.

Thank you!

Code

BT Central LockArduino
//program by Shubham Shinganapure on 26-10-2019
//
//for Blutooth Central Lock device.  

int LCK=4; //left motor output 1
int SLF=5; //left motor output 2


 char d=0;
 int FLG=0;

void setup()
{
  pinMode(LCK,OUTPUT);
  pinMode(SLF,OUTPUT);

  Serial.begin(38400);
 
}
void loop()
{
  if(Serial.available()>0)
  {
    d=Serial.read();
  Serial.println(d);
  if(d=='B')
  {
   digitalWrite(LCK,HIGH);
   FLG=1;
   }
   if(d=='A' && FLG==1)
  {
   digitalWrite(SLF,HIGH);
   }
  else
  {
   digitalWrite(SLF,LOW);
   }
 
 if(d=='C')
  {
   digitalWrite(LCK,LOW);
   digitalWrite(SLF,LOW);
   FLG=0;
   }
  }
  }   

    
    
  
  

Schematics

BT Central Lock ckt
Bt central lock jd3xr72jvf

Comments

Similar projects you might like

An Alternate RFID Key for Bike Security

Project tutorial by Shubham Shinganapure

  • 2,447 views
  • 0 comments
  • 8 respects

Biometric Sensor in Motorcycle Hornet

Project tutorial by 4 developers

  • 9,694 views
  • 42 comments
  • 76 respects

RF BASED SMART HOME AUTOMATION SYSTEM

by Dennis Mwanza

  • 34,055 views
  • 5 comments
  • 51 respects

Arduino Controlled Smart Hydroponic Modular System

Project in progress by Luis Antonio Martin Nuez

  • 19,914 views
  • 4 comments
  • 98 respects

How to Make a Gesture Control Robot at Home

Project tutorial by Shubham Shinganapure

  • 5,181 views
  • 11 comments
  • 42 respects

Smart BT Lock with Custom Number

Project tutorial by jegatheesan

  • 4,470 views
  • 2 comments
  • 22 respects
Add projectSign up / Login