servo control


Closed Thread
Results 1 to 2 of 2

Thread: servo control

  1. #1
    parinshah's Avatar
    parinshah Guest

    Question servo control

    hi frenz,
    hw do i control a servo with pc'c serial port.i hv prepared schematic for dc servo motor conrol,cnt post the schematic coz nt hving proper format,hving jpg format wich a huge 1,wel i m usin max232,pic16f876,4 mhz crystal,h bridge driving technique,pulse shaper 4 encoder ,d flip flop n then the encoder output is given to tmr2.wish to use pid algorithm wher in pulse is givn with duty cycle accordin to the speed n position required.i wish to regulate speed n position
    can u guide me for coding,asin hw to start,i hv been tryin to do serial communication bt nt successful yet.code i made is:
    trisc=%10000000
    trisb=%00000000
    adcon=%00000110
    portb=$00
    portc=$00
    b var byte
    main:
    if portc.7=0 then goto serial
    goto main
    serial:
    serin portc.7,n9600,[0],b
    pause 20
    serout portc.6,n9600,b
    portb=b
    pause 5000
    goto main
    end
    correct me n gv ur valuable suggestion for codin.
    thank u.
    Last edited by parinshah; - 14th April 2006 at 13:13.

  2. #2
    Join Date
    Jan 2005
    Posts
    72


    Did you find this post helpful? Yes | No

    Default

    hi

    take a look at this : http://www.melabs.com/resources/samp...bp/servox2.bas

    this will help i hope
    i know it's only microcontrolling, but i like it!

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