RFM12 with picbasic_pro


Closed Thread
Results 1 to 18 of 18

Hybrid View

  1. #1
    Join Date
    Feb 2010
    Location
    USA, New England
    Posts
    164


    Did you find this post helpful? Yes | No

    Default Re: RFM12 with picbasic_pro

    Hello Craig,

    Have you made any changes to the code? Perhaps added an interrupt that might be pulling it out? If you have made some changes please post your code, it might be somewhat easier than guessing...

    Just to test something, try replacing
    Code:
    TXWait:
      if nirq = 1 then
          goto TXWait
      endif
    with "pause 100" or something like that.

    Also, check with a meter or scope that nIrq actually goes low.

    Best Regards,
    Paul
    The way to avoid mistakes is to gain experience. The way to gain experience is to make mistakes.

  2. #2
    Join Date
    Oct 2011
    Posts
    10


    Did you find this post helpful? Yes | No

    Default Re: RFM12 with picbasic_pro

    Hi Paul

    Thanks for the reply, I have used the code exactly like you have written it without any extra interupts etc.
    What I did was remove the TXWait and just put a PAUSE 100 in then it does transmit.
    What is funny is if I put a meter on the nIRQ pin then it keeps sending info on the SEROUT2 and the TX Led remains ON,
    If I take the meter off the pin then it settles down ant the TX Led switches off. What I did was wire an extra LED onto a unused pin on the PIC and then
    monitor this in relation to the nIRQ pin when it goes High or Low.

    I read no voltage on the nIRQ pin but the extra led stays on so there is something weird with this pin?
    Maybe I should rebuild the PCB onto a Veraboard instead on leaving it all on a Bread Board as there seems
    to be a lot of capacitance floating around, I suppose that this could cause a problem on the nIRQ pin?

    What can you suggest Paul?

    Kind Regards

    Craig
    Last edited by craigwb; - 13th March 2014 at 15:56.

  3. #3
    Join Date
    Feb 2010
    Location
    USA, New England
    Posts
    164


    Did you find this post helpful? Yes | No

    Default Re: RFM12 with picbasic_pro

    Hello Craig,

    I suspect you've found the problem--capacitance (or other leakage) in the setup. Good job! I think you'll do better on veraboard... For a quick fix try putting relatively high value pull-down resistors (~10k to 1M) on the nIrq and LED pins. From what you describe something is causing one of those pins to float high.

    Best Regards,
    Paul
    The way to avoid mistakes is to gain experience. The way to gain experience is to make mistakes.

  4. #4
    Join Date
    Oct 2011
    Posts
    10


    Did you find this post helpful? Yes | No

    Cool Re: RFM12 with picbasic_pro

    Thanks Paul

    I will rebuild and see how it goes.

    Kind Regards

    Craig

  5. #5
    Join Date
    Jan 2013
    Posts
    64


    Did you find this post helpful? Yes | No

    Default Re: RFM12 with picbasic_pro

    Hi All,
    I've just ordered some similar RFM modules, and hope to get them working. The code above looks good, and thanks.
    Camerart.

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