control servo motor by using pic16F84A


Closed Thread
Results 1 to 11 of 11

Hybrid View

  1. #1
    Join Date
    May 2004
    Location
    New England
    Posts
    164


    Did you find this post helpful? Yes | No

    Default

    Hi waterlee2000,
    This section is devoted to peoples "wishes" for PBP functionality. For help with code, try one of the other sections, like the PicBASIC or PicBASICPro forums.

    Arch
    "Data sheets? I ain't got no data sheets. I don't need no data sheets. I don't have to read any stinking data sheets!"

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


    Did you find this post helpful? Yes | No

    Default

    Hi, Waterloo (!)

    Have a look HERE : http://www.rentron.com/SerialServo.htm ( other interesting matter around ...)

    and try to UNDERSTAND ...if you REALLY REALLY NEED 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
    waterlee2000's Avatar
    waterlee2000 Guest


    Did you find this post helpful? Yes | No

    Default control

    Include "modedefs.bas"
    si var PORTA.0
    pos var byte
    servo var byte
    cont var byte
    trisb = 0
    start:
    serin si,N2400,servo,pos
    for cont = 0 to 50
    pulsout servo,pos
    pause 15
    next cont
    goto start

    this program just can clockwise only.... then how to write the anti anti clockwise program???

    what the different between trisb=0 and trisb=%00000000 ???
    what the above mean serin si,N2400 ,servo,pos?? can you explain

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


    Did you find this post helpful? Yes | No

    Default

    See the lower section of this project page for info on how pulsout works to
    control hobby servos http://www.rentron.com/Micro-Bot/IR_Nav.htm
    Regards,

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

  5. #5
    waterlee2000's Avatar
    waterlee2000 Guest


    Did you find this post helpful? Yes | No

    Default control servo motor

    that is used by IRLED... my circuit and program as below... please help me check it and correct it... if can, explain to me... thanks... urgency

  6. #6
    waterlee2000's Avatar
    waterlee2000 Guest


    Did you find this post helpful? Yes | No

    Default hello

    that is used by IRLED... my circuit and program as below... please help me check it and correct it... if can, explain to me... thanks... urgency
    Attached Files Attached Files

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by waterlee2000
    that is used by IRLED... my circuit and program as below... please help me check it and correct it... if can, explain to me... thanks... urgency
    Look at the bottom of the page. It explains how to drive a servo with pulsout.

    The example in your attachment should also work assuming you are sending a
    servo # followed by a position from 100 to 200 as explained on the page
    above when using a 4MHz osc.
    Regards,

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

Similar Threads

  1. More Servo Woes
    By chrisshortys in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 13th May 2009, 08:40
  2. Replies: 10
    Last Post: - 26th May 2008, 07:00
  3. Help with Servo Control Please!
    By wireman22 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 7th June 2007, 18:15
  4. Control RC servo via Parallax Servo Control
    By cibotsan in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 17th September 2005, 08:18
  5. Servo control with 12F629
    By achilles03 in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 23rd June 2005, 23:34

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