# Hacking a RC Car

9,754

136

10

RC cars are really fun to hack and they provide good chasis for low price,to make robots but selecting one to make is a pain in the ash with millions of type. My little brother had his birthday recently and i wanted to give him something really cool ,I ended up giving him this rc car.
RC car hacking are easy and tough too, bcz of the different way rc car are made it doesn't makes easy and defined way to hack the car, but this hack is universal.
I will also try to cover basic about all the parts and theory behind each modules.we have used module but you are encouraged to make our circuit , except the pro mini.

I was really uncomfortable with promini as it was too small but it was fun.

### Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

## Step 1: Getting the Right Chassis

Part List

Getting the right chassis

To choose chassis is a question about drive mechanism there are many drive mechanism.

Lets talk about the two most popular mechanism.

Differential Drive
What is Differential drive?

The term differential means difference between two entities, in the context of robotics it is just the speed difference between two motors.Based on this speed difference, a robot can be moved in any direction on a 2D layout.

When two motors are connected to wheels in one line,opposite to each other(Just like a pair of wheels connected to a single shaft) the speed with which each motor rotates determines the direction of motion. When both the wheels rotate at the same speed the difference between the motors is Zero. This makes the robot move forward in a straight line.The robot can move in reverse direction if the direction of rotation of both the motors are reversed. This will again be in a straight line if the speed difference is zero. Now changing the speed of any one motor will result in movement in a direction away from the straight line. For example, reducing the speed of the right motor will result in a speed difference and hence change in direction.The resultant force is such that the robot turns right. This direction change can be controlled to required angle by further reducing the speed of the motor.Slower is the right motor, sharper is the turn to right. This is exactly the same for Left turn. As a conclusion, Slower right motor, sharper right turn. Slower left motor Sharper left turn. Below are some scenarios which explains working of differential drive mechanism.M1 and M2 are motors which drive wheels on left and right respectively.

Steer Type Drive

What is Steer type drive ?

The car type drive is the most common in real world but not in robot world. It is characterized by a pair of driving wheels and a separate pair of steering wheels The translation and rotation are independent of each other. But translation and rotation are interlinked hence this system faces severe path planning problem
Four wheels are more efficient compared to three or two wheels. The first two of the four wheels can be used to steer and the next two to drive the robot. Balancing a four wheeled robot is never an issue. Most everyday cars we use are four wheeled and the example is enough to prove its existence and capabilities.

Disadvantages Of Car Type Drive : The turning mechanism must be accurately controlled. A slight inaccuracy may cause large odometry errors The system is Non – Holonomic hence path planning is extremely difficult as well as inaccurate There are no direct directional actuators

So its better to use differential drive due to its simplicity and easy to use.

## Step 2: Controlling the Motors

To control the motor we need something that something called the motor driver.

What is a Motor Driver?

A motor driver is a little current amplifier; the function of motor drivers is to take a low-current control signal and then turn it into a higher-current signal that can drive a motor.

There are many motor drivers out of which i am using l293d motor driver module.

L293D is a Motor driver integrated circuit which is used to drive DC motors rotating in either direction. It is a 16-pin IC which can control a set of two DC motors simultaneously. The L293D uses 5V for its own power and external power source is needed to drive the motors, which can be up to 36V and draw up to 600mA.The L293D works on the concept of typical H-bridge, a circuit which allows the high voltage to be flown in either direction. In a single L293D IC there are two H-bridge circuits which can rotate two DC motors independently.

Pin description of L293d

