Pages Menu
TwitterRssFacebook
Categories Menu

Posted by on Dec 20, 2012 in Electronics, Robotics | 193 comments

Making an RF Car

Making an RF Car

RF controlled bot

This is an article written by a one of my readers, Yash Tambi, Core Committee Member, roboVITics. Do read this post and pitch in your comments below regarding this. Thanks!

Now a days, we see many remote controlled cars and robots, but, ever thought of making one?

RF controlled bots are the most simple of their kind. All you need are a few ICs, which are easily available in the market, a 433Mhz Transmitter and Receiver module, and the usual wires, resistors etc. Theoretical information related to this can be found in this post, where Mayank discussed about RF module interfacing.

Items required for making an RF car

Items required for making an RF car

The ICs we will be using are

  • LM7805 as voltage regulator
  • HT12D, HT12E for wireless control
  • L293D for driving motors

Before making the circuit permanent, it is always better to make it on a solder less breadboard and check for any rectifications in the circuit if needed.

Using the 7805 – 5V Voltage Regulator

Using the LM7805 IC is quite simple. It is used to convert the input varying supply (usually 9-18 volts) to a stabilized 5 volts supply, which is used to drive the circuitry.

LM7805 Pins

LM7805 Pins

Using the L293D – Motor Driver IC

We start with the L293D. L293D is a popular motor driving IC. It is a 16 pin IC. The IC has 8 pins on both the sides. It has 2 enable pins, 1 VSS pin, 1 VS pin, 4 ground pins, 4 input pins and 4 output pins. Though not required here, but in case you wish to learn how to interface L293D with a microcontroller, you could refer to this post by Mayank.

Following is the pin diagram of L293D –

L293D Pin Configuration

L293D Pin Configuration

The descriptions of the pins are as follows:

  1. Enable – the enable pins, when are given true, (i.e. 1) then they enable the respective part of the IC. The enable 1 chip enables the Left part of the IC for inputs and outputs, and so does the Enable 2 does to the right part of the IC.
  2. VSS – this pin is to be given an input of 5 volts. This is used to power up the chip for its operations.
  3. VS – this pin is given the voltage that we have to supply to the motors. This voltage comes out through the output pins. Due to the gates used in the IC, the output is usually 1.8 to 2 volts less than the Vs.
  4. Input – the input pin decides whether output has to be given to he respective output pin or not. When the Input is true, then output is also 1 in the respective output pin. When input in the Input pin is 0, and then output in the respective output pin is also 0.
  5. Output – the output pin is connected to the terminals of the motor. The input pins, as stated above, control its output.
  6. GND – these pins are the ground pins, or, in other words, Zero.

Note – When no input is given to the inputs pins (i.e. they are left floating) or 1 is given, there is an output from the output pins. Its only when 0 (ground) is given to the inputs, when the output is zero for the corresponding output pin.

The L293D IC can be used to control a maximum of 4 motors simultaneously. When 4 motors are connected to the IC, then for operation, -ve of each of the motors is connected to the GND, and the +ve terminal to the outputs. For bidirectional control, you can connect only two motors simultaneously as per the circuit diagram below:

L293D Based Motor Driver

L293D Based Motor Driver

This is how the circuit looks when soldered on a PCB —

L293D Motor Driver Circuit Soldered on PCB

L293D Motor Driver Circuit Soldered on PCB

Using the HT12D and HT12E for Wireless Control

HT12E Encoder

The next IC is HT12E. The HT12E is an encoder. It converts digital signals into suitable form to be transmitted through EM signals. It is an 8-bit Encoder. The HT12E is usually used for 433 MHz wireless modules. It is an 18 leg IC.

The pin configurations are as follows:

  1. HT12E Pin

    HT12E Pin

    A0: 7 – these are the address pins.

  2. GND – this is the ground pin. This pin should also be connected to the –ve of the battery.
  3. Vcc – the VCC pin is where we need to supply the input voltage for the working of the encoder. It is used to power the IC.
  4. Osc1: 2 – these pins are the oscillator input and output pins. For the ordinary circuit, they are connected to each other with the help of an external resistor.
  5. TE – this is the transmission enable pin. When this is given true, then data transmission starts.
  6. Output – this is an output pin. The data in EM signals is given out from this pin.
  7. AD0: 3 – these are the data/address pins.

Note – How does a transmitter know to which receiver it has to send the signal to? It depends on the configuration of the address pins on Both the ICs. For the Tx-Rx pair to work, they should have the same configuration of the address pins.

The address pins can either be grounded, or can be given Vcc individually. So the corresponding pins on the Tx and Rx have to have the same configuration.

