control servo motor by using pic16F84A


Closed Thread
Results 1 to 11 of 11
  1. #1
    waterlee2000's Avatar
    waterlee2000 Guest

    Default control servo motor by using pic16F84A

    how to write a program and control servo motor by using pic16F84A... please help me and teach me because i really really need it!!!!!
    thanks

  2. #2
    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!"

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


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

  4. #4
    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

  5. #5
    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

  6. #6
    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

  7. #7
    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

  8. #8
    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

  9. #9
    waterlee2000's Avatar
    waterlee2000 Guest


    Did you find this post helpful? Yes | No

    Default discussion

    then... my lecture said that if you use this circuit, you better choice B because no need any declaration but make sure you program is in true language!!! can you help me check??? or what are you suggestion for this circuit?? A or B??

    is it A using C language and B is using basic language??? i cannot understand C and basic, i thought both is C language!!! what the difference???

    thanks...
    Attached Files Attached Files

  10. #10
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    Both examples are in BASIC language (though each is slightly different), but unless you have the manual dexterity to accurately toggle S1 at 2400 baud, then example A will not apply.

  11. #11
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,614


    Did you find this post helpful? Yes | No

    Wink Wish List ....

    Hi, Waterloo

    As this section is dedicated to Wishes ... I make one for you:

    BEGIN from the beginning : try to learn at first what the different PbP statements do, How PbP programs are built. There's THE Manual for that.

    There's also the Parallax "school "...

    http://www.parallax.com/html_pages/edu/index.asp

    Thousands of pages to explain you " by the example " what to do. And it's free and Downloadable !!!

    THEN, you'll save a great, great, great lot of time... as you seem in a hurry !!!

    AND we will be seriously able to help you ....

    But the first step must come from you ... that's it.

    Alain

    PS : Note there are no " projects ", ready to download , on this site ...
    Last edited by Acetronics2; - 23rd June 2006 at 14:38.
    ************************************************** ***********************
    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 " !!!
    *****************************************

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 : 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