How To Make a DIY SmartPhone Control Car
Hello friends, today we are going to make a mobile controlled Bluetooth car. You can control this car from any smart mobile laptop or tablet.
To make this car, we used some electronics modules, the list of which you will find below.
- Arduino Uno – https://amzn.to/3yWQBU0
- L298N Motor Drive – https://amzn.to/4cmYUH0
- HC 04 Bluetooth Module – https://amzn.to/45nOBAp
- 12v Battery – https://amzn.to/3xmS1qz
- 4x Weel – https://amzn.to/3KIotXx
- Car Frame – https://amzn.to/3Vo1C8p
- Jumper Wires –
This is the circuit diagram of this car, you have to do its wiring by looking at it.
After this, you have to connect Arduino to your mobile or your laptop and download Arduino software in it. If you want to upload the code from mobile, then you have to download the App named Arduinodroid and enter the code given below. have to upload it to arduino
Copy Code And Upload –
char t; void setup() { pinMode(13,OUTPUT); //left motors forward pinMode(12,OUTPUT); //left motors reverse pinMode(11,OUTPUT); //right motors forward pinMode(10,OUTPUT); //right motors reverse pinMode(9,OUTPUT); //Led Serial.begin(9600); } void loop() { if(Serial.available()){ t = Serial.read(); Serial.println(t); } if(t == 'F'){ //move forward(all motors rotate in forward direction) digitalWrite(13,HIGH); digitalWrite(11,HIGH); } else if(t == 'B'){ //move reverse (all motors rotate in reverse direction) digitalWrite(12,HIGH); digitalWrite(10,HIGH); } else if(t == 'L'){ //turn right (left side motors rotate in forward direction, right side motors doesn't rotate) digitalWrite(11,HIGH); } else if(t == 'R'){ //turn left (right side motors rotate in forward direction, left side motors doesn't rotate) digitalWrite(13,HIGH); } else if(t == 'W'){ //turn led on or off) digitalWrite(9,HIGH); } else if(t == 'w'){ digitalWrite(9,LOW); } else if(t == 'S'){ //STOP (all motors stop) digitalWrite(13,LOW); digitalWrite(12,LOW); digitalWrite(11,LOW); digitalWrite(10,LOW); } delay(100); }
After the code is uploaded, you have to download “Arduino Car” app, connect the car through Bluetooth and also you can drive this car through Bluetooth.
1 thought on “How To Make a DIY SmartPhone Control Car”