Pages Menu
Categories Menu

Posted by on Sep 6, 2011 in Electronics | 253 comments

RF Module Interfacing without Microcontrollers

RF Module Interfacing without Microcontrollers


Going wireless always starts with a basic RF communication, using serial encoders and decoders. This process and methodology is described here very aptly, doesn’t matter whether you are a newbie or not!

If you want to make an RF controlled robot, you would prefer to read this post first!

Going Wireless

These days, the term wireless is very much hyped! Whenever we hear the term wireless, stuffs like Mobile telecommunication (GSM), Wi-Fi, Bluetooth, RF Communication, Wireless networks, Zigbee, I2C, SPI, DTMF, 802.11b, SimpliciTI etc etc etc. Well, fortunately or unfortunately, all of these protocols can be interfaced with a microcontroller in one way or the other. But what matters is the level of complexity.

To start off, for beginners, RF (Radio Frequency) Communication is the most preferred and low cost solution. All you need is a RF Module (Transmitter-Receiver Pair). Now, that’s not all. RF Communication works on the principle of Serial Communication. Thus, you need something which converts the conventional n-bit (4-bit, 8-bit, 16-bit, etc) data into serial data. For this, we have two choices:

  • Use a microcontroller to convert the n-bit data into serial data and vice-versa
  • Use serial encoders/decoders to do the same
Since the title of the post says that we shouldn’t use microcontrollers, the only option left for us is to use the encoder/decoder.

RF Communication Block Diagram

RF Communication Block Diagram

RF Communication Block Diagram (Click to Enlarge)

A general RF communication block diagram is shown above. Since most of the encoders/decoders/microcontrollers are TTL compatible, most of the inputs by the user will be given in TTL logic level. Thus, this TTL input is to be converted into serial data input using an encoder or a microcontroller. This serial data can be directly read using the RF Transmitter, which then performs ASK (in some cases FSK) modulation on it and transmit the data through the antenna.

In the receiver side, the RF Receiver receives the modulated signal through the antenna, performs all kinds of processing, filtering, demodulation, etc and gives out a serial data. This serial data is then converted to a TTL level logic data, which is the same data that the user has input.

So now, let’s look into the hardware that are required.

RF Module

RF Modules are used wireless transfer data. This makes them most suitable for remote control applications, as in where you need to control some machines or robots without getting in touch with them (may be due to various reasons like safety, etc). Now depending upon the type of application, the RF module is chosen. For short range wireless control applications, an ASK RF Transmitter-Receiver Module of frequency 315 MHz or 433 MHz is most suitable. They are quite compact and cheap! You can buy them from the following stores:

A typical 315MHz (or) 433MHz ASK RF Module looks like this (courtesy EngineersGarage)

RF Module

RF Module

Now, let’s have a look at it’s pinout (courtesy EngineersGarage)

RF Module Pins

RF Module Pins

Pin Description:

RF Transmitter Pin Description

RF Receiver Pin Description


  • Range in open space(Standard Conditions) : 100 Meters
  • RX Receiver Frequency : 433 MHz
  • RX Typical Sensitivity : 105 Dbm
  • RX Supply Current : 3.5 mA
  • RX IF Frequency : 1MHz
  • Low Power Consumption
  • Easy For Application
  • RX Operating Voltage : 5V
  • TX Frequency Range : 433.92 MHz
  • TX Supply Voltage : 3V ~ 6V
  • TX Out Put Power : 4 ~ 12 Dbm

This has single channel for data transfer, thus serial data communication is used.

Serial Encoder/Decoder

The most popular serial encoder/decoder used is the HT12D-HT12E pair. Their description is given below. It’s okay if you don’t understand what is written there. Just make sure you go through the pin configurations and the circuit implementation.

The HT12E Encoder ICs are series of CMOS LSIs for Remote Control system applications. They are capable of Encoding 12 bit of information which consists of N address bits and 12-N data bits. Each address/data input is externally trinary programmable if bonded out.

HT12E Pin

HT12E Pin

The HT12D Decoder ICs are series of CMOS LSIs for remote control system applications. This ICs are paired with each other. For proper operation a pair of encoder/decoder with the same number of address and data format should be selected. The Decoder receive the serial address and data from its corresponding encoder, transmitted by a carrier using an RF transmission medium and gives output to the output pins after processing the data.

Features – Encoder

  • 18 PIN DIP
  • Operating Voltage : 2.4V ~ 12V
  • Low Power and High Noise Immunity
  • CMOS Technology
  • Low Standby Current and Minimum Transmission Word
  • Built-in Oscillator needs only 5% Resistor
  • Easy Interface with and RF or an Infrared transmission medium
  • Minimal External Components
HT12D Pin

HT12D Pin

Features – Decoder

  • 18 PIN DIP
  • Operating Voltage : 2.4V ~ 12.0V
  • Low Power and High Noise Immunity
  • CMOS Technology
  • Low Stand by Current
  • Ternary address setting
  • Capable of Decoding 12 bits of Information
  • 8 ~ 12 Address Pins and 0 ~ 4 Data Pins
  • Received Data are checked 2 times, Built in Oscillator needs only 5% resistor
  • VT goes high during a valid transmission
  • Easy Interface with an RF of IR transmission medium
  • Minimal External Components


  • Burglar Alarm, Smoke Alarm, Fire Alarm, Car Alarm, Security System
  • Garage Door and Car Door Controllers
  • Cordless telephone
  • Other Remote Control System


  • Compatible with RF Modules 433 MHz Link RF Modules (Tx + Rx Pair) 433 Mhz ASK
