How to make a modified Bluetooth control car with Arduino Nano

How to make a modified Bluetooth control car with Arduino Nano

Hello and welcome back. In this project, we will learn how to make a modified Bluetooth control car with Arduino Nano. For that, I have mainly used the Arduino nano board, L298N motor driver board, and HC-05 Bluetooth module. Also, I have designed a PCB(Printed Circuit Board) for this project. This PCB features two LED bulbs, perfect for headlights on our car, and makes it easy to connect the Arduino Nano board. Also, I used a piece of 5mm foamboard for the chassis of this car. But, you can use cardboard or any other material.

I’ve chosen JLCPCB to print these PCBs because they offer top-notch quality at a great price. Plus, if you’re new to JLCPCB, you can snag a $60 coupon by using this link. We will talk about how to order these PCBs in the Bluetooth car-making process. Additionally, we’ve made it simple to control this car using our app, which offers three modes. In this project, I’ve utilized the manual control mode, but you have the option to use gesture and voice control modes as well. You can freely access all these modes through the SriTu Hobby app.

  • You can download the SriTu Hobby app using this link — Download

OK let’s do this project step by step. The required components are given below.

Disclosure: These Amazon links are Affiliate links. As an Amazon Associate, I earn from qualifying purchases.

Step 1

Firstly, identify these components.

Step 2

Now, let’s order these PCBs. For that, follow the instructions below.

  • First, go to the JLCPCB official website and log in to your account. If you are a new member of this, please use this link. Then, you can get a 60$ coupon for orders to PCBs.
  •  JLCPCB $2 for 1-8 layer PCBs — Click on me
  • Then, click the instant quote button and upload the Gerber file. You can download it using the link below. If you have your own Gerber file, please use it.
  • Bluetooth control car Gerber file — Download
  • Now, you can change the required setting. I have ordered 5 PCBs with purple colour. You can change them as you like.
  • Then, select the build time and shipping. Finally, click the save to cart button.
  • Next, open your cart and click the secure checkout button. In this step, you can enter your shipping address and shipping method. Then, click the submit order button.
  • Now, you can pay for this using Paypal, debit card, credit card or coupon. Finally, click the pay button. Now it will receive soon. It depends on your shipping method. I have selected the FedEx shipping method.

Step 3

Next, unbox your PCB box. Now let’s make the car chassis. I have used a piece of 5mm foam board for that. You can use any other material. Please use the pictures below to make the car chassis.

Step 4

Now, solder the one-by-one components to the PCB. Also, bend and mount the LEDs on the PCB.

Step 5

Next, connect the Arduino Nano board and Bluetooth module to the PCB. Then, install this PCB on the front of this chassis.

Step 6

Then, connect the wheels to the motors and install them on the bottom of the chassis.

Step 7

Now, install the caster wheel back side of this chassis. For that, use a piece of foam board.

Step 8

Next, drill two holes near the motor. Then, put the wires through these holes. Afterwards, install the L298N motor driver on the chassis and connect the motors to it.

Step 9

Now, connect the car control unit to the motor driver. For that, use the circuit diagram below. Then, install the battery holder and connect it to the motor driver board.

How to make a modified Bluetooth control car with Arduino Nano

Step 10

Next, remove the Bluetooth module and connect the Arduino Nano board to the computer. Then, copy and paste the following program to the Arduino IDE.

/*modified Bluetooth control car with Arduino Nano
   
Home Page
*/ #define ENA 5 #define ENB 6 #define IN1 7 #define IN2 8 #define IN3 9 #define IN4 10 #define LED1 11 #define LED2 12 #define Speed 180 void setup() { Serial.begin(9600); pinMode(IN1, OUTPUT); pinMode(IN2, OUTPUT); pinMode(IN3, OUTPUT); pinMode(IN4, OUTPUT); pinMode(LED1, OUTPUT); pinMode(LED2, OUTPUT); } void loop() { if (Serial.available() > 0) { char value = Serial.read(); Serial.println(value); if (value == 'U') { Forward(); } else if (value == 'D') { Backward(); } else if (value == 'S') { Stop(); } else if (value == 'L') { Left(); } else if (value == 'R') { Right(); } else if (value == '1') { digitalWrite(LED1, HIGH); digitalWrite(LED2, HIGH); } else if (value == '2') { digitalWrite(LED1, LOW); digitalWrite(LED2, LOW); } } } void Forward() { analogWrite(ENA, Speed); analogWrite(ENB, Speed); digitalWrite(IN1, HIGH); digitalWrite(IN2, LOW); digitalWrite(IN3, HIGH); digitalWrite(IN4, LOW); } void Backward() { analogWrite(ENA, Speed); analogWrite(ENB, Speed); digitalWrite(IN1, LOW); digitalWrite(IN2, HIGH); digitalWrite(IN3, LOW); digitalWrite(IN4, HIGH); } void Stop() { digitalWrite(IN1, LOW); digitalWrite(IN2, LOW); digitalWrite(IN3, LOW); digitalWrite(IN4, LOW); } void Left() { analogWrite(ENA, Speed); analogWrite(ENB, Speed); digitalWrite(IN1, HIGH); digitalWrite(IN2, LOW); digitalWrite(IN3, LOW); digitalWrite(IN4, HIGH); } void Right() { analogWrite(ENA, Speed); analogWrite(ENB, Speed); digitalWrite(IN1, LOW); digitalWrite(IN2, HIGH); digitalWrite(IN3, HIGH); digitalWrite(IN4, LOW); }
  • Now, select the board and port. After, click the upload button.

Step 11

Then, reconnect the Bluetooth module and put the batteries into the battery holder.

Step 12

Now let’s set up the Bluetooth controller app step by step. Follow the instructions below for that.

  • First, download and install the SriTu Hobby app from the Play Store.
  • SriTu Hobby app — Download
  • Now, open this app and click the “control” button.
  • Then select Remote Control.
How to make a Bluetooth control Jeep using Arduino
  • Next, click on the gear wheel button and find your device. In this case, you need to enable location and location permission. And then, select your device. Then, it will connect.
  • Also, you can change the modes using the arrow button.
  • Now, it will connect and you will see the green indicator on the remote control. Then, check the LED bulbs and motor directions. If the motors are not rotating properly, please change the motor wires.

Now, you can drive your Bluetooth control car day and night. The full video guide is below. So, we hope to see you in the next project. have a good day.

Troubleshooting tips

  • Check jumper wires.
  • Check gear motor connections.
  • Select the correct board and port.
  • Check the power source.

How to make a modified Bluetooth control car with Arduino Nano

Similar Posts

Leave a Reply

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