Shubham Shinganapure
Published © CC BY-NC-SA

How to Make a Smart Central Lock System for Motorcycle

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

IntermediateFull instructions provided3 hours1,636
How to Make a Smart Central Lock System for Motorcycle

Things used in this project

Hardware components

Arduino Nano R3
Arduino Nano R3
×1
HC-05 Bluetooth Module
HC-05 Bluetooth Module
×1
Relay (generic)
×2
General Purpose Transistor NPN
General Purpose Transistor NPN
×3
Resistor 1k ohm
Resistor 1k ohm
×2
1N4007 – High Voltage, High Current Rated Diode
1N4007 – High Voltage, High Current Rated Diode
×6
Linear Regulator (7805)
Linear Regulator (7805)
×1
Capacitor 1000 µF
Capacitor 1000 µF
×2

Software apps and online services

Arduino IDE
Arduino IDE

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)
Solder Wire, Lead Free
Solder Wire, Lead Free
Solder Flux, Soldering
Solder Flux, Soldering
Multitool, Screwdriver
Multitool, Screwdriver
Mastech MS8217 Autorange Digital Multimeter
Digilent Mastech MS8217 Autorange Digital Multimeter

Story

Read more

Schematics

BT Central Lock ckt

Code

BT Central Lock

Arduino
//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;
   }
  }
  }   

    
    
  
  

Credits

Shubham Shinganapure

Shubham Shinganapure

11 projects • 34 followers
I am an Electronics Engineer and hobbyist. Love to work with Machines.

Comments

Add projectSign up / Login