PIC-PIC RF Comms


Results 1 to 20 of 20

Threaded View

  1. #1
    Join Date
    Nov 2005
    Location
    Perth, Australia
    Posts
    429

    Default PIC-PIC RF Communication - Range of 1m ??

    Ive set up 2 16F84A's to talk to eachother via RF using a 433Mhz Trans/Recv pair running at 4800 baud.

    My code is below, but something must be wrong becuase the range is a mere 1m. Any further than 1m and it just doesnt work.

    Anyone have any ideas on what could be wrong?

    These are the data sheets of my RF units:
    http://www.altronics.com.au/download...eets/Z6905.pdf
    http://www.altronics.com.au/download...eets/Z6900.pdf

    Transmitter Code:

    Code:
    low PORTB.1                                 ' Initialise RB1
    
    start:
    Serout2 PORTB.1,16572,[$55,$55,$66,$95]     ' Transmit "$95"
    Pause 500                                   ' Wait
    Serout2 PORTB.1,16572,[$55,$55,$66,$99]     ' Transmit "$99"
    Pause 500                                   ' Wait
    Goto start                                  ' Repeat
    End
    Reciever Code:

    Code:
    recvd var word                              ' variable decrarations
    recvd=0                                     ' clear recvd
    low PORTB.0                                 ' turn off LED
    input PORTB.1                               ' set RB1 to input
    
    start:
    Serin2 PORTB.1,16572,[wait ($66),recvd]     ' wait for $66, then store data
    if recvd=$95 then High PORTB.0              ' if recvd=1 turn on LED
    if recvd=$99 then Low PORTB.0               ' if recvd=2 turn off LED
    goto start                                  ' loop
    
    end
    Last edited by Kamikaze47; - 3rd November 2005 at 15:23.

Similar Threads

  1. RF transmiter reciever using PIC
    By drama in forum mel PIC BASIC
    Replies: 5
    Last Post: - 4th October 2007, 16:26
  2. Generating RF from a PIC
    By Rob Martin in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 26th January 2006, 20:26
  3. PIC to PIC serial comms
    By damiko in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 29th July 2005, 17:40
  4. Pic to Pc Comms
    By Darrenmac in forum General
    Replies: 2
    Last Post: - 21st May 2005, 01:44
  5. Serial Pic to Pic using HSER
    By Chadhammer in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 11th March 2005, 23:14

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts