Wednesday, October 28, 2015

RF (433 MHz) Module Controlled LED Switching Project using Pic Microcontroller



RF Modules are popularly used in remote control system . In  Quadcopter , Robot remote control , Industrial remote control, telemetry and remote sensing etc.  Get more details here RF_Wiki
Microcontroller Project : RF 433 MHz ( Wireless Radio Frequency ) Module Controlled LED Switching using Pic Microcontroller

Basic Concepts:

RF module consists of Two Units Transmitter and Receiver. We will use two pic microcontrollers to create transmitter section and receiver section. In Transmitter section we will connect one pic18f2550 with Transmitter and this will transmit signal according to the commands. The Receiver section will be built with another pic18f2550 and receiver unit. This section will receive signal from transmitter unit and the receiver unit will send data to the microcontroller. Finally microcontroller will execute led switching according to  instructions.

RF Transmitter :


RF Module ( Wireless Radio Frequency )Transmitter_Tx
RF Module ( Wireless Radio Frequency )Transmitter_Tx
RF Module ( Wireless Radio Frequency )Transmitter_Pin Out
RF Module ( Wireless Radio Frequency )Transmitter Pinout

RF Receiver :

RF Module ( Wireless Radio Frequency ) Receiver Rx
RF Module ( Wireless Radio Frequency ) Receiver Rx


RF Module ( Wireless Radio Frequency ) Receiver pin out
RF Module ( Wireless Radio Frequency ) Receiver Rx


 Source Code :

# Transmitter :

 




char txt[16];  
 char chk;  
 int i=0,ckop=0;  
 void main() {  
 ADCON1=0x0F;         // Configure RE1 pin as input  
 CMCON=7;  
 for(i=0;i<16;i++){txt[i]=' ';}  
   TRISA.F0=1;  
    TRISA.F1=1;        // Initialize ADC  
      TRISA.F2=1;  
      TRISA.F3=1;  
   UART1_Init(2400);  
      delay_ms(200);            // Initialize LCD  
  while(1){  
  if(PORTA.F0==0){  delay_ms(100);  
  if (UART1_Tx_Idle() == 1)  
  UARt1_Write_Text(",,,,,,,,,,,");  
 UART1_Write('(');  
   UART1_Write('A');  
  UART1_Write(')');  
   UARt1_Write_Text(",,,,,,,,,,,");  
  }  
 if(PORTA.F1==0){   delay_ms(100);  
  if (UART1_Tx_Idle() == 1)  
   UARt1_Write_Text(",,,,,,,,,,,");  
 UART1_Write('(');  
  UART1_Write('B');  
  UART1_Write(')');  
   UARt1_Write_Text(",,,,,,,,,,,");  
  }  
 if(PORTA.F2==0){  delay_ms(100);  
  if (UART1_Tx_Idle() == 1)  
  UARt1_Write_Text(",,,,,,,,,,,");  
 UART1_Write('(');  
  UART1_Write('C');  
  UART1_Write(')');  
   UARt1_Write_Text(",,,,,,,,,,,");  
  }  
  if(PORTA.F3==0){  delay_ms(100);  
  if (UART1_Tx_Idle() == 1)  
   UARt1_Write_Text(",,,,,,,,,,,");  
 UART1_Write('(');  
  UART1_Write('D');  
  UART1_Write(')');  
   UARt1_Write_Text(",,,,,,,,,,,");  
  }  
 }  
 } 

# Receiver :

 





char txt[16];
char chk;
int i=0,ckop=0;
void main() {
ADCON1=0x0E;                  // Configure RE1 pin as input
CMCON=7;
for(i=0;i<16;i++){txt[i]=' ';}
    TRISB.F3=0;
      TRISB.F2=0;               // Initialize ADC
       TRISB.F1=0;
        TRISB.F0=0;

    UART1_Init(2400);
         delay_ms(200);                       // Initialize LCD

  while(1){
   ckop=2;
    if (UART1_Data_Ready() == 1) {

 chk = UART1_Read();
   if(chk=='('){
 for(i=0;i<16;i++){txt[i]=' ';}
   chk=  ' ';
 UART1_Read_Text(txt,")",2);    // reads text until 'enter' is found
   if(txt[0]=='A'){
  PORTB.F0=1;
  PORTB.F1=0;
  PORTB.F2=0;
  PORTB.F3=0;
  }
      if(txt[0]=='B'){
  PORTB.F0=0;
  PORTB.F1=1;
  PORTB.F2=0;
  PORTB.F3=0;
  }
  
     if(txt[0]=='C'){
  PORTB.F0=0;
  PORTB.F1=0;
  PORTB.F2=1;
  PORTB.F3=0;
  }
  if(txt[0]=='D'){
  PORTB.F0=0;
  PORTB.F1=0;
  PORTB.F2=0;
  PORTB.F3=0;
  }
  
  }
  }




}
}


