fbpx

Interface Rf With 8051

Radio frequency module is a electronics device used to transmit and receive radio signal between two device.

  • Wireless communication is accomplished through radio frequency (rf).
  • Several carrier frequencies are commonly used in commercially-available RF module.
    433.92 MHz, 315 MHz, 868 MHz, 915 MHz, and 2400 MHz.
  • By increasing the transmitter power, a larger communication distance will be achieved.
  • The performance of the overall system may be improved by using matched antennas at each end of the communication link.
  • RF module consist of two part
    1. Transmitter section.
    2. Receiver section.

Transmitter

  • An RF transmitter module is capable of transmitting a radio wave and modulating that wave to carry data.
  • Transmitter modules connected with a microcontroller which will provide data to the module which can be transmitted.

Receiver

  • An RF receiver receives the modulated RF signal, and demodulate it.
  • There are two type of RF receiver module
    1. Superheterodyne.
    2. Super-regenerative.

Super Heterodyne

  • Super-regenerative module are generally imprecise as their frequency of operation varies considerably with temperature and power supply voltage.

Super Regenerative

  • Super-regenerative module are usually low cost and low power design using a series of amplifiers to extract modulated data from a carrier wave.

Application

  • Robot remote control,
  • Wireless data transmissions,
  • Alarm systems,
  • Digital home automation,
  • Industrial data acquisition system.

Hardware Required

  • Rf Module,
  • 8051 MicroController.

RF Pinout

Rf Receiver

  • Vcc=+5v.
  • Data=To Microcontroller pin.
  • Gnd=Gnd.

Rf Transmitter

  • Vcc=+5v.
  • Data1=To Microcontroller pin.
  • Data2=To Microcontroller pin.
  • Gnd=Gnd.

Transmitter Circuit

Receiver Circuit

Virtual Circuit

Rf Receiver

Rf Transmitter

Code

RF Transmitter

 #include<reg51.h>
 void delay()
 {
 int i,j;
 for(i=0;i<1000;i++);
 for(j=0;j<100;j++);
 }
 void main()
 {
 while(1)
 {
 P3=0xf0;
 delay();
 }
 } 

RF Receiver

 #include<reg51.h>
 void delay()
 {
 int i,j;
 for(i=0;i<1000;i++);
 for(j=0;j<100;j++);
 }
 void main()
 {
 int a=0;
 a=P3;
 if(a==0xf0)
 {
 P2=0x00; // Make Port0 0th Pin High
 delay(); // Time Interval
 }
 else
 {
 P2=0x00; // Make Port0 0th Pin High
 delay(); // Time Interval
 }
 } 

Leave a Reply

Your email address will not be published. Required fields are marked *