rf data transmission pic
Hi all,
I have a question regarding RF transmission from PIC to PIC. Please share with me your idea and thanks a lot for your help!!
Basically I am using USART of PIC16F877 to transmit data from one PIC to another. When I use wire to transfer, everything works fine. However, when I use RF transmitter and receiver just to replace the wire in between the two PICs, the receiver PIC receive garbage value and through to LCD.
Transmitter:RF RTFQ2
Receiver: RF RRFQ2
I do not use any decoder or encoder. I connect the TX pin of one PIC to the data-in pin of RTFQ2, and data-out pin of RRFQ2 to RX pin of another PIC.
This afternoon I used the system:
PIC1 - RF RTFQ2 - RF RRFQ2 - Oscilloscope
to check the data-out pin of RF RRFQ2 and found that the input signal from PIC1 and output signal from RF RRFQ2 almost have the same shape with (1). only a little lag (2). the output signal has a 4V voltage compared to 5V of input signal.
But when I connected the output signal from RF RRFQ2 to PIC2, the LCD gave junk value...
With wire the out put is: HAAAAHAAAAHAAAA...
With RF the output is: H****H****H****... * here represent junk code and its pattern is fixed, 4 fixed junk code followed by one H
Is there any special thing I should take care of for this kind of implementation?..
Attached is the test code of transmitter and receiver in C. If you want any other
information, please tell me and I'll follow up. Thanks in advance!