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

    See pics in POST#1. 16F877A, and seems ADCON1 and CMCON settings are right.

    Once the wire connection will work, i may suspect 2 other things.
    1)open collector output of the receiver
    2)use inverted mode instead. so the pin will idle low.
    Last edited by mister_e; - 2nd April 2008 at 13:48.
    Steve

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

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    877A
    Well that is what happens when you do not look at the attachments.

    But on the transmitter part I still do not see ADCON1 = 7.
    And on the receiver part I do not see CMCON = 7.

    And in the schematic pin 3 of the LCD goes straight to ground. No pot for contrast. I know on some modules this works, but are you sure it is this time.

    not much help.
    Dave
    Always wear safety glasses while programming.

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


    Did you find this post helpful? Yes | No

    Default

    woopseee ... just saw that missing ADCON1
    but in theory... analog comparator are already disabled at POR...
    Steve

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

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


    Did you find this post helpful? Yes | No

    Default

    As drawn, both Reset switches are shorting +5V to GND.

    Can you provide details for your transmitter and receiver module manufactiurer/model/pinouts?

    See http://davehouston.org/RFTipsTricks.htm

  5. #5
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Hello rano_zen06,
    Looking at your code . . . not however, trying it out . . . Is this all of it? I do not see anything to cause the transmitter to send data from the keypad, unless I have become legally blind . . . or stupid . . . that is why I asked is this all of it. As I said . . I see empty variables in the serout routine.
    Code:
     SEROUT TransmitterPIN,T2400,[Synk,Synk,9,Counter]
    I would try adding a string to the serout routine for test purposes only, something like
    Code:
    SEROUT TransmitterPIN,T2400,$FE,1,["1 2 3 "]
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

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


    Did you find this post helpful? Yes | No

    Default

    Joe, seems you missed the underlined section...
    Code:
    Main:
    HIGH LEDPin
    PAUSE 100
    LOW LEDPin
    PAUSE 100
    
    SEROUT TransmitterPIN,T9600,[Synk,Synk,Synk,Synk,Synk,Synk,9,Counter]
    
    HIGH LEDPin
    PAUSE 100
    LOW LEDPin
    PAUSE 100
    
    Counter = Counter + 1
    PAUSE 600
    GOTO Main
    END
    Steve

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

  7. #7
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Maybe Joe has bifocals like me
    Dave
    Always wear safety glasses while programming.

  8. #8
    Join Date
    Mar 2008
    Posts
    19


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by dhouston View Post
    As drawn, both Reset switches are shorting +5V to GND.

    Can you provide details for your transmitter and receiver module
    manufactiurer/model/pinouts?

    See http://davehouston.org/RFTipsTricks.htm
    Sorry for late reply guys,got a lot of homeworks to do. ; )
    The fact is I have less information about my RF module.I just buy it from the nearest electronic store.Since I live here in Chiang Mai ,Thailand...It's hard for me to find a good types of RF module such as PArallax or TWS/RWS 434...For your reference I attach the picture of the RF modules .The link below may help. It was the datasheet of receiver chip used in my RF module.
    http://www.himark.com.tw/images/pdf/...df/RX3310A.zip


    Quote Originally Posted by Joe S. View Post
    Hello rano_zen06,
    Looking at your code . . . not however, trying it out . . . Is this all of it? I do not see anything to cause the transmitter to send data from the keypad, unless I have become legally blind . . . or stupid . . . that is why I asked is this all of it. As I said . . I see empty variables in the serout routine.
    Code:
     SEROUT TransmitterPIN,T2400,[Synk,Synk,9,Counter]
    I would try adding a string to the serout routine for test purposes only, something like
    Code:
    SEROUT TransmitterPIN,T2400,$FE,1,["1 2 3 "]
    Actually what I want to do right now is display the counting numbers on my LCD at receiver board and it's nothing to do with my keypad.I just want to try send a data using my RF module first before I proceed with sending the data from my scanning keypad because I need to know if my RF module able to do it's job or not.

    Quote Originally Posted by mister_e View Post
    See pics in POST#1. 16F877A, and seems ADCON1 and CMCON settings are right.

    Once the wire connection will work, i may suspect 2 other things.
    1)open collector output of the receiver
    2)use inverted mode instead. so the pin will idle low.
    I already connect the Transmitter and the receiver pin directly but it's not work.my LCD only shows a bunch of black box .Maybe the major problem is from my coding or hardware??
    Any other suggestion mister_e ? and how to use inverted mode??
    Attached Images Attached Images  

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