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
Best place where you can get solution
I am very happy with this page
Thanks for your precious comment.
i would like to know about this. please give me your gmail and phone number if possible.
you can reach us on diyhack007@gmail.com
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…?
search arduino bluetooth rc car on play store.