help


Closed Thread
Results 1 to 5 of 5

Thread: help

  1. #1
    Join Date
    Jan 2008
    Posts
    7

    Default help

    how the command is read by the mcu?
    <code>
    ;config
    portb = 0
    start:

    pulsout portb.0,175
    pause 100
    pulsout portb.2,185
    pause 100
    pulsout portb.1,170
    pause 100
    pulsout portb.3,130
    pause 100
    pulsout portb.6,150
    pause 100

    </code>

    I tested this in my bipedal robot and it not follow the first command? how command are read by the mcu?

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


    Did you find this post helpful? Yes | No

    Default

    You posted this before and would not work with the person trying to help you, a second post will do no better.

    http://www.picbasic.co.uk/forum/showthread.php?t=1742
    Dave
    Always wear safety glasses while programming.

  3. #3
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    http://www.picbasic.co.uk/forum/show...73&postcount=3

    http://www.picbasic.co.uk/forum/show...17&postcount=3

    My car won't start. Why not?

    See how generic that statement/question is?

    You probably couldn't help me with my car if you wanted to.

    By the same token, without more information from you, the population in general, probably couldn't help you if they wanted to.

    See the relationship yet?

  4. #4
    Join Date
    Aug 2008
    Posts
    66


    Did you find this post helpful? Yes | No

    Default

    Yeah, please provide more info. I think you need to insert a delay after portb = 0.

  5. #5
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,648


    Did you find this post helpful? Yes | No

    Wink

    Hi,

    No chance for it to work as is :

    reason is simple, Pulses must be sent every 20-25 ms for the servos to keep their positions ...

    so, try ( for the "functionnal part" ) :

    [code]

    ;config
    portb = 0
    start:

    While 1

    pulsout portb.0,175
    pulsout portb.2,185
    pulsout portb.1,170
    pulsout portb.3,130
    pulsout portb.6,150

    PAUSE 15

    Wend

    END

    Now ... if it is BI pedal ... might not the pulsouts used be in an even count ???

    Alain

    PS : Ski pointed you'll have a lot to learn ... and I DO AGREE.

    So, try to listen ... he's one of the best you can find here !!!
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

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