servo control via pot ?


Results 1 to 11 of 11

Threaded View

  1. #9
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Disregard below. I didn't notice the dates on the posts above...ya know, the ones from 2004 !


    You've got 78ms worth of pause's in your loop. At best, 78ms worth of pause's limits you to an update rate of just over 12hz. Servo's want an update rate of about 50hz or so.
    Try this:

    Mainloop:
    GOSUB READ_POTS
    SERVO = 150 * TEMP1 : SERVO = SERVO / 255 : SERVO = SERVO + 90 : pulsout serv1 ,servo
    SERVO = 150 * TEMP2 : SERVO = SERVO / 255 : SERVO = SERVO + 90 : pulsout serv2 ,servo
    SERVO = 150 * TEMP3 : SERVO = SERVO / 255 : SERVO = SERVO + 90 : pulsout serv3 ,servo
    SERVO = 150 * TEMP4 : SERVO = SERVO / 255 : SERVO = SERVO + 90 : pulsout serv4 ,servo
    GOTO Mainloop

    READ_POTS:
    Adcin 0, TEMP1:Adcin 1, TEMP2:Adcin 2, TEMP3:Adcin 3, TEMP4 : RETURN
    Last edited by skimask; - 1st March 2007 at 00:17.

Similar Threads

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