1
Enable pin for Motor 1; active high Enable 1,2 2 Input 1 for Motor 1 Input 1 3 Output 1 for Motor 1 Output 1 4 Ground (0V) Ground 5 Ground (0V) Ground 6 Output 2 for Motor 1 Output 2 7 Input 2 for Motor 1 Input 2 8 Supply voltage for Motors; 9-12V (up to 36V) Vcc 2 9 Enable pin for Motor 2; active high Enable 3,4 10 Input 1 for Motor 1 Input 3 11 Output 1 for Motor 1 Output 3 12 Ground (0V) Ground 13 Ground (0V) Ground 14 Output 2 for Motor 1 Output 4 15 Input2 for Motor 1 Input 4 16 Supply voltage; 5V (up to 36V) Vcc 1

 Pin No Function Name 1 Enable pin for Motor 1; active high Enable 1,2 2 Input 1 for Motor 1 Input 1 3 Output 1 for Motor 1 Output 1 4 Ground (0V) Ground 5 Ground (0V) Ground 6 Output 2 for Motor 1 Output 2 7 Input 2 for Motor 1 Input 2 8 Supply voltage for Motors; 9-12V (up to 36V) Vcc 2 9 Enable pin for Motor 2; active high Enable 3,4 10 Input 1 for Motor 1 Input 3 11 Output 1 for Motor 1 Output 3 12 Ground (0V) Ground 13 Ground (0V) Ground 14 Output 2 for Motor 1 Output 4 15 Input2 for Motor 1 Input 4 16 Supply voltage; 5V (up to 36V) Vcc 1

## Step 3: About the App

There are many apps to control i made with one .
The logic is very simple all the button sends a character when pressed through Bluetooth and the arduino processes it

 Character Fucntions X Null state F Forward Motion B Backward Motion L Turn Left R Turn Right

## Step 4: Connection All the Part

Connections are simple

here are the connection as follows

The Bluetooth Module

 Hc-05 Arduino Vcc 5v Gnd Gnd Rx Tx Tx Rx

The Motor Driver

 Motor Driver Arduino pin 2 8 pin 7 7 pin 10 6 pin 4 9 pin 3 and 6 Motor 1 pin 11 and pin 14 Motor 2 pin 1 5v pin 9 5v

## Step 5: Coding

```void setup() {
Serial.begin(9600);
pinMode(8, OUTPUT);
pinMode(7, OUTPUT);
pinMode(9, OUTPUT);
pinMode(6, OUTPUT);
pinMode(5, OUTPUT);
pinMode(4, OUTPUT);
digitalWrite(4,LOW);

digitalWrite(5,LOW);

}

// the loop function runs over and over again forever
void loop() {
var=Serial.read();
if(var=='F')
{
digitalWrite(6,LOW);
digitalWrite(7,HIGH);
digitalWrite(8,LOW);
digitalWrite(9,HIGH);

} if(var=='H')
{    digitalWrite(frled1,HIGH);
}
if(var=='B')
{
analogWrite(speeden,150);

digitalWrite(6,HIGH);
digitalWrite(7,LOW);
digitalWrite(8,HIGH);
digitalWrite(9,LOW);
digitalWrite(bcled1,HIGH);

}
if(var=='X')
{digitalWrite(9,LOW);
digitalWrite(8,LOW);
digitalWrite(7,LOW);
digitalWrite(6,LOW);
digitalWrite(frled1,LOW);
digitalWrite(bcled1,LOW

);

}
if(var=='L')
{digitalWrite(6,LOW);
digitalWrite(7,LOW);
digitalWrite(8,HIGH);
digitalWrite(9,LOW);
}
if(var=='R')
{digitalWrite(6,HIGH);
digitalWrite(7,LOW);
digitalWrite(8,LOW);
digitalWrite(9,LOW);;
}
}
```

i hope you enjoy making the project as i have done i am posting some more cool projects soon so do follow me to get all updates Also like my page https://www.facebook.com/makewithRex/

Participated in the
Beyond the Comfort Zone Contest

Participated in the
Outside Contest 2016

## Recommendations

• ### Internet of Things Class

22,771 Enrolled

## 10 Discussions

You give unusually good explanations--perhaps you will be an engineering teacher/professor someday! Probably make more \$ as an engineer/inventor :-)

Hello, Nice project. Is it possible to give us the code for the app?

is there anything one could make to put inline with motors. I am totally new to this so I might not be explaining it. I just want to make something that I can run the DC from the motors through. Then if the ultrasonic trips it shuts off the motor.

i think it would be more sufficient to put IR Receiver instead of the bluetooth module, becauss most bluetooth module range is about 9 meters and if u get an old remote to work with your IR receiver it can increase your range to about 50 meters.. but thats a cool projects, Good Job, i will try to make one too..

1 reply

bluetooth have 50m range man ,and mostly you can't control out of sight so here is where Bluetooth shines. but ya u can use ir if you want to control if staying in front always