How to make an omnidirectional 4WD Bluetooth control car with Arduino

How to make an omnidirectional 4WD Bluetooth control car with Arduino

Hello and welcome back, In this project, we will learn how to make an omnidirectional 4WD Bluetooth control car. That’s a new experience for me. Therefore I need to share my experience with you. For that, I mainly used the Arduino UNO board, L293D motor driver shield, and HC-05 Bluetooth module. Also, I used the SriTu Hobby Bluetooth controller app for controlling this car. You can download it using this link.

Other Bluetooth control car projects

  1. How to make a DIY Bluetooth control boat using Arduino
  2. How to make an Obstacle avoidance and Bluetooth control robot using a robot tank kit
  3. How to make a DIY Gesture, Manual, and Voice control car using Arduino at home
  4. How to make a Bluetooth control 4WD car | Step-by-step instructions
  5. How to make a customizable Bluetooth controller car using Arduino
  6. How to make a simple Bluetooth control car step by step
  7. How to make a simple different type of Bluetooth control car
  8. How to Build a Bluetooth Control Car with Arduino Nano and HC-05 Module

What’s the mecanum wheel?

The mecanum wheel is a special kind of wheel that allows a car to move in any direction. This wheel system has two types. That’s the left side and right side. Some people also call these wheels the Swedish wheel or Ilon wheel. Also, we can see the different types of sizes and color wheels on the market. You can choose it as you like. I used the 80mm two of the left-sided wheels, and two of the right-sided wheels.

  • You can buy these wheels using our shop – Click on me

These wheels are not including tires. Instead, rollers are included here. These rollers are positioned at an angle of 45 degrees to the axis of rotation of the wheel. For this reason, As the wheel moves backward and forwards, the force is applied in the diagonal direction. Using these features, we can move this car forward, backward, left turn right, sideways, and in any direction. It’s amazing. For that, we need to connect these wheels in specific patterns. You can see the types of directions using the image below.

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

Secondly, cut the foam board or rigifoam board using the following sizes. For that, you can use any suitable material.

Step 3

Thirdly, cut the car chassis using the dimensions below.

Step 4

Now, connect the wheel coupling to the wheels. Then, connect these wheels to the motors. Use a screwdriver for that.

Step 5

Next, install the motors on the car chassis. You must install these wheels in a specific pattern. Use the image below for that.

Step 6

And then, drill two holes near the gear motors and put the motor wires through these holes.

Step 7

Now, connect the L293D motor driver shield to the Arduino UNO board. And then, install it on the top of the car chassis. Also, connect the motor wires to it. For that, use the circuit diagram below.

How to make an omnidirectional 4WD Bluetooth control car with Arduino

Step 8

Next, connect the Bluetooth module to the motor driver shield. And then, install the Bluetooth module as you like. I have used a piece of foam board. (To connect the Bluetooth module, please use the circuit diagram above)

Step 9

Now, connect the battery holder power wires to the motor driver shield. And then, install it on the car chassis.

Step 10

Finally, remove the RX and TX jumper wires. And then, connect this car to the computer.

Step 11

Now, copy and paste the following code on the Arduino IDE.

#include <AFMotor.h>

AF_DCMotor motor1(1);
AF_DCMotor motor2(2);
AF_DCMotor motor3(3);
AF_DCMotor motor4(4);

int Speed = 200;
char value;

void setup() {
  Serial.begin(9600);
  motor1.setSpeed(Speed);
  motor2.setSpeed(Speed);
  motor3.setSpeed(Speed);
  motor4.setSpeed(Speed);
}

void loop() {
  if (Serial.available() > 0) {
    value = Serial.read();
    Serial.println(value);
  }
  if (value == 'U') {
    forward();
  } else if (value == 'D') {
    backward();
  } else if (value == 'L') {
    leftSide();
  } else if (value == 'R') {
    rightSide();
  } else if (value == 'T') {
    turnLeft();
  } else if (value == 'F') {
    turnRight();
  } else if (value == 'H') {
    sideLeft();
  } else if (value == 'G') {
    sideRight();
  } else {
    Stop();
  }
}

void forward() {
  motor1.run(FORWARD);
  motor2.run(FORWARD);
  motor3.run(FORWARD);
  motor4.run(FORWARD);
}
void backward() {
  motor1.run(BACKWARD);
  motor2.run(BACKWARD);
  motor3.run(BACKWARD);
  motor4.run(BACKWARD);
}
void leftSide() {
  motor1.run(FORWARD);
  motor2.run(BACKWARD);
  motor3.run(FORWARD);
  motor4.run(BACKWARD);
}
void rightSide() {
  motor1.run(BACKWARD);
  motor2.run(FORWARD);
  motor3.run(BACKWARD);
  motor4.run(FORWARD);
}
void turnLeft() {
  motor1.run(BACKWARD);
  motor2.run(BACKWARD);
  motor3.run(FORWARD);
  motor4.run(FORWARD);
}
void turnRight() {
  motor1.run(FORWARD);
  motor2.run(FORWARD);
  motor3.run(BACKWARD);
  motor4.run(BACKWARD);
}
void sideLeft() {
  motor1.run(FORWARD);
  motor2.run(RELEASE);
  motor3.run(FORWARD);
  motor4.run(RELEASE);
}
void sideRight() {
  motor1.run(BACKWARD);
  motor2.run(RELEASE);
  motor3.run(BACKWARD);
  motor4.run(RELEASE);
}
void Stop() {
  motor1.run(RELEASE);
  motor2.run(RELEASE);
  motor3.run(RELEASE);
  motor4.run(RELEASE);
}
  • And then, select the board and port. After, click the upload button.

Step 12

Now, remove the USB cable and reconnect the RX and TX jumper wires. And then, put the batteries into the battery holder.

Step 13

Next, download and install the SriTu Hobby app from the play store. You can download it using this link.

  • Now, open this app and click on the control button. Then, select the Bluetooth car remote.
How to make an omnidirectional 4WD Bluetooth control car with Arduino
  • Next, find your device and click on the Bluetooth module name. (In this case, you need to enable Bluetooth, location, and location permission)

Now, you can control this car using this remote. Ok, enjoy this project. The full video guide is below. We hope to see you in the next project or tutorial.

How to make an omnidirectional 4WD Bluetooth control car with Arduino

Similar Posts

Leave a Reply

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