It consists of 2 modules
1. Transmitter
For example, if a code "R" is sent from the Computer serial port the microntroller sends "0x01" to RF Transmitter and a string "Right" back to the computer indicating the direction the robot is going to move.
To Interface 8051 with RF Transmitter, we use a Encoder IC HT12E. A0 to A9 on HT12E represents the address and we have it set to 0x00. Data pins D3 to D0 on the encoder is interfaced with P1.0 to P1.3 of 8051. TE pin of encoder is "Transmission Enable" which enables transmission of data only when it is "Active Low". In our case, the transmission enable is controlled programatically with P1.4 of 8051. The complete circuit is below.
8051 Interfacing with RF Transmitter and Encoder HT12E |
2. Receiver
The receiver consists of
a. RF Receiver
b. Decoder Chip HT12D
c. 8051
d. H-Bridge L293D
e. DC motors.
To Interface 8051 with RF Receiver, we use a DecoderIC HT12D. A0 to A9 is complementary to Address set on Encoder and hence it is 0x00. Data pins D3 t0 D0 are interfaced to pins P1.0 to P1.3 of 8051. Whenever data is received, Pin 17 of the decoder goes high. We use a switching transistor to invert it to "Active Low" to enable us to interface it with "Active Low" INTO Interrupt of 8051. So whenever data is received, INT0 is triggered. The microntroller reads the data from the P1.0 to P1.3 and sends appropriate signals to H-Bridge via P0.0 to P0.3 to control the motors.
8051 Interface with RF Receiver and RF Decoder HT12D |