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 :



RF Module(Proteus)

Download This Project(Google Drive)


Thank You!




41 comments:

  1. Hey Hello...

    I want to ask one question regarding this RF based LED Switching project that you have provided for us..

    I just want to know is it necessary or not to avoid encoder and decoder IC's in this project?

    As per your circuit diagram you are not using that encoder and decoder IC's...

    Please help me...

    Thank You...

    ReplyDelete
    Replies
    1. I didn't use any decoder or encoder circuit and I've no practical experience of using encoder or decoder. Maybe for making something secured you need encoder or decoder I guess. Thank you.

      Delete
  2. Hi a question, Is necessary in this circuit ,use a crystal of 12 MHz ?,Can I use other crystal? for example 10 MHz,20 MHz or internal crystal of uC . :)

    ReplyDelete
    Replies
    1. If you use my code I mean hex file then you need 12MHz clock. But if you build project using my code you just need to define crystal frequency as you want. THat's it.

      Delete
  3. The LED screens has always created its own impact in the indoor advertisements, the one classic example of the LED has been in the airports which uses the LED screen to display announcements, notices and alerts. LED display

    ReplyDelete
  4. hi, please could you send the download link for the rf transmitter and receiver library for proteus. Thanks

    ReplyDelete
  5. Somebody Sometimes with visits your web journal consistently and prescribed it as far as I can tell to peruse also. The method for composing is fabulous furthermore the substance is first rate. Much obliged for that understanding you give the perusers!
    I can't envision concentrating sufficiently long to research; considerably less compose this sort of article. You've beaten yourself with this material. This is extraordinary substance.
    Amazing Web Facilitating

    ReplyDelete
  6. Simply a grinning visitant here to share the affection (:, btw extraordinary style.
    Polk Audio T50

    ReplyDelete
  7. I was more than happy to uncover this great site. I need to thank you for your time due to this fantastic read!!
    I definitely enjoyed every bit of it and I have you bookmarked to see new information on your blog.
    humidifier dehumidifier combo

    ReplyDelete
  8. I was more than happy to uncover this great site. I need to thank you for your time due to this fantastic read!!
    I definitely enjoyed every bit of it and I have you bookmarked to see new information on your blog.
    WordPress Chat Plugin

    ReplyDelete
  9. You should mainly superior together with well-performing material, which means that see it: website

    ReplyDelete
  10. Replacing a Remote Codes for TV & DVD means programming the new one. Here's a quick look at the options when replacing or consolidating your remote controls.

    ReplyDelete
  11. My physics lesson is one of the things I miss the most. We used to do a lot of electrical experiments there, and now that school is over, I'm stuck behind the digital bars. It's becoming increasingly difficult for me to experiment on my own. I need to complete an assignment and would appreciate it if you could Write My Dissertation Uk for me. I believe I'll be able to finish this experiment after that. So, what are your thoughts on the matter?

    ReplyDelete
  12. I really like your article. It’s evident that you have a lot knowledge on this topic. Your points are well made and relatable. Thanks for writing engaging and interesting material. LED Exit Signs

    ReplyDelete
  13. You'll want a cool, dark environment with temperatures in the range of 59-71°F and humidity at or near 50%. Yes, even after the growing process is completed, you still need to be concerned with temperature and humidity. read full guide of ideal temp and humidity for grow tent on our website

    ReplyDelete
  14. visit our website and download wordpress plugins and themes

    ReplyDelete
  15. you can now download thoptv apk from our website and also download other mod apks and games

    ReplyDelete
  16. Thanks for taking the time to discuss this, I feel strongly that love and read more on this topic. If possible, such as gain knowledge, would you mind updating your blog with additional information? It is very useful for me. mean well led driver

    ReplyDelete
  17. It is the kind of information I have been trying to find. Thank you for writing this information. It has proved utmost beneficial for me. https://pelisplus.world

    ReplyDelete
  18. You have a real talent for writing unique content. I like how you think and the way you express your views in this article. I am impressed by your writing style a lot. Thanks for making my experience more beautiful. https://vegamovies.network

    ReplyDelete
  19. This is such a great resource that you are providing and you give it away for free. I love seeing blog that understand the value of providing a quality resource for free. https://dixmax.website

    ReplyDelete
  20. Wow, this is fascinating reading. I am glad I found this and got to read it. Great job on this content. I liked it a lot. Thanks for the great and unique info. https://movieswood.today

    ReplyDelete
  21. Nice post! This is a very nice blog that I will definitively come back to more times this year! Thanks for informative post. https://projectfreetv.today

    ReplyDelete
  22. Your content is nothing short of bright in many forms. I think this is friendly and eye-opening material. I have gotten so many ideas from your blog. Thank you so much. https://moviezwap.website

    ReplyDelete
  23. For decades, if not centuries, Indian furniture has adorned numerous homes across the world. glow in the dark furniture

    ReplyDelete
  24. I other than spread out an article on an on a massively beast level dull subject will see it at make your evaluation. LED robots

    ReplyDelete
  25. The game of warfare and strategy involves using the righ game of warriors lets you do. The high-quality gameplay requires you to build a perfect kingdom with the ideal defence strategy. Fight and defeat your enemies in this engaging gameplay.

    ReplyDelete
  26. This comment has been removed by the author.

    ReplyDelete
  27. LED lighting frameworks are more practical in two ways. glowing balls

    ReplyDelete

Ain't getting any visitors!
Please Share and Bookmark posts.

Tags

: (1) 18F2550 (1) 36KHz (3) and (1) arduino (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) keyboard (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 (2) 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)

Traffic Feed


Live Traffic Feed
Visitor Tracking

Leave Your Message Here

Name

Email *

Message *

Like on Facebook