+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    May 2011
    Posts
    14

    Default Servo speed, from potentiometer

    Hello


    Hi, we are pleased to see that you are using our forum.

    We'd like you to become a member of our community. Membership is FREE, please REGISTER and view our forums without these annoying reminders!

    Once registered you may post on the forums, download from the file areas and use the WIKI without interruption.






    I am trying to find on web for some example of slowing down servo speed using potentiometer, but I cant find it.

    I am using PIC 16f877A and I have a potentiometer connected on AN0 pin, and when I move potentiometer servo moves same. If I move potentiometer to one end very fast servo will go fast to, so how can I reduce that speed. I mean can I program it to move slower no metter how fast I rotate potentiometer ??


    Thx

  2. #2
    Join Date
    Apr 2011
    Posts
    53

    Default Re: Servo speed, from potentiometer

    Add a small delay between the reading of the pot and the execution of the servo routine.

  3. #3
    Join Date
    Aug 2006
    Location
    Look behind you.
    Posts
    2,581

    Default Re: Servo speed, from potentiometer

    Hello again,
    So I am thinking . . . you get your adc result and store it into a variable . . . . call it smartie, just because I never liked using dummy.
    So then give your pulseout variable a different name . . . say we call it value.
    then use a for next loop
    For value = 0 to smartie
    pulseout pin value
    pause 10
    next value
    Just my thoughts . . .
    Anti virus software seems a little like hiring the Mafia to protect you.
    The Devil's advocate is not a supporter,
    He simply wants to be sure he has no grounds for appeal.



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