__Requirements:__

This project is about** interfacing RF (Radio Frequency) module with the 8051 microcontroller**. These RF modules help us in sending and receiving the data wirelessly up to certain distance thereby offering ease in wireless data transferring. There are many forms of wireless technologies which can transfer the data such as Bluetooth modules, ZigBee modules, and Wi-Fi modules.

RF is one of these technologies that can be availed at a much less cost and works quite well for small scale projects. These modules are really easy to deal with as they just require the data to be transferred serially and VCC+GND supply of course.

*Fig. 1: Prototype of 8051 Microcontroller based RF Data Transmission*

*Fig. 2: Image of RF data transmitter based on HT12E encoder IC*

*Fig. 3: Image of RF data receiver based on HT12D decoder IC*

__Applications:__

### Project Source Code

### TX #include#include void main() { char p=0; while(1) { p=Read_Keypad(); while(p) { if(p=='1') P3=0x10; if(p=='2') P3=0x20; if(p=='3') P3=0x30; if(p=='4') P3=0x40; if(p=='5') P3=0x50; if(p=='6') P3=0x60; if(p=='7') P3=0x70; if(p=='8') P3=0x80; if(p=='9') P3=0x90; if(p=='0') P3=0x00; if(p=='*') P3=0xa0; if(p=='#') P3=0xb0; if(p=='A') P3=0xc0; if(p=='B') P3=0xd0; if(p=='C') P3=0xe0; if(p=='D') P3=0xf0; p=Read_Keypad(); } } } RX #include #include #include void main() { char p=0; P3=0xf0; Lcd8_Init(); while(1) { while(p!=P3) { p=P3; Lcd8_Cmd(0x80); if(p==0x10) Lcd8_Write_Char('1'); if(p==0x20) Lcd8_Write_Char('2'); if(p==0x30) Lcd8_Write_Char('3'); if(p==0x40) Lcd8_Write_Char('4'); if(p==0x50) Lcd8_Write_Char('5'); if(p==0x60) Lcd8_Write_Char('6'); if(p==0x70) Lcd8_Write_Char('7'); if(p==0x80) Lcd8_Write_Char('8'); if(p==0x90) Lcd8_Write_Char('9'); if(p==0x00) Lcd8_Write_Char('0'); if(p==0xa0) Lcd8_Write_Char('*'); if(p==0xb0) Lcd8_Write_Char('#'); if(p==0xc0) Lcd8_Write_Char('A'); if(p==0xd0) Lcd8_Write_Char('B'); if(p==0xe0) Lcd8_Write_Char('C'); if(p==0xf0) Lcd8_Write_Char('D'); } } } Delay.h void delay_msec(int time) { int i=0; while(i

## Questions related to this article?

👉Ask and discuss on EDAboard.com and Electro-Tech-Online.com forums.

Tell Us What You Think!!

You must be logged in to post a comment.