Now let’s move on to the circuit implementation part.

Circuit Implementation

There isn’t much in circuit implementation. You just need to take a solderless breadboard and make the connections… and snap! You are done! :)

Transmitter Section

Make the following circuit on a breadboard. You are requested to implement the following circuit at your own risk! We will NOT be responsible for any damages caused due to implementation of the circuit, physically, mentally or financially.

RF Transmitter Section

RF Transmitter Section (Click to Enlarge)

Here, we have used four switches S1, S2, S3 and S4 to give 4-bit parallel data (D0-D3). Since the switches are in active low state (i.e. low signal is sent when the switch is pressed), we need to add external pull-up resistors as shown, so as to provide a high signal by default. A resistance as high as 1Mohm is required in between OSC1 and OSC2 pins. The Transmitter Enable (TE, pin 14) pin is an active low pin. Thus, it is permanently grounded, so as to enable the transistor always. The output serial data DOUT is fed to the RF Transmitter Module directly.

The most important thing lies in the address pins (A0-A7, pin1-8). Suppose you have two wireless devices (A and B) in your house, both have different remote controls (AA and BB) and both implement the same type of RF module (say 433 MHz). AA is the remote control of A and BB is of B. Now, you obviously wouldn’t want AA to control B (which is the most probable case since both the devices use same kind of RF module, having same frequency!). This is where address pins come into play. There are 8 address pins, thus giving you an opportunity to have 8! (8 factorial) different and independent ways to connect to a device, so that there is no interference. The address pins MUST have the same address in both transmitter and receiver, or else the data won’t be transferred. Refer to the receiver circuit for more details.

Receiver Section

Now make the following circuit on a different breadboard. As mentioned earlier, you are requested to implement the following circuit at your own risk! We will NOT be responsible for any damages caused due to implementation of the circuit, physically, mentally or financially.

RF Receiver Section

RF Receiver Section (Click to Enlarge)

The circuit of the receiver is also quite simple. Capacitor C1 is used between Vcc and GND for noise filtering. Apart from that, all the address pins (A0-A7, pin 1-8) are grounded, just as in transmitter. This is to ensure that the transmitted data is being received. Both the transmitter and the receiver MUST have the same address pins configuration. Pin 17 (VT) is enabled whenever the receiver receives any data. The serial data received by the RF Receiver module is directly fed to pin 14 (DIN), which is then converted into 4-bit parallel data (D0-D3). A 33 kohm resistor is connected in between OSC1 and OSC2.


Okay, so now that all the connections are made, you must choose an antenna for signal transmission. Usually, a 20-30 cm wire serves best. It is sufficient to give a range of 80 meters in open region. To improve the efficiency, you can also use a coiled wire (take a wire and make it into a coil). It increases the signal strength.

Result – What you will get?

Once the circuit is made and powered up, the four LEDs on the receiver end will glow by default. The LED corresponding to VT glows only when some data is received. Now whenever you press any switch (on the transmitter end), that particular LED (on the receiver end) goes off! Interesting, eh?! ;)


It’s obvious that you won’t get the result in the first go itself! It’s completely normal, even in my case! :D There will be times when you will say to yourself that it’s not gonna happen. In that case, just try out the simple wired communication. Connect the DOUT of the encoder directly to the DIN of the decoder using a wire. Then check and recheck your connections, check whether the address is the same, whether you have missed any Vcc or GND connection, etc. If still then a successful link is not established, change your encoder/decoder ICs. Once your link is established, connect the RF module and do the same. Try adjusting the antenna position, touch the antenna (touching the antenna will make yourself an antenna!), etc. If still not successful, then all I suggest is to google out your problem and see if somebody else has sorted it out or not.

Extending the circuit

This circuit can be easily extended to anything, depending upon your application. If you are using it control a robot, the output data can be directly given to a motor driver. View this article for details. If you are using it to control any external device, this data can be fed there. In other words, whatever data you wanted to send, the same is available at some other location, which can be manipulated very easily.

Making an RF Car

If you want to make a wireless robot and want to use RF technology to achieve that, then you can view this interesting post by Yash on maxEmbedded and learn how he made it.

So folks, this is all about RF module interfacing without using microcontrollers. We will discuss the same topic once again after learning Serial Communication. So till then, you can stay updated by grabbing RSS Feeds or subscribing to my blog! :)

Thank You

