Wireless modules - help with code not working


Results 1 to 32 of 32

Threaded View

  1. #16
    Join Date
    Dec 2011
    Location
    IO93ok
    Posts
    190


    Did you find this post helpful? Yes | No

    Default Re: Wireless modules - help with code not working

    At last. Working.

    Redesigned pcb's but not reconfigured. Just turned pic sideways for ease of removal and added pads for each pin to facilitate cross connection, although not finally needed.

    After making up the boards I wrote the most simple TX/RX routines and connected the 3 pins needed with temporary jumpers. They immediately talked to each other. Replacing the jumpers with the modules and they talked !!!!

    There was one change in code that needed to be added but later removal and they still talked although not quite 100%. That was the extra first characters "SSSSSSSSBOB" before the required string to match the serin string of "BOB"


    Send code -------------

    Code:
    Include "modedefs.bas" 
    DEFINE OSC 10
    
    
    TRISA = %00000000
    
    CMCON=7
    
    pause 2000
    
    TEST:
        serout PortA.3, T9600,["SSSSSSSBOB"] 
        PAUSE 500
        GOTO TEST  
    END

    Receive code -----------------------------

    Code:
    Include "modedefs.bas" 
    DEFINE OSC 10
    
    TRISA = %11111101       
    
    CMCON=7
    
    relay var PortA.1
    
    
    low relay
    
    pause 2000
    
    TEST:
        low relay
        pause 100
        serin PortA.2,T9600,["BOB"] 
        high relay
        PAUSE 1000
        GOTO TEST
            
    END
    Now I need to expand the code to do just what I want and to then add a decent antenna to get the range.

    I'm considering a 'Moxon' Rectangle which gives 3dbd gain with excellent f/b ratio fitted directly to modules via short solid wire. It can be made up using UK twin earth cable wire. About 1.5mm copper. It's very small indeed at 123x46mm

    Rob
    Last edited by tasmod; - 7th May 2013 at 19:40.

Similar Threads

  1. Wireless modules and simple setup, what is required?
    By tasmod in forum mel PIC BASIC Pro
    Replies: 17
    Last Post: - 11th April 2013, 17:57
  2. Low latency Wireless RF transceiver modules?
    By mark155 in forum General
    Replies: 0
    Last Post: - 4th March 2010, 05:20
  3. Wireless modules FCC approved
    By Michael in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 7th September 2008, 02:23
  4. Software RS232 and wireless modules
    By Michael in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 17th August 2008, 05:27
  5. Wireless comms with Linx LR modules
    By telemark in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 2nd July 2006, 01:58

Members who have read this thread : 1

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