RF Remote Controller for L298 Motor Driver with HT12E & HT12D

This is a 4 channel RF remote controller and motor driver circuit for controlling a four wheel ground rover. I designed this for my own four wheel ground rover. The remote controller is based on HT12E and HT12D, 212 series encoder-decoder pair from Holtek semiconductor.The RF communication is made possible by 433MHz ASK transmitter-receiver pair. The motor driver is based on the L298N, which is a 2A dual H-Bridge IC from ST microelectronics.

ht12e ht12d pinout

Pinouts of HT12E and HT12D

The HT12E is a 12-bit encoder and basically a parallel input-serial output encoder. Out of 12 bits, 8-bits are address bits which can be utilized for controlling multiple receivers. The pins A0-A7 are the address input pins. The oscillator frequency should be 3KHz for 5V operation. Then Rosc value will be 1.1MΩ for 5V. I used 9V, and therefore the Rosc value is 1MΩ. AD0-AD3 are the control bit inputs. These inputs will control the D0-D3 outputs of the HT12D decoder. You can connect the output of the HT12E to any transmitter module that accepts serial data.

The HT12D is a 12-bit decoder which is a serial input-parallel output decoder. The input pin of the HT12D will be connected to a receiver which has a serial output. Among the 12-bits, 8 bits are address bits and the HT12D will decode the input if only it matches its current address. This is useful if you want to operate many devices in the same frequency. You could use an 8 pin DIP switch for setting the address value. But I soldered them directly to GND. The HT12D is here operated at 5V and the Rosc value is 470Ω.

Following are the block diagram and schematic diagram for remote controller with four control buttons: Left, Right, Forward and Reverse.

Block Diagram and Schematic

rf remote controller block diagram

RF remote controller block diagram

rf remote controller schematic

RF remote controller transmitter schematic - View PDF

You may wonder why I used the logic gates after the control buttons. It is because I want to drive the four motors in differential mode. Following is the connection diagram for a differential drive of four DC motors using L298N.

motor driver wiring

Motor driver wiring

Here, when I press the Left button, I want M1 and M2 to run in a direction opposite to that of M3 and M4 and same for Right operation. For Forward operation, all the motors will have to run in the same direction. Therefore we just need not only one pin to control but four at the same time. This can not be achieved by SPST push buttons which I've got, unless you have some SPDT switches or a joystick. You'll understand this by looking at the following schematic diagram.

receiver motor driver schematic

Schematic of RF receiver and motor driver - View PDF

rf receiver driver block diagram

Block diagram of RF receiver and motor driver

l298 motor driver pinout

L298 motor driver IC pinout

motor driver logic table

Motor driver logic table for differential driving

As you can see from the above figures, we can not directly pull the inputs in the desired manner just with SPST push buttons. This is where the logic gates come into play. One 4069 CMOS NOR and one 4077 NAND form the logic driver. The output of these logic gates are connected to the inputs of the HT12E and sent serially through the transmitter. Upon receiving the signal, the HT12D will decode the signal and pull the the output pins accordingly which will then drive the L298N and the motors.

Following are the boards I built. Also, don't forget to add fly-back diodes with the motor driver because I haven't shown that in the schematic. Use bypass capacitors anywhere you feel suspicious.

push buttons

L298 motor driver ic

433mhz rf ask receiver module

433mhz rf ask transmitter module

remote controller keypad

remote controller keypad

rf remote controller pcb bottom

RF remote controller PCB - bottom

rf remote controller pcb top

RF remote controller PCB - top

rf remote controller installed

Remote controller PCB installed in a small plastic box

rf remote controller finished

rf remote controller

rf remote controller

rf remote controller

rf receiver driver pcb

RF receiver and motor driver PCB - top

rf receiver motor driver pcb

RF receiver and motor driver PCB - bottom

To see how I built my first ground rover, go to the original post. If you have any doubts or suggestions please send it to my email.

rf ground rover project

Finished Four Wheel RF Ground Rover - View project


  1. RC Four Wheel Ground Rover Mechanical Construction
  2. RC Four Wheel Ground Rover - Hackster
  3. RC Four Wheel Ground Rover - Instructables


Date published : 2:56 PM, 24-04-2015, Friday
Last updated : 10:31 PM, 03-01-2019, Thursday


Made with for Open Source
Copyright © 2014 - 2021  Vishnu M Aiea
Site last updated : IST 11:38 PM 20-01-2020, Monday
Page rendered in 0.0030 seconds. Version 1.2.7