Help with a draft of a robóvia rf


Closed Thread
Results 1 to 40 of 40

Hybrid View

  1. #1
    Join Date
    Aug 2008
    Posts
    81


    Did you find this post helpful? Yes | No

    Default ruf-bot

    Quote Originally Posted by mackrackit View Post
    Post the code as you have it along with your configs and chip ID.
    I have a lot esperincia in picbasic could help me to compile the code.o brigado ..

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


    Did you find this post helpful? Yes | No

    Default

    One last time...
    I can not compile what I do not see. And I do not even know what chip to compile for.
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Aug 2008
    Posts
    81


    Did you find this post helpful? Yes | No

    Default ruf-bot

    Quote Originally Posted by mackrackit View Post
    One last time...
    I can not compile what I do not see. And I do not even know what chip to compile for.
    Receiver Code:

    RX CODE:

    trisb symbol = 134
    Tris symbol = 133
    Portbou symbol = 6
    symbol port = 5
    poke Tris, 0
    poke port, 0
    low 0
    Input 1

    prestart:
    pause 400
    poke port, 10
    pause 200
    poke door, 5
    pause 200
    poke port, 6
    pause 200
    poke door, 9
    pause 200
    poke port, 0
    pause 200

    start:
    Serin 1, n9600, B0
    if B0 = 1 then forward
    if B0 = 2 then backward
    if B0 = 3 then left
    B0 = 4 if then right
    if B0 = 5 then nomove
    goto start

    Forward:
    poke port, 10
    goto start

    backward:
    poke door, 5
    goto start

    right:
    poke port, 6
    goto start

    left:
    poke door, 9
    goto start

    nomove:
    poke port, 0
    goto start
    End

    Transmitter Code:

    TX CODE:

    trisb symbol = 134
    Tris symbol = 133
    Portbou symbol = 6
    symbol port = 5
    1 low
    Input 0
    Input 2

    start:
    0.50 pot, B0

    2.50 pot, B1
    B0 = B0 * 5
    B1 = B1 * 5
    y:
    if B0 <100 then YF
    if B0> 150 then yb

    x:
    if B1 <100 then xr
    if B1> 150 then xl
    serout 1, n9600, (5)
    goto start

    YF:
    serout 1, n9600, (2)
    goto start

    yb:
    serout 1, n9600, (1)
    goto start

    xl:
    serout 1, n9600, (3)
    goto start

    xr:
    serout 1, n9600, (4)
    goto start

    End

    The pic16f84a
    I can not generate the hex to save the pic

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


    Did you find this post helpful? Yes | No

    Default

    The code is not complete. It is just an example on the flow of things.
    B0 for example is a variable bur is has not been declared

    Code:
    B0 VAR BYTE
    And the use of SYMBOL needs to have a Variable declared before hand.

    So read trough the code from the web page and ONLY use it for a guide.
    Dave
    Always wear safety glasses while programming.

  5. #5
    Join Date
    Aug 2008
    Posts
    81


    Did you find this post helpful? Yes | No

    Default ruf-bot

    Quote Originally Posted by mackrackit View Post
    The code is not complete. It is just an example on the flow of things.
    B0 for example is a variable bur is has not been declared

    Code:
    B0 VAR BYTE
    And the use of SYMBOL needs to have a Variable declared before hand.

    So read trough the code from the web page and ONLY use it for a guide.

    You have to help me.
    In the service. The fightin '.

  6. #6
    Join Date
    Aug 2008
    Posts
    81


    Did you find this post helpful? Yes | No

    Default ruf-bot

    You have to help me.
    In the service. The fightin '.
    Edit/Delete Message

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


    Did you find this post helpful? Yes | No

    Default

    Is this the first time you have programmed a PIC?

    If so, then you need to start by making an LED blink.
    Dave
    Always wear safety glasses while programming.

Similar Threads

  1. Control NEXA 230V RF Switch
    By Fredrick in forum Code Examples
    Replies: 3
    Last Post: - 6th December 2009, 23:19
  2. Generic RF Receiver
    By dhouston in forum Code Examples
    Replies: 0
    Last Post: - 8th September 2009, 14:35
  3. Interfacing 16F88 to RF module
    By scomi85 in forum General
    Replies: 2
    Last Post: - 19th February 2009, 12:52
  4. RF Module
    By shahidali55 in forum General
    Replies: 22
    Last Post: - 9th March 2007, 09:00
  5. Interfacting RF Module
    By rastan in forum General
    Replies: 8
    Last Post: - 10th November 2004, 22:27

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