problem with sending data using RF module


Closed Thread
Results 1 to 40 of 52

Hybrid View

  1. #1
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    as i said you could use the internal analog comparator instead.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  2. #2
    Join Date
    Mar 2008
    Posts
    19


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mister_e View Post
    as i said you could use the internal analog comparator instead.
    ok..now there is 3 pin for comparator inside the 16F877A. How do I connect it with my
    Receiver..?? I'm just a little bit confuse with C1out and C2 out which is port A.4 and Port A.5. What's the different between these 2 pins ?? which one should I use? and what is the instruction to turn on the internal comparator??

  3. #3
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    OK, i'll start a new thread later about how using the internal comparators.

    Do you have any oscilloscope?

    In meantime you could do some test with an external comparator... LM339 and.. yeah lm741 or any other op-amp COULD work.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  4. #4
    Join Date
    Mar 2008
    Posts
    19


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mister_e View Post
    OK, i'll start a new thread later about how using the internal comparators.

    Do you have any oscilloscope?
    yes, there's a digital oscilloscope at my lab. But at this time, my lab still not open for student. It's just 6.30 in the morning here..so, must wait for 2 hour before I can use it.
    I will use the oscilloscope later to check the output of RF module.Then I will attach the picture of TX and Rx signal for your review.
    Last edited by rano_zen06; - 3rd April 2008 at 21:07.

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


    Did you find this post helpful? Yes | No

    Default

    Almost all (in fact, all of the many that I've used) ASK RF receivers have a dataslicer just before the digital output. The dataslicer uses a comparator (as I explain at http://davehouston.org/RFTipsTricks.htm). Adding another comparator might be useful for educational purposes but is of little practical value (IMO). In this case, the only output from the receiver is digital so the noise pulses will have the same amplitude as the data and the duration of the noise pulses are likely to be nearly the same as the bit period. What kind of comparator circuit are you planning?

    It is far simpler to use a relatively wide sync pulse followed by the data. The receiver can look for the sync pulse and only after receiving it, look for the data. The data can use almost any protocol desired, including RS232 with or without manchester coding. The single, wide sync pulse works much better than multiple $55 sync bytes. I also recommend sending 3 or more copies of each packet, including the wide sync pulse.

  6. #6
    Join Date
    Mar 2008
    Posts
    19


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by dhouston View Post
    Almost all (in fact, all of the many that I've used) ASK RF receivers have a dataslicer just before the digital output. The dataslicer uses a comparator (as I explain at http://davehouston.org/RFTipsTricks.htm). Adding another comparator might be useful for educational purposes but is of little practical value (IMO). In this case, the only output from the receiver is digital so the noise pulses will have the same amplitude as the data and the duration of the noise pulses are likely to be nearly the same as the bit period. What kind of comparator circuit are you planning?

    It is far simpler to use a relatively wide sync pulse followed by the data. The receiver can look for the sync pulse and only after receiving it, look for the data. The data can use almost any protocol desired, including RS232 with or without manchester coding. The single, wide sync pulse works much better than multiple $55 sync bytes. I also recommend sending 3 or more copies of each packet, including the wide sync pulse.
    I use oscilloscope to check the data pin for my Rx and Tx module without comparator and the result is not very good.The signal I got show a lot of noise especially at my receiver. You can see the waveform picture at my attachment. I also add the comparator using LM741 to my Rx but something bad happen.my LCD shows nothing and my voltage drop from 5v to 2.3V. I think there is something wrong with my comparator circuit.So..I attached together the schematic of my comparator.Anyone here..please help me to troubleshoot this problem.
    Attached Images Attached Images    
    Last edited by rano_zen06; - 4th April 2008 at 16:14.

  7. #7
    Join Date
    Mar 2008
    Location
    Texas, USA
    Posts
    114


    Did you find this post helpful? Yes | No

    Default

    Check your comp drawing. If it's correct, you're sending the comp to rails. I think you ment to take the output of the rec to the inverting input, not ground. The 100uf cap is a bit much. I'd use a 1uf or even a .1uf.

    Also, what's the signal look like at 1.8khz (same speed as the tx). Your receiving scope pix says you'r reading at 19.3mhz. If your data is riding on the noise at 1.8khz, you'll need to filter the noise in a LF band pass amp.
    Last edited by JD123; - 4th April 2008 at 16:34.
    No, I'm not Superman, but I did stay at a Holiday Inn Express last night!

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 : 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