Proteus Circuit:


Now just complete the circuit as I have given below .
Microcontroller Project : RF 433 MHz ( Wireless Radio Frequency ) Module Controlled LED Switching using Pic Microcontroller
Microcontroller Project : RF 433 MHz ( Wireless Radio Frequency ) Module Controlled LED Switching using Pic Microcontroller

Microcontroller Project : RF 433 MHz ( Wireless Radio Frequency ) Module Controlled LED Switching using Pic Microcontroller
Microcontroller Project : RF 433 MHz ( Wireless Radio Frequency ) Module Controlled LED Switching using Pic Microcontroller

Result :

Microcontroller Project : RF 433 MHz ( Wireless Radio Frequency ) Module Controlled LED Switching using Pic Microcontroller
Microcontroller Project : RF 433 MHz ( Wireless Radio Frequency ) Module Controlled LED Switching using Pic Microcontroller
Microcontroller Project : RF 433 MHz ( Wireless Radio Frequency ) Module Controlled LED Switching using Pic Microcontroller
Microcontroller Project : RF 433 MHz ( Wireless Radio Frequency ) Module Controlled LED Switching using Pic Microcontroller

Watch Real Life Video :



Download This Project(Google Drive)


Thank You!




Reactions:

4 comments:

Post a Comment

Share and Bookmark this Blog

Tags

: (1) 18F2550 (1) 36KHz (3) and (1) Based (1) battery (1) Bipolar (1) Blinking (1) blinks (1) Bluetooth (1) bluetooth device interfacing (1) bluetooth module (1) button (1) circuit (1) clock (1) control (1) crystal oscillator (3) Db9 (1) DC Motor (2) digital (2) Digital Voting Machine (1) digital voting machine using pic (1) display (2) DS1307 (1) electronic (1) embedded c programming tutorial (11) embedded c tutorial (11) experiment kit (4) external interrupt (4) flash (1) flashing (1) Gas Leakage detector (1) HC-06 (1) home (1) how (1) How to (10) i2c tutorial (1) in (1) indicator (1) infrared Connection (3) interface (8) interfacing (3) Interrupt (3) Introduction (1) IR Connection (3) IR Receiver (4) IR Transmitter (4) key pad (1) keypad (1) lavel (1) Lcd 16x2 (2) lcd 2x16 (2) led (1) lm35 (2) LPG (1) machine (1) make (1) Make bootloader (1) making (1) matrix (1) max232 (1) membrane keyboard (1) meter (2) Micocontroller (1) microchip (4) microchip pic (2) microchips (3) microcontroller (9) microcontroller based (3) microcontroller programming (3) Microcontroller Project (4) Microcontroller Projects (1) microcontroller_project (2) microcontrollers (4) Microprocessor (2) mikroC (5) mikroc code to start and stopstart and stop dc motor (1) mikroc pro for pic (2) Motion detector (1) MQ-9 Gas Sensor (1) musical (1) NEC Protocol (4) pcb (5) PIC (3) pic controller (11) pic microcontroller (11) pic microcontroller tutorial (11) pic programming (1) pic programming in c (12) pic proteus (1) Pic Tutorial (12) pic18 (2) pic18f2550 (11) picmicrocontroller (4) picRFモジュール (1) PIR Motion Sensor (1) printed circuit board (1) proteus (6) pulse width modulation (1) push (1) push button (1) PWM (1) real (1) rf transmitter (3) Rs 232 (1) Rs232 (1) scroll (1) scrolling (1) Serial communication (1) Serial Connection (1) Serial Port (1) serial port rs232 (1) Servo Motembedded c programming tutorial (1) simulation (2) Soil Moisture Meter (1) speed control (1) step by step (7) step bystep (1) Stepper Motor (2) text (2) Thief Detector (1) time (1) timer (4) timer0 (4) tone (1) TSOP38236 Receiver (4) tutorial (2) Unipolar (1) USART Connection (1) USB (1) usb 1.0 (1) USB bootloadere (1) USB HID (1) using (9) voltmeter (1) voting (1) water level indicator (3) with (2) work (1)

Live Traffic Feed


Live Traffic Feed
Live Traffic Feed

Comment Option isn't working properly

Comment option isn't working properly. If you have anything to say, you are requested to use the "Contact Form" below here.

Leave Your Message Here

Name

Email *

Message *

Google+ Followers

Like on Facebook