OFF ROAD ROBOT WITH 4 WHEEL DRIVE WITH ARDUINO


This time, we decided to make our hands dirty. We build an Off-Road 4 Wheel Drive Robot, which can travel through rough terrain and can be remotely controlled using a mobile phone or a laptop.


Behold, The Badland Brawler

An Amazing Off-Road Robot using Arduino. This one is WiFi Controlled which means it can be controlled from anywhere with WiFi connectivity. This one has strong ripped tires that enable him to crawl through any kind of terrain.

How to make your own Off-Road Rough Terrain 4 Wheel Drive Robot?

Saw the demo video? Really like this Badland Brawler? Wanna build this badass off-road 4 wheel drive RC Rock Crawler Robot?
Let us dive into the robotics tutorial section below and start building it. For your convenience, We will be dividing this post into various steps and make this robotics tutorial easy to follow and troubleshoot.

We will provide you with the design, code of the RC Monster Truck, and links to all the products used in this project including this cool robot kit.
Links to the robot building kit are also available in our project tutorial pages so that you can buy any robot building kit you want and build your own DIY robot as per your needs.

Get Your Components

To build one yourself, you will have to get an Arduino board with WiFi connectivity, a robot chassis, and some sensors.

  • Arduino MKR 1000 or Any WiFi supported Arduino Board
  • A 12V Battery
  • DC motors
  • 4 Wheel Drive Off-Road RC Rock Crawler Robot Chassis
  • L293D Motor Driver IC
  • An Android Phone with RootSaid – WiFi Command Center installed
  • A WiFi network

WiFi Robot using Raspberry Pi

Instructions

Step 1 – 4 Wheel Drive RC Rock Crawler Chassis – DIY Smart Robot Kit

The chassis I used for making this 4 wheels drive off-road robot is really something I should talk about. I got this amazing kit banggood.com. They provide so many types of robot frames, motors and almost all the sensors for doing Arduinoraspberry pi and other electronics and hobby projects in your home. You will get all these things for a cheap price with really fast and quality shipping.
Another thing about this kit is they provide all the tools you need to assemble the frame together. This is made of strong and lightweight aluminum alloy. This is a closed type of chassis so that you can enclose and protect all the components/boards/sensors within the frame itself.
The mud tires are strong and ripped and provide great friction between the tire and the ground which enables this RC Rock Crawler to climb through rough and slippery dirt roads or rocks without much effort. Kind of like an RC monster truck. Wait. It is an RC Monster Truck.

Step 2 – Power Source

Here, we need to power up all the motors via L293D/L298N motor driver and our Arduino board with WiFi connectivity at the same time. Since we have 4 DC motors with mud tires attached to it, we need a power source that can discharge a considerable amount of current. So, I decided to move forward with a 12V LiPo battery. We can provide 12 V directly to the L298N motor driver board.
Powering Arduino depends upon the type of board you are using. Here I am using an Arduino MKR1000 which can withstand a maximum of 5V in its Vin pin. If I am connecting this 12 V directly, it will fry the chip. So, I used a voltage regulator to step down the voltage to 5V before feeding it to Arduino. 

Step 3 – Arduino and DC Motor

In the RC Rock Crawler chassis assembly section, we connected the mud tires to the DC motors. Now we will drive the mud tires. You can easily drive the DC motors (and the mud tires) using a simple H Bridge circuit or a motor driver board. In this project, I will be using Dual H Bridge Motor Driver IC – L293D/L298N which enables you to control two sets of DC motors at the same time.

Step 4 – The Arduino

The mud tires of our RC Rock Climber are now connected to the L293D. Now let us connect the motor driver board to our Arduino.
You can use any 4 of the GPIO pins and connect it to L298N. In my RC Monster Truck, I am using Pin 33 and 11 for enabling pins, 13 and 15 for Motor 1 and Motor 3 and 29 and 31 for motor 2 and motor 4.
Motor 1 (Mud Tire 1) and Motor 3 (Mud Tire 3)
In 1 – GPIO 10
In 2 – GPIO 11
Motor 2 (Mud Tire 2) and Motor 4 (Mud Tire 4)
In 3 – GPIO 12
In 4 – GPIO 13

Step 5 – Connect RC Monster Truck to The Network

As mentioned earlier, this RC Monster truck is controlled using an Android Smartphone using WiFi. This is similar to our WiFi Robot using Arduino which I published a month ago. In order to control our robot, the RC rock crawler should be connected to an active WiFi network. You can either use your home WiFi network or like I did, you can create a hotspot on your smartphone.

Step 6 – Coding the RC Rock Crawler

Download the below code to your Badland Brawler Off-road Robot.
Connect your Arduino board to your PC. Once you finish downloading the code, open it using Arduino IDE. There you have to make a small change in the below code
char ssid[] = "WiFi Network Name"; //WiFi Network Name
char pass[] = "WiFi Password"; //WiFi Network Password
Here SSID is the name of the WiFi network you are planning to connect your Badland Brawler. and Pass is the variable that stores the password of the WiFi network.
Once that is done, click on tools, choose the right port and board and click on the upload button. 
Once the code is uploaded, fire up the serial monitor. This will show you the IP Address of your WiFi RC Monster Truck in the WiFi network.

Step 8 – Install RootSaid WiFi Command Center from Google PlayStore

That's it!! All the hard work is done. That wasn't so hard, was it? Now all you have to do is download and install an app from the play store.
RootSaid WiFi Command Center is an android mobile phone app that can be used to control robots as well as home appliances over WiFi.
All you have to do is start the app, enter the IP address and port of the listener (the Arduino board of your RC Monster Truck), go the Robot Controller tab, and control it using the arrow button in your android smartphone.
Click Here to Download this app to your phone from Playstore.

Step 9 – Start

BadLand Brawler is now set and ready to go.
Now all you have to do is fire up the App in your android smartphone, enter the IP address of the robot and port it is listening to.
Load the IP and Port using the link button and navigate to the Robot Controller Tab.
Now you can control your RC Off-Road Robot by simply pressing the forward, backward, left, and right buttons in your android smartphone.

Credit goes to RootSaid


Comments