Arduino Tracked Robot Using HC12 Wireless Module

by jithinsanal1610 in Circuits > Remote Control

1512 Views, 6 Favorites, 0 Comments

Arduino Tracked Robot Using HC12 Wireless Module

DIY Remote Controlled Tank using Arduino.png
RC-Tank-Robot.jpg
DIY Remote Controlled Tank | Arduino Robotics Project [Complete Step by Step Tutorial]

This time I have a rough Terrain Robot with 4 Wheel Drive and dedicated suspension for it to travel over rough terrain. Check it out.

Components

Arduino

HC12 Wireless Module

Remote Controller (Build Earlier)

HC12

HC 12 is a really cheap long-range wireless module that can be used for wireless serial communication over a long distance of up to 1.7 KM. The module is really compact lightweight and breadboard-friendly which makes this the best wireless controller for our project.

Joystick

This is the most widely used robotic controller which comes with a various robot DIY kit that is built to work with Arduino. The design is quite simple and is very easy to use. It uses two potentiometers to calculate the motion in the x-axis and y-axis and a switch to sense the button press. This can be easily connected to the Arduino's analog pins and read analog values directly. Code for testing the joystick is available down below. Feel free to download/edit it as per your need. Download Before uploading the main code, make sure your joystick works by using this code.

Download the code from the above link. In this example, what we are doing is simply collecting the data analog outputs from the Joystick using the analog pins (A0, A1, A2) of Arduino. These values are stored in the variables and are later printed on the serial monitor.

Remote Controller

The Transmitter consists of a breadboard in which we mount all the sensors and components to get the data that is used to drive the Off-Road Wireless Surveillance 6 Wheel Drive Robot. This includes an accelerometer, a joystick, and an HC12 module.

We will use the accelerometer as well as the joystick to control the off-road robot. For now, we will use the joystick button to close the robotic hand. The data from these sensors are transmitted wirelessly to the DIY robot using an HC12 module.

In the previous post, I showed you how you can make a remote controller using HC12 Wireless Module, Joystick, and Accelerometer. We can use the same remote for this project also. Click here to know more about the HC12 Remote Controller.

Circuit

Arduino RC Tank PCB Layout.png

So I used Altium Designer to draw the circuit and design the PCB. It is a powerful tool that can be used to design and create your own PCBs for your project as well as complex and multiplayer PCBs for industrial use. Here is the link to the Altium trial version.

Here, I have designed a PCB layout where you can easily mount your Arduino Nano 33 IOT, L293D ICs, and the supporting components and set this up without using messy wires and cables hanging around.

The board is lightweight and can be powered using a 9V battery or a 9-12 V power adapter. We need to power up the whole circuit and drive all 4 motors using L293D/L298N motor driver and our Arduino board. We need a power source that can provide enough current.

So, I decided to go with a 12V LiPo battery. The input power is connected to a 7805 regulator. 7805 is a 5V regulator that will convert an input voltage of 7- 32V to a steady 5V DC supply. There are indicator LEDs across various points for easy troubleshooting.

You can either power your Arduino using 12V or regulated 5V output from the 7805 regulators. You can select that using a jumper. Powering Arduino depends upon the type of board you are using. Here I am using an Arduino Nano 33 IOT which can withstand a voltage of 12V in its Vin pin. It’s not the case with all the boards.

If I am connecting this 12 V directly, it may fry the chip. So, If you want, you can use a voltage regulator to step down the voltage to 5V before feeding it to Arduino.

Get Complete Details of the Arduino RC Tank Circuit Diagram from here.

Ordering PCB From PCBWay

Ordering PCBs from PCBWay.png
Finished PCB of DIY Remote Controlled Tank.png

I ordered PCB from PCBWay. PCBWay is a PCB manufacturer specializing in PCB prototyping, low-volume production, and neat and tidy PCB assembly. To order your PCB from the PCBWay, go to the PCBWay website and fill in the basic board details in the instant order form.

From there you will be directed to a form where you can provide more elaborate board details. Update your board information in the PCB specification screen. In the next screen, you should be able to upload your Gerber file and submit it for review. Once the review is completed, all that is left is to add to the cart, make payment, and wait for your PCBs to arrive.

Once you get the PCB in hand, all you have to do is solder the header pins and all other components. Once it is done, connect the power adapter and you will see LED1 will glow up. This means it is working.

Coding

vlcsnap-2021-05-16-11h46m06s204.png

Now, let’s get down to the software part. Here, I will be programming the board using our favorite Arduino ide.

This is the code for your Arduino Tracked Robot. You can copy and paste complete Arduino Tank Codes and their explanation from here.

Test Drive

DIY Remote Controlled Tank | Arduino Robotics Project [Complete Step by Step Tutorial]
vlcsnap-2021-05-16-11h14m50s641.png

That’s it guys now all you have to do is select the right port and board and upload the code.

Now your bot is ready for some action, why not take it out for a ride?