RF module help


Closed Thread
Results 1 to 13 of 13

Thread: RF module help

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Here is a very basic that you can build on.
    Transmit snippet
    Code:
    TRAIN	VAR BYTE
    
    TRAIN=$55
    SEROUT PORTC.4,T2400,[TRAIN,TRAIN,TRAIN,TRAIN,TRAIN,9,3]
    The $55 will "condition" the receiver to a mid point. Then 9 and 3 are sent.

    Receive snippet
    Code:
    SERIN PORTC.4,T2400,[9],net
    Waits for 9 and puts the next character in var net.

    Get this working and then if needed add whatever encoding or chksum or bells or...

    Is that coil the antenna? Looks a little long for you frequency. About 6.5 inches for 433mhz. That is wire length. not coil length. But if it works with the hardware encoder...
    Dave
    Always wear safety glasses while programming.

  2. #2
    Join Date
    Dec 2005
    Posts
    1,073


    Did you find this post helpful? Yes | No

    Default

    Separate the transmitter and receiver physically by 8-10 feet.

  3. #3


    Did you find this post helpful? Yes | No

    Default

    how about getting the modules out of that breadboard and at least on veraboard

  4. #4
    Join Date
    Aug 2008
    Location
    British Columbia, Canada
    Posts
    20


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mackrackit View Post
    Here is a very basic that you can build on.
    ...
    Is that coil the antenna? Looks a little long for you frequency. About 6.5 inches for 433mhz. That is wire length. not coil length. But if it works with the hardware encoder...
    I haven't been able to get simple transmit of a high pin state working yet so i'm going to wait for serial data until that works. but thanks for the code anyway.

    Yes, that is the antenna as it came prewired from the factory.

    Transmitter / Receiver works fine until it's hooked up to the PIC so the antenna must be at least somewhat close. Perhaps it's a 1/2λ antenna?

    Quote Originally Posted by dhouston View Post
    Separate the transmitter and receiver physically by 8-10 feet.
    I usually work with the receiving end on the other side of the room (15 ft away).


    I've been reading other threads where people are suggested to try lower clock frequency on their PIC's, buffering the outputs of the PIC and hooking up comparators. I have none of these options available and would like to know if they actually have helped before I order more parts.
    -Justin

  5. #5
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    I haven't been able to get simple transmit of a high pin state working yet so i'm going to wait for serial data until that works. but thanks for the code anyway.
    You might be waiting a long time.
    The receiver needs "conditioned" or trained. This will basically set the internal capacitor to its mid point. The encoder/decoder chips do this. So if you just send a HIGH, the receiver may already be HIGH and does nothing. The receiver is always receiving something from somewhere, it needs a starting point. dhouston can explain this better or correct me.
    Dave
    Always wear safety glasses while programming.

  6. #6
    Join Date
    Dec 2005
    Posts
    1,073


    Did you find this post helpful? Yes | No

    Default

    Read this...Using the encoder/decoder chips complicate things. Bruce Reynolds posted some code here a few months back showing techniques for working with standalone encoder/decoder chips. The principles will be the same. You'll need to look for the silence that occurs between codes and then listen for the start of the following code.

Similar Threads

  1. Interfacing 16F88 to RF module
    By scomi85 in forum General
    Replies: 2
    Last Post: - 19th February 2009, 12:52
  2. problem with sending data using RF module
    By rano_zen06 in forum mel PIC BASIC Pro
    Replies: 51
    Last Post: - 10th April 2008, 17:08
  3. RF Module
    By shahidali55 in forum General
    Replies: 22
    Last Post: - 9th March 2007, 09:00
  4. Rf module
    By tangray in forum Adverts
    Replies: 0
    Last Post: - 7th August 2006, 07:14
  5. Interfacting RF Module
    By rastan in forum General
    Replies: 8
    Last Post: - 10th November 2004, 22:27

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