Mayank Prasad
VIT University


  1. Hi,
    I made RF Tx and Rx circuits using 433Mhz rf module and ht12e/d encoder and decoder ICs. I want to know that how can I transmit a high signal? Is it like giving Vcc to data pins of ht12e sends a high signal and when connected to ground sends a low signal? What happens when the data pins are left open? And can the system work without an antenna?(Whatever the range is but does it work?) Appreciate your help. Thanks!

    • Hi Dexter,
      You are absolutely right, applying Vcc to the data pins will transmit binary 1 and applying ground to them will transmit binary 0. If you leave them open, then binary 1 will be transmitted for all the data and address pins, as in the HT12E chip, all the address and data pins are pulled-high internally.
      And yes, the system will work without antennas but with considerably low range.

      Hope this answers your question.

  2. dear sir,
    i want to make a wifi module for the data receiving and sending in any other module . i want to schematic diagram of that type of module. i want to communicate with pc and system for tacking the data of system to pc in wifi mode

    • Cool, very good! I suggest you do what you want! Good luck! :)

  3. thank you its working

  4. Hi.I want to design a bot similar to rf car . but instead of switches as input signal i want to controll it over my voice signal.can you help me out?? I want to use a transmitter and receiver with no limitation on its range(i mean long range like the one in cell phone),is there anything like that ??plz suggest me sir.

    • I don’t know. You’ll need to do some research yourself! Sorry!

      • Sir one question to ask :- how can we analyze traffic jam using RF technology? (plz suggest me)

  5. Informative post. I want to make a transmitter and receiver for wireless data transmission. I want to send and receive audio, video and control signals with that. I want it to cover a range of 1 km and data rate 100 MHz to 1000 Mhz. any help plz. which RF modules should I use ?

  6. hello sir,
    I learnt so much things from your post … but i want to make rc control flying object having 2 motors … is it possible to control flying object by using rc module (as described by you) . please give me a right solution .

    • It should be, but range and interference might be challenging. Try using some other wireless communication, like ZigBee.

  7. hello sir,
    i want to knw how t interface an ultrasonic sensor n a rf rx-tx module with pic18f4550. so can u help with a detail circuit diagram for the same

  8. fantastic post. I really learn from it. can an ultrasonic device like the ping sensor be used in this cct without the use of a microcontroller. if yes pls brief explanation.

    • If you simply want to transmit the ping signal, yes it can be done.

  9. Hey Max…
    I m doing a project in which I am using two RF modules(434Mz and 315Mz)….I have achieved communication with both the modules separately….when working with both modules simultaneously, it seems like they are interfering(only one or none of them works)…I also tried giving unique ID to each frequency(by giving unique address to encoder and decoder pins), but still the same problem…..Any suggestions???

    • Well looks like RF is no good for your application. I would suggest you using something else, like the 2.4 GHz standard.

  10. dear sir,
    i want to make a tx-rx module for coal mines attached with a sensor. what i mean to say is that: “i want to sense the gas quantity in the mine and if it is more than the threshold i want to generate a signal to which could further be used a s an input in the alarm placed at different positions”. sir please help me with this.

    • Hello Utsav,
      We help those who help themselves. This is your project, so think and get started on your own. Ask us when you’re stuck.

  11. Sir,why 433mhz rf transmitter is having 4 pins while receiver 8pins and why we are using only 4pins of it?

    • We are using all the pins of the receiver.
      And I don’t know why the receiver has 8 pins. I know there are some with just 4 pins. Probably go through the technical manual/datasheet to learn more. Thanks!

  12. Should both the transmitter n receiver be in line of sight or communication and is antenna compulsory for for tx an rx

    • Antenna is not compulsory but recommended. Line of sight is also not required but recommended.

  13. Hi Max, Loved your article. Just wanted to know couple of things here.

    Q1: Is there is any similar post using microcontrollers?

    Q2: If I want Rx1 & Rx2 receive data from same Tx. In this case Can I simply differentiate data sending using process using A0 & A1 pins @ Tx. May be I can enable pin A0 while transmitting data to Rx1 where Rx1 will have A0 pin enabled. Secondly while transmitting data to Rx2 the A1 pin on Tx will be enabled and Rx2 will have A1 pin enabled as well. Is it possible?

    • A1: Read one of my serial communication posts. Feed that serial data to the RF tx/rx and you should be good.

      A2: You can’t do that with these modules.

      • Thanks. An excellent article!

        • Thanks!

          Keep reading, keep sharing!!

  14. Sir,
    How can the different no. of addresses be 8! , instead they must be 2 to the power 8 i.e. 256.

  15. sir, wat is the connection between motor driver and the receiver circuit

  16. Hi Max

    How can we control the speed and direction wirelessly multiple servos/dc motors on a bandwidth of 2.4ghz with out using a arduino or zigbee xbee or raspberry pi or any other board ?

    please reply asap



  17. Hello Sir,

    I read your notes on “RF Module Interfacing without Microcontrollers”

    I have one question on that how can we make 8! combination in address pin (A0 – A7).

    8! means 40320 combinations, According to me it’s only 128 combinations. I may be wrong.

    Please assist me.

  18. Sir.what happen if I change the resistance value???pls reply me sir

  19. The tutorial is good for basics of RF module ……really good work.
    One more thing (i may be wrong)…….8 address pins correspond to 2^8 different addresses and not 8!

  20. hey max… is there some way i dont use encoder and decoder and with PIC micro i can directly interface the modules??

Leave a Reply

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

%d bloggers like this: