Header Ads Widget

How to make a Bluetooth control car using Arduino at home in Telugu

Hey guys, in this article we learn about how to make Bluetooth control car using Arduino . now lets know about what are the components required to do this Bluetooth control car using Arduino  .

Components for Bluetooth control car using Arduino :

Amazon Links :

1 .Arduino                               BuyNow

3.arduino chassis                    BuyNow

4.L298N Motor driver            BuyNow

5. HC-5 Bluetooth module     BuyNow

6. wires and breadboard         BuyNow

quartaz components links:

1 .Arduino                               BuyNow

3.arduino chassis                    BuyNow

4.L298N Motor driver            BuyNow

5. HC-5 Bluetooth module     BuyNow

6. wires and breadboard         BuyNow


If you want to buy Arduino components, I am giving my affiliate links. If you buy the components using my affiliate links, it will help to our channel and website growth. so do these small help.

making video:

watch the below video for batter understand about this project.



 Bluetooth control car using Arduino Circuit diagram:

connect the all the components as shown in the below circuit.



 Bluetooth control car using Arduino code : 

int m1a = 9;
int m1b = 10;
int m2a = 11;
int m2b = 12;
char val;

void setup() 
{  
pinMode(m1a, OUTPUT);  // Digital pin 10 set as output Pin
pinMode(m1b, OUTPUT);  // Digital pin 11 set as output Pin
pinMode(m2a, OUTPUT);  // Digital pin 12 set as output Pin
pinMode(m2b, OUTPUT);  // Digital pin 13 set as output Pin
Serial.begin(9600);
}

void loop()
{
  while (Serial.available() > 0)
  {
  val = Serial.read();
  Serial.println(val);
  }

  if( val == 'F') // Forward
    {
      digitalWrite(m1a, HIGH);
      digitalWrite(m1b, LOW);
      digitalWrite(m2a, HIGH);
      digitalWrite(m2b, LOW);  
    }
  else if(val == 'B') // Backward
    {
      digitalWrite(m1a, LOW);
      digitalWrite(m1b, HIGH);
      digitalWrite(m2a, LOW);
      digitalWrite(m2b, HIGH); 
    }
  
    else if(val == 'L') //Left
    {
    digitalWrite(m1a, LOW);
    digitalWrite(m1b, LOW);
    digitalWrite(m2a, HIGH);
    digitalWrite(m2b, LOW);
    }
    else if(val == 'R') //Right
    {
    digitalWrite(m1a, HIGH);
    digitalWrite(m1b, LOW);
    digitalWrite(m2a, LOW);
    digitalWrite(m2b, LOW); 
    }
    
  else if(val == 'S') //Stop
    {
    digitalWrite(m1a, LOW);
    digitalWrite(m1b, LOW);
    digitalWrite(m2a, LOW);
    digitalWrite(m2b, LOW); 
    }

If you have any doubts regarding to this project, contact me on Instagram or comment on YouTube video. I will help with my best.

Post a Comment

0 Comments