Reliable wireless data transfer


Closed Thread
Results 1 to 12 of 12

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default

    As I noted, this was adapted from code that I've used many times. There was a spate of posts here about wireless links and I put that together quickly as an example of a simple approach that I knew worked. The SLEEP statement was a last minute addition - it should have been a PAUSE or the WDT should have been on. It was intended as a break between repeats to make analysis easier which will usually be determined by the application. But the fundamental approach should be OK and I've heard from a couple of people who adapted it to their application.
    Last edited by dhouston; - 6th May 2009 at 11:34.

  2. #2
    Join Date
    Sep 2003
    Location
    INDIA
    Posts
    161


    Did you find this post helpful? Yes | No

    Default Thanks Dave,

    I actually I had an error compiling the code and that was sorted out in some other thread in the forum (by Skimask). Wonder why was it not corrected in this thread. Actually, I accidentally ran into the thread and found answers to the error.

    Actually , I got good result in using Bruce's code earlier.

    My application was a relay control with Toggle and Momentary action. While Toggle worked great , Momentary had a problem.

    I hope your approach would help me.

    Shall post the results soon.

    Thank you once again for your code.

    regards

  3. #3
    incognico's Avatar
    incognico Guest


    Did you find this post helpful? Yes | No

    Default Thanks!

    Just wanted to say thanks for sharing this code Dave.

    A couple of trivial modifications for my application and choice of PICs, and it's working great. Appreciate your efforts

    --Nick

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


    Did you find this post helpful? Yes | No

    Default

    @incognico

    Glad it was helpful.

  5. #5


    Did you find this post helpful? Yes | No

    Default

    Dave , your website is an excellent resource ..thank you!

    Just curious about the code here.

    Would you suggest specific oscillator settings ? Eg. External 4,8 or 20MHZ or would it be at all possible using the internal oscialltor?

    Any particular pin choices for TX on the transmitter side and RX on the receiver side ?

    Any info would be much appreciated.

    Kind regards
    Dennis

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Dennis View Post
    Would you suggest specific oscillator settings ? Eg. External 4,8 or 20MHZ or would it be at all possible using the internal oscialltor?
    I almost always use the internal oscillator.

    Quote Originally Posted by Dennis View Post
    Any particular pin choices for TX on the transmitter side and RX on the receiver side ?
    Any pin, except for MCLR, should be OK. It really depends more on what other functions you want the PIC to handle.

    Almost all the transmitters are SAW controlled so their frequency is independent of the PIC and most protocols can tolerate ±10-20 variation in pulse/space durations

  7. #7


    Did you find this post helpful? Yes | No

    Default

    Dave
    Thanks a million for the reply!
    So if I wanted to send the value from two 8-pin dip switches I could alter the code to something like
    SW1 var byte
    SW2 var byte

    SW1 =RF[0]
    SW2 =RF[2]
    Am I correct ?

    And since this is a rather well established protocol there should be no need for things like holtek or motorola encoder decoder pairs ..not so ?

    Is there any chance of a code snippit to add a 3rd byte of data ?
    Last edited by Dennis; - 20th November 2009 at 12:52.

Similar Threads

  1. Using Nokia LCD
    By BobP in forum mel PIC BASIC Pro
    Replies: 300
    Last Post: - 3rd May 2018, 04:47
  2. Read/Write Problem
    By Tobias in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 10th February 2010, 01:51
  3. Big characters on HD44780 4x20
    By erpalma in forum mel PIC BASIC Pro
    Replies: 23
    Last Post: - 7th January 2007, 02:21
  4. LCD + bar graph
    By DynamoBen in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 5th October 2005, 14:50
  5. Sinus calculating !
    By Don Mario in forum mel PIC BASIC Pro
    Replies: 29
    Last Post: - 28th November 2004, 23:56

Members who have read this thread : 1

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