You can also use a gamepad for the inputs. Remember, gamepads are designed to be active low in configuration i.e. when you press a key in the gamepad, it sends out ‘0’ and when left floating, it gives ‘1’.

HT12D Decoder

The next IC is HT12D. The HT12D is a decoder. It decodes signals into suitable form to be transmitted through EM signals. It is an 8-bit Encoder. The HT12D is usually used for 433 MHz wireless modules. It is an 18 leg IC.

HT12D Pin

HT12D Pin

The pin configurations are as follows:

  1. A0: 7 – these are the address pins.
  2. Vss – this is the ground pin. This pin should be connected to the –ve of the battery.
  3. VDD – the VCC pin is where we need to supply the input voltage for the working of the encoder. It is used to power the IC.
  4. Osc1: 2 – these pins are the oscillator input and output pins. For the ordinary circuit, they are connected to each other with the help of an external resistor.
  5. DIN – this is the Data input pin. The data input from the receiver module is fed in this pin.
  6. VT – this is an output pin. This pin gives the output as soon as any signal s received by the receiver.
  7. D8: 11 – these are the data pins.

Now a natural question arises… Why can’t we directly use the output pins from the decoder to run the motors instead of  using another IC?

Following are the reasons —

  1. Through L293d, we can give the desired voltage output to the motors.
  2. The output from the decoder has a very low current output, which is insufficient to drive the motors.

The output pins of the decoder are good only to be used as switches.

Note For coupling of two ICs, they have to be commonly grounded to the same source, otherwise they will not work.

Designing the Transmitter Circuit

  • As stated above, the address pins can be configured as per choice.
  • The Ground pin needs to be grounded.
  • The Vcc pin needs to be given regulated 5 Volts.
  • The output pin is connected to the data pin of the Tx module.
  • To enable transmission, the TE pin is grounded.
  • Resistors of 1.1MΩ are connected across Osc1 and Osc2 pins.
  • Pull-up resistors of 100KΩ are connected across D8, D9, D10, D11 pins. The other end of the resistors may be either grounded, or given 1, or left floating depending upon what we want as the default value from the output pins of HT12D.
  • Suppose we ground the resistors’ other ends, then, by default, all the output pins in the HT12D will receive 0, and similarly vice-versa.
  • Switches may be used in between the data pins and the resistors.

You can also refer to this circuit diagram —

RF Transmitter Section

RF Transmitter Section (Click to Enlarge)

Designing the Receiver Circuit

  • The address pins must be given the same configuration as of those given in the transmitter circuit.
  • The VSS pin is to be grounded. Similarly, a 5v regulated output should be given to the VDD pin.
  • The D8, D9, D10, D11 are the outputs corresponding to those in the transmitter circuit.
  • A resistance of 51KΩ should be applied across Osc1 and Osc2 pins.
  • The data output from the receiver module is to be connected to the DIN pin.
  • The VD pin gets ‘on’ whenever the receiver receives a signal. It may be left unconnected.

You can also refer to this circuit diagram —

RF Receiver Section

RF Receiver Section (Click to Enlarge)

Upon soldering on a PCB, the circuits look like this —

RF Receiver Circuit Soldered on PCB

RF Receiver Circuit Soldered on PCB

Tire and Motor Selection

Now coming to tire and motor selection. This is a very basic bot, and thus one can use any tire or motor of their choice! :)

And it’s done!

Photo

My finished bot looked like this!

Final RF Bot

Final RF Bot

Video

And that’s it for now! Any kind of queries and discussion, please leave a reply below and I will be more than happy to get back to you! :) You can also subscribe to maxEmbedded for more interesting articles!

Thank you.

Yash Tambi
yash@delta.robovitics.in

193 Comments

  1. pease sir ,how can i alter the connection in order to give a 1 on the receiver when buttons are pressed ..it gives a zero

  2. hello,

    Please help me in building a rf controlled arduino car.
    I have purchased arduino uno, rf ht12e ht 12d module, l298n motor driver, 4 motors and 12v battery.

    Please guide me about the connections and arduino code

  3. Hi I just recently started working with electronics and more. I have a L293 motor driver, rf 433Hz module. How do i choose a proper input for it? I have a keypad board which has front, back, left and right buttons with Pins L, F, B, R and GND. how do i use it on the Transmitter module for my setup to work?

  4. how to use antenna pin? is it left open? or any kind of wire to put in?

  5. what if i use rf transmitter and receiver, the one which is used forr arduino ??
    will it give the same result??

  6. Hi max, how to control the speed of this motor linearly? Possible? Thanks.

  7. Can you please tell me what type of front wheel this RF Controlled Bot use?
    Thank you

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: