Smart Bike Arduino Project with Bluetooth

When we think about technology which makes easy and interesting everything around us. Our phone also upgrading us as well as other technology. Now we can control many things with our Mobile phones so, by this Smart Bike Arduino Project with Bluetooth we can control the bike, home appliances.  and this could be possible with the embedded technology which grows day by day and makes many things for helping us.

Today we are going to make a mobile phone control system for our bike. this system can be used in any place. it is controlled by the Android app with the Bluetooth connection so you need to learn the Smart Bike Arduino Project with Bluetooth for making this system. in this article, we are going to make this system step by step. so we need a wireless connection with the mobile phone and the system.
Smart Bike Project with Arduino and bluetooth image
when we talk about wireless communication a name Bluetooth come in our mind.in this Smart Bike Project with Arduino and Bluetooth. there is much wireless communication method like wi-fi, li-fi etc. but in this project, we will use Bluetooth module . now we understood the need for our phone it should have Bluetooth to connect with the system.
and now we will talk about the system. actually, the system also consist of Bluetooth which connect with the app.  and there will be data transfer from one Bluetooth to another Bluetooth in the encoded form. bluetooth HC-05 module can be used in this communication. so, let’s start with the projects step by step.

Component Required for Smart Bike Arduino Project with Bluetooth

  • Arduino Nano
  • Bluetooth Module HC-05
  • 4-Channel Relay Module
  • The 1-single channel relay module
Software Required
  • Arduino IDE
  • Android BT Apk
1. Arduino Nano:-
Arduino has 14 GPIO pin. which can we use as input and output pins? to make this project you should learn basic of Arduino. you can make many projects with this Arduino board. today we will make a Smart Bike Arduino Project with Bluetooth.

 

2. Bluetooth Module HC-05
Bluetooth module HC-05 is widely used in embedded projects. it connects with the Tx, Rx pin. and very easy to use this module with any controller. and compatible with AVR, 8051, Arduino etc.
Circuit Diagram Smart Bike Arduino Project with Bluetooth
Circuit Diagram Smart Bike Arduino Project with Bluetooth

For 12v you can connect with bike battery direct and for 5v volt connect a dc to dc converter or a buck converter to reduce 12v to 5v volt.

  • Connect Arduino Nano Rx with Hc-05 Rx
  • Connect Arduino Nano Tx with Hc-05 Tx
  • Connect Arduino Nano D2 with Relay IN1
  • Connect Arduino Nano D3 with Relay IN2
  • Connect Arduino Nano D4 with Relay IN3
  • Connect Arduino Nano D5 with Relay IN4
  • Connect Arduino Nano D6 with Relay IN5

Working of Smart Bike Arduino Project with Bluetooth:-

 

Install Arduino BT controller in your phone. connect it to the System Bluetooth. now,  there are some buttons in the app. When you press any button it transmits some value to the system Bluetooth. and in the system, there is some database in the Arduino. Arduino compares the received data with the saved data. according to that data, the Arduino Give the instruction to the Relay module. On this Principle, we have made Bluetooth Control RC car and Smart Bike Project

 
 
Code for Bluetooth Control project with Arduino for bike:-
int m=0;  
 
  void setup() 
  {
                              // put your setup code here, to run once:
  Serial.begin(9600);
  pinMode(2,OUTPUT);
  pinMode(3,OUTPUT);
  pinMode(4,OUTPUT);
  pinMode(5,OUTPUT);
  pinMode(6,OUTPUT);
  }
 
void loop() 
  {
                            // put your main code here, to run repeatedly:
 if(Serial.available()>0)
  {
    m= Serial.read();
    Serial.println(m);
   
    
    if(m==97)                              //instruction for head light <start>1
    {
    digitalWrite(2,HIGH);  
    }
 
  else if (m==98)
  {
   digitalWrite(2,LOW);                  
  }                                        // <end>
 
 
  
  else if (m==99)                          //instruction for head light blink effect <start>2
  {
  digitalWrite(3,HIGH);
  delay(200);
  digitalWrite(3,LOW);
  delay(200);
  }
 
  else if (m==100)
  {
  digitalWrite(3,LOW);
  }                                        //<end>
 
  
  
  else if (m==101)                         //instruction for tail light <start>3
  {
  digitalWrite(4,HIGH);
  }
 
  else if (m==102)
  {
  digitalWrite(4,LOW);
  }                                       //<end>
 
  else if (m==103)                        //instruction for left indicator <start>4
  {
  while(1)
  {  
  digitalWrite(5,HIGH);
  delay(300);
  digitalWrite(5,LOW);
  delay(300); 
  m= Serial.read();
  if(m==104)
  {
   break;
  }
  } 
  }                                     
 
  else if (m==104)
  {
  digitalWrite(5,LOW);
  }                                        //<end>
 
  else if (m==105)                         //instruction for right indicator <start>5
  {
  while(1)
  {  
  digitalWrite(6,HIGH);
  delay(300);
  digitalWrite(6,LOW);
  delay(300); 
  m= Serial.read();
  if(m==106)
  {
  break;
  }
  } 
  }
  
  else if (m==106)
  {
  digitalWrite(6,LOW);
  }                                        //<end>
 
 
  else if (m==107)                         //instruction for head light & blink effect<start>
  {
  digitalWrite(2,HIGH);  
  digitalWrite(3,HIGH);
  }
 
  else if (m==108)
  {
  digitalWrite(2,LOW);  
  digitalWrite(3,LOW);
  }                                        //<end>
  else if (m==109)                         //instruction for head light && blink effect && tail light  <start>
  {
  digitalWrite(2,HIGH);  
  digitalWrite(3,HIGH);
  digitalWrite(4,HIGH);
  }
 
  else if (m==110)
  {
  digitalWrite(2,LOW);  
  digitalWrite(3,LOW);
  digitalWrite(4,LOW);
  }                                       //<end>
 
 
  else if (m==111)                        //instruction for both indicator indicator<start>                     
  {
  while(1)
  {  
  digitalWrite(5,HIGH);  
  digitalWrite(6,HIGH);
  delay(300);
  digitalWrite(6,LOW);
  digitalWrite(5,LOW);
  delay(300); 
  m= Serial.read();
  if(m==112)
  {
  break;
  }
  } 
  }                                        //<end>
 
  else if (m==113)                        //instruction for all lights <start>
  {
  digitalWrite(2,HIGH);  
  digitalWrite(3,HIGH);
  digitalWrite(4,HIGH);
  digitalWrite(5,HIGH);
  digitalWrite(6,HIGH);
  }
 
  else if (m==114)
  {
  digitalWrite(2,LOW);  
  digitalWrite(3,LOW);
  digitalWrite(4,LOW);
  digitalWrite(5,LOW);
  digitalWrite(6,LOW);
  }
  }
  }                                          //<end>
 
Copy this code in Arduino IDE and upload it to the Arduino Nano. make all connections according to the circuit diagram.
Download Arduino BT controller from Play store and connect to the the Bluetooth HC-05 with 0000 passwords.  all the best.
Smart Bike Arduino best electronic Projects with Bluetooth/smart bike projects for engineering/smart bike embedded projects/ Bluetooth control bike with Arduino/ Bluetooth control bike project/ mobile control bike projects

6 thoughts on “Smart Bike Arduino Project with Bluetooth

  • June 19, 2019 at 4:00 am
    Permalink

    i would like to know about this. please give me your gmail and phone number if possible.

    Reply
  • June 19, 2019 at 11:31 am
    Permalink

    i use this code for develop arduino program but
    i can’t find arduino bt controller apk on play store….
    other app download but not working…
    can you send me play store link of arduino bt controller apk …so it will help me to work…
    send me on my whatsapp number +919924869458….
    pls help me
    its really nice …code also successful but apk…?

    Reply
    • June 22, 2019 at 2:16 am
      Permalink

      search arduino bluetooth rc car on play store.

      Reply

Leave a Reply

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