contorlling servo motor


Closed Thread
Results 1 to 11 of 11

Hybrid View

  1. #1
    Join Date
    May 2008
    Posts
    15


    Did you find this post helpful? Yes | No

    Default

    so the code that i write, izzit correct....i mean pulseout code for 20MHz???

  2. #2
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Cool

    Hi, Shirleyzzzzzzzz ...

    that's it !

    Alain
    ************************************************** ***********************
    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 " !!!
    *****************************************

  3. #3
    Join Date
    May 2008
    Posts
    15


    Did you find this post helpful? Yes | No

    Default

    thank you so much....

  4. #4
    Join Date
    May 2008
    Posts
    15


    Did you find this post helpful? Yes | No

    Default

    how to make the motor to rotates continously?...when i test this code, the servo motor just move one time only....

    define osc 20

    trisa.0=0 ''LEFT MOTOR''
    trisa.1=0 ''RIGHT MOTOR''

    LM var porta.0
    RM var porta.1

    Forward:
    PULSOUT 0, 170 ‘ Left wheel anti-clockwise
    PULSOUT 1, 130 ‘ Right wheel clockwise
    PAUSE 20 ‘ Wait 20 ms
    GOTO Forward ‘ Repeat

  5. #5
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    PortA Doesn't Work
    http://www.picbasic.co.uk/forum/showthread.php?t=561

    Presetting Configuration Fuses (PIC Defines) into your Program
    http://www.picbasic.co.uk/forum/showthread.php?t=543
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Similar Threads

  1. PMDC SERVO MOTOR WITH quadrature encoder DRIVE ?
    By phoenix_1 in forum Schematics
    Replies: 37
    Last Post: - 22nd November 2009, 19:45
  2. More Servo Woes
    By chrisshortys in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 13th May 2009, 08:40
  3. how to change servo motor PWM
    By dboy in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 21st September 2008, 07:02
  4. Replies: 10
    Last Post: - 26th May 2008, 07:00
  5. information on how to make servo motor
    By rod27cn in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 17th December 2006, 11:59

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