A very very very strange problem-Urgent help needed please!


Closed Thread
Results 1 to 24 of 24

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    And the PT encoders/decoders do what exactly?... they take a carrier and MODULATE it with a PWM ENCODED signal at one end, and then decode it at the other end. They DON'T try to send RAW DATA. Actually the PT encoders DON'T modulate the carrier themselves, they provide the Tx Module with an equivallent 'AUDIO' signal which is then modulated within the AM or FM Transmitter Module. At the receiver end, the receiver, after demodulation, sends this 'Audio' component to the PT Decoder which then decodes the signal.

    The usual junk Tx/Rx Modules are NOT the wireless equivallents of a piece of wire linking two ends of a Serial Link (like RS232).

    Any Radio Ham will tell you (and there are quite a few on this forum) that you can't send high-speed RTTY (eg your Serial Data) using CW (A1A class modulation). If it was Audio (tone) Modulated (A2A) you'd have a better chance (because you obviously have either an AM or an FM Tx/Rx pair) and at least you'd be using the integral modulator - the way the designers of the modules intended them to be used. If you want range AND reliability, then for example you would pick say an F1 or F2 Modulation type.

    Some Tx/Rx Modules have integral DATA MODULATORS with integral ENCODERS/DECODERS and can guarantee DATA-IN/DATA-OUT. Most modules haven't! They rely on YOU providing a signal (usually an AUDIO Tone or Tones) which are then modulated onto a carrier by either AM or FM (with FM having superior noise rejection - which is why you pay more for those). Now the PT encoders usually provide a 1kHz signal (give or take) which then varies depending on what information it conveys... note that 1kHz signal being the equivallent of your Audio Tone which is then MODULATED onto your carrier.

    If you are just keying a carrier (which is what you are doing), all you are doing at the receiver end is the equivallent of switching your squelch control (a crude anomaly but will suffice for this explaination). Great. It works. But in doing this you have just sacrificed 95% of your range.

  2. #2
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    If you're up for a test, try the two .hex files attached. One for an encoder, and one for a
    decoder.

    Both files have been compiled for a 12F635. Schematics for connections are in the screen
    captures. If your RF modules can handle 4800bps, connect the baud pins to Vcc.

    For 2400bps connect the baud pins to ground.

    D0-D3 on the decoder are momentary, and should stay high for as long as a button on the
    encoder is held at Vcc. Let me know what kind of range you get.
    Attached Files Attached Files
    Last edited by Bruce; - 14th November 2009 at 16:46.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  3. #3


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Bruce View Post
    If you're up for a test, try the two .hex files attached. One for an encoder, and one for a decoder.

    ........... Let me know what kind of range you get.
    Sure Bruce, I will let you know as soon as possible. Thanks.

  4. #4


    Did you find this post helpful? Yes | No

    Question Results for the hex files...

    Hi, Bruce. The PICs with these hex files are not working. So I put my setup on a breadboard and by using a piece of wire between GP.5 of both. I do see a voltage pulse on GP.5(Tx) of the Transmitter but no response from the receiver. I used 2400 Baud. I await your feedback.
    Last edited by FromTheCockpit; - 15th November 2009 at 15:41.

  5. #5
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Can you post photos of what you have assembled & indicate which RF modules, power supply, etc you're using?
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  6. #6


    Did you find this post helpful? Yes | No

    Post

    Here is the photo of my bread-board setup. The LED to right of the 1uF Cap is for power indication.
    I don't have any technical details about these modules apart from that they are ASK based and are for short range RF applications. I have tested other simpler codes with them and PT enc/dec as well, everything works perfectly. They don't have any sort of marking on them as well so I can search the internet.

    My power supply if from 7805. Power supply is ok as I keep testing small projects every other day.
    Attached Images Attached Images  
    Last edited by FromTheCockpit; - 15th November 2009 at 17:01.

  7. #7
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Made a slight adjustment. These should work on pretty much any RF modules.
    Let me know if this version works for you.
    Attached Files Attached Files
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

Similar Threads

  1. strange serout2 problem
    By KaanInal in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 7th January 2010, 09:33
  2. PIC stop responding - Strange Problem!
    By financecatalyst in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 31st August 2009, 14:06
  3. Strange I2C problem (and solution)
    By brid0030 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 5th December 2008, 19:14
  4. Strange problem with Serin/Serout on 16F628
    By Atom058 in forum mel PIC BASIC Pro
    Replies: 23
    Last Post: - 22nd August 2008, 00:16
  5. strange problem 12f675
    By peterdeco1 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 5th July 2007, 13:47

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