Sign In

Trouble In Getting Signal From RF Receiver Module

Nimantha Mandula New Zealand

Hardware: PIC18F4550 Running At 8Mhz Wired On Breadboard Software: C Programming In Micro C Pro For PIC Software

I have setup all circuits and tested transmitting board with multimeter its sending data to receiver. and i also checked the receiving module as well. its sending data to the microcontroller. My problem is Microcontroller is not reading any data from the receiving module. IO data TTL level of the receiver module is 5V and I setup baud rate is 2400. Am i missed anything? please help me to get it solve this problem. Thank you..



bit Gate1,Gate2;
bit Pgate1;
unsigned short new_DC, current_DC;
 char txt[16];
 char chk;
 int i=0,ckop=0;
 sbit LCD_RS at RD2_bit;
sbit LCD_EN at RD3_bit;
sbit LCD_D4 at RD7_bit;
sbit LCD_D5 at RD6_bit;
sbit LCD_D6 at RD5_bit;
sbit LCD_D7 at RD4_bit;

sbit LCD_RS_Direction at TRISD2_bit;
sbit LCD_EN_Direction at TRISD3_bit;
sbit LCD_D4_Direction at TRISD7_bit;
sbit LCD_D5_Direction at TRISD6_bit;
sbit LCD_D6_Direction at TRISD5_bit;
sbit LCD_D7_Direction at TRISD4_bit;

void main() {

CMCON = 0x07; // Disable comparators
ADCON0=0b00000000;                                   // Configure AN pins as digital I/O
 ADCON1=0x0E;         // Configure RE1 pin as input

 // PORTD = 0;
 //TRISD= 0; //Configure 1st bit of PORTD as output
TRISB= 0b11000011; //Configure 1st bit of PORTB as input
TRISC= 0b11110000; //Configure 1st bit of PORTC as output
//TRISD= 0b00000000;

// PORTD=0x04;

 //for(i=0;i<6;i++){txt[i]=' ';}

   //Lcd_Out(1, 4, "Welcome");
  Lcd_Out(1, 4, "Wel");
  chk = UART1_Read();

  for(i=0;i<16;i++){txt[i]=' ';}
  UART1_Read_Text(txt,")",2);  // reads text until 'enter' is found
  Lcd_Out(3, 2, "Received Data");


R Avinash
2016-10-11 07:24:39
Which RF Module you are using? Provide name, model number and picture.

Post a reply to Nimantha Mandula

Think you can help Nimantha Mandula ? Then post your thoughts that might help Nimantha Mandula. You will earn a lot of reputation in the technical community.

If your program is in multiple files, then ZIP the entire folder and attach below

Images and Screenshots

These helps other better understand your suggestion.