Help with a draft of a robóvia rf


Closed Thread
Results 1 to 40 of 40

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mackrackit View Post
    You have not made the variables. Please look at the manual.
    And why do all of the lines have a comment " ' " ?

    Du har inte gjord den växlande. Behaga blick for handboken. Och varför gör all om linjen har en kommentera " ' "?
    Hi Dave, the $99 pbasic has automatic variables B0 B1 W0, whereas the PRO version does not sec. 10.5, throwback to STAMPS.
    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.

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Joe S. View Post
    Hi Dave, the $99 pbasic has automatic variables B0 B1 W0, whereas the PRO version does not sec. 10.5, throwback to STAMPS.
    Well that is what I get for assuming things. I assumed the $99 version just lacked some features.

    Guess it is time for me to RTFM
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Aug 2008
    Posts
    81


    Did you find this post helpful? Yes | No

    Smile ruf-bot

    Quote Originally Posted by Joe S. View Post
    Hi Dave, the $99 pbasic has automatic variables B0 B1 W0, whereas the PRO version does not sec. 10.5, throwback to STAMPS.

    Dear Joe S compile again not funciona.eu
    I'm using picbasic pro demo 250.
    And rx have to use B0 var byte
    Var B1 byte. thanks.

  4. #4


    Did you find this post helpful? Yes | No

    Default rufbot help

    hi
    bro i also tried to realise that rufbot and encountered the same problem
    please if you peopla can help me out with the code???????????

    thank u

  5. #5
    Join Date
    Aug 2008
    Posts
    81


    Did you find this post helpful? Yes | No

    Default rufbot

    '************************************************* ***************
    '* Name : RX.BAS *
    '* Author : [select VIEW...EDITOR OPTIONS] *
    '* Notice : Copyright (c) 2008 [select VIEW...EDITOR OPTIONS] *
    '* : All Rights Reserved *
    '* Date : 18/11/2008 *
    '* Version : 1.0 *
    '* Notes : *
    '* : *
    '************************************************* ***************
    include "modedefs.bas"

    DEFINE OSC 4

    @ DEVICE PIC16F84A 'iţlemci 16F628
    @ DEVICE PIC16F84A, WDT_On
    @ DEVICE PIC16F84A, PWRT_ON
    @ DEVICE PIC16F84A, PROTECT_OFF
    @ DEVICE PIC16F84A, XT_OSC

    PORTA=0
    TRISA=0
    PORTB=0
    TRISB=%00000010


    B0 var byte
    B1 var byte

    prestart: pause 400
    poke porta, 10 ' %00001010
    pause 200
    poke porta, 5 ' %00000101
    pause 200
    poke porta, 6 ' %00000110
    pause 200
    poke porta, 9 ' %00001001
    pause 200
    poke porta, 0 '
    pause 200

    start: serin PORTB.1,N9600,B0
    if B0 = 1 then forward
    if B0 = 2 then backward
    if B0 = 3 then left
    if B0 = 4 then right
    if B0 = 5 then nomove
    goto start

    forward: poke porta, 10
    goto start

    backward: poke porta, 5
    goto start

    right: poke porta, 6
    goto start

    left: poke porta, 9
    goto start

    nomove: poke porta, 0
    goto start
    end



    '************************************************* ***************
    '* Name : tx.BAS *
    '* Author : [select VIEW...EDITOR OPTIONS] *
    '* Notice : Copyright (c) 2008 [select VIEW...EDITOR OPTIONS] *
    '* : All Rights Reserved *
    '* Date : 18/11/2008 *
    '* Version : 1.0 *
    '* Notes : *
    '* : *
    '************************************************* ***************
    include "modedefs.bas"

    DEFINE OSC 4

    @ DEVICE PIC16F84A 'iţlemci 16F628
    @ DEVICE PIC16F84A, WDT_On
    @ DEVICE PIC16F84A, PWRT_ON
    @ DEVICE PIC16F84A, PROTECT_OFF
    @ DEVICE PIC16F84A, XT_OSC

    trisb = %10000110 '134
    trisa = %10000101 '133
    portb = 6
    porta = 5
    low 1
    input 0
    input 2
    B0 var byte
    B1 var byte

    start: pot PORTB.0,50,B0
    pot PORTB.2,50,B1
    B0 = B0 * 5
    B1 = B1 * 5

    y: if B0 < 100 then GOSUB yf
    if B0 > 150 then GOSUB yb

    x: if B1 < 100 then GOSUB xr
    if B1 > 150 then GOSUB xl

    serout PORTB.1,n9600,[5]
    goto start

    yf: serout PORTB.1,n9600,[2]
    return

    yb: serout PORTB.1,n9600,[1]
    return

    xl: serout PORTB.1,n9600,[3]
    return

    xr: serout PORTB.1,n9600,[4]
    return

    end

  6. #6
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    cesar35 wrote;
    I'm using picbasic pro demo 250
    How do you get the PBP demo to compile programs longer than 31 lines & use include files?
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  7. #7
    Join Date
    Aug 2008
    Posts
    81


    Did you find this post helpful? Yes | No

    Wink

    Caro Bruce ME envia um email.

  8. #8


    Did you find this post helpful? Yes | No

    Default help rufbot

    hi cesar first of all thanks a lot !!!!!!!!! brother

    now pls if u can provide me the stepper motor control program which i have to add with the main program

    then i can complete the code!!!!!!!!!!

    pls bro

    thank u

Similar Threads

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