Loop with two motor and 2 sensors


Closed Thread
Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Dec 2008
    Posts
    23


    Did you find this post helpful? Yes | No

    Default 2 motors and 2 simple sensors

    thanks for the reply.

    I used endif as one word,it didnt show right here though.

    I want the pin to be set to HIGH, 5 volts, how would I tell it that.

    What is the book test.BAS??

    any suggestions how i could accomplish what I am trying to do?

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by MrRoboto View Post
    thanks for the reply.

    I used endif as one word,it didnt show right here though.

    I want the pin to be set to HIGH, 5 volts, how would I tell it that.

    What is the book test.BAS??

    any suggestions how i could accomplish what I am trying to do?
    switch them around a bit. . .
    instead of
    Code:
    PORTB.7=high  'enable pin
      PORTB.6=low    'stop this side
    say it with feeling, like so . . .
    Code:
    High PortB.7
    Low  PortB.6
    Still better yet, set the ports to a known state first, set the tris registers to inputs or outputs as desired second, and then in your code control them by making statements like PortB.7 = 1 or PortB.6 = 0
    as far as errors go BASIC CODE from book test.bas must be your file name.
    Last edited by Archangel; - 6th December 2008 at 08:51.
    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.

  3. #3
    Join Date
    Dec 2008
    Posts
    23


    Did you find this post helpful? Yes | No

    Default Loop

    So how would I perform the loop then.


    When you say name the file

    BASIC CODE from book.bas

    is that what you mean????

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