Wire worked by not wireless


Closed Thread
Results 1 to 17 of 17

Hybrid View

  1. #1
    mankan's Avatar
    mankan Guest


    Did you find this post helpful? Yes | No

    Default It's RF not IR.

    I am doing RF Tx/Rx not an IR. Is there anything special to be taken care of something?

    Thanks,
    Mankan

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


    Did you find this post helpful? Yes | No

    Default

    It doesn't matter whether it's IR or RF. A protocol is a protocol and the priciples are the same. The only difference is that on the receiving end most IR receivers are active low while RF receivers are active high. X-10 has used the NEC IR protocol for their RF remotes for about 20 years, now.

    But, even if you want to use manchester coding, you will still need a preamble to alert the receiver.

    There is one other key difference with IR. IR receivers do not output continuous noise in the absence of a signal, so a preamble is not always necessary. Nevertheless, most protocols still use one.
    Last edited by dhouston; - 20th June 2006 at 01:18.

  3. #3
    mankan's Avatar
    mankan Guest


    Did you find this post helpful? Yes | No

    Default Wired worked but not Wireless..

    Hello Chris,

    I followed your suggestion and I added a pull-up resistor but nothing improved. Any other suggestions.

    I am planning to look at the txmitted code pattern.

    -Mankan

  4. #4
    Join Date
    Oct 2005
    Location
    New Jersey
    Posts
    425


    Did you find this post helpful? Yes | No

    Default Always an option!

    If you can't find someone who has used these modules or get tech support, there is an easier option. Linx Technologies has a transmitter and receiver pair that can cost as low as about $16 (depending upon quantites and where you get them) in the SMT version. Bruce at Rentron.com sells the pinned versions and while I have never used them before, I'm sure they work fine. I have made many different designs with these modules and Linx claims 3000+ feet but I have never seen that but it's probably due to my inefficient layout of the PCB. If your power supply is clean and the correct voltage, you don't need any external components except for the 10K pullup on the receive line. The data in is the data out. If you need a short range, something like 500 feet, you can use the HETH antenna for your frequency which sells for .67 cents. They are easy to use and relatively cheap. One thing I need to mention, if you don't purchase an evaluation kit, they won't give you tech support. However, if you do want one, I have one here that I will sell for a cheap price. No worries though, if you don't want to purchase one, I will still help you if you need it.

  5. #5
    mankan's Avatar
    mankan Guest


    Did you find this post helpful? Yes | No

    Default What is the other way to test a RF link?

    Hello,

    Is the other way to test a RF link? Like using PulsIn and wait for the RF pulse on a particular pin.

    Just to make sure that link works.

    Thanks,
    Mankan

  6. #6
    Join Date
    Oct 2003
    Location
    Australia
    Posts
    257


    Did you find this post helpful? Yes | No

    Default

    Gidday mate,

    You can make this work! Say it out loud 10 times OK!

    When the TX is not sending data the RX will be picking up noise, the PIC will see this noise as data, so you need to do a few things.

    1. Encode the data (which you have already done) and decode at RX.
    2. Add a preamble before you send your data strings,

    eg send about 10 bytes of data (eg "RFDATAREADY") and on your receiver have it waiting for the text "READY"

    Then start sending your data.

    I found that it was useful to use an oscilliscope so you could see the data at TX and RX chips, and see the noise when your not transmitting.

    Good luck
    J

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


    Did you find this post helpful? Yes | No

    Default

    I've used the TWSxxx and RWSxxx (where xxx=MHz) extensively over the past 7-8 years. I have attached a couple of GIFs (captured at the receiver output) that illustrate the problem you have to deal with.

    One GIF is of a marginally weak signal. The upper trace is the LINEAR output pin while the lower trace is the DIGITAL output pin. This happens to be an X-10 RF signal (which uses the NEC IR protocol). You would need to wait in a loop until you receive a valid preamble (e.g. using PulsIn) and then capture the next 32 bits.

    The other GIF shows another approach with a preamble that is repeated a few times prior to the actual code. It takes 2-3 copies of the preamble to set the receiver AGC to a point where the preamble emerges from the noise. You would need to wait in a loop for the preamble and then capture the code which follows.

    As I recall, Holtek merely repeats the entire code several times with the first copies used to set the AGC so you would have to listen all the time for a valid code.

    One more tip: If you do not have access to a 'scope you can record these signals using LineIn of a soundcard. You just need a couple of resistors to form a voltage divider so that the voltage input to the card is in the 0-1V range. This has the added advantage that you can hear the codes, as well. The GIF with the single trace was recorded this way.
    Attached Images Attached Images   

Similar Threads

  1. Need Single wire serial LCD converter example
    By polymer52 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 16th December 2009, 02:30
  2. Wireless Tachometer - Design Help
    By DanPBP in forum Off Topic
    Replies: 2
    Last Post: - 3rd May 2009, 09:06
  3. RS485 Vs Wireless (TWS-434A)
    By koossa in forum Off Topic
    Replies: 3
    Last Post: - 11th April 2009, 12:40
  4. Wireless communication gear.
    By toalan in forum Off Topic
    Replies: 5
    Last Post: - 17th March 2005, 16:33
  5. RPM with wire and PIC
    By Dwayne in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 14th December 2004, 20:42

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