Servo motor does not work correct


Closed Thread
Results 1 to 38 of 38

Hybrid View

  1. #1
    Join Date
    Aug 2008
    Posts
    81


    Did you find this post helpful? Yes | No

    Default Re: Servo motor does not work correct

    Hello Henrik.
    As you said I have to send high and low along with varaves between 700 and 2300.
    did not know that controls a servo was a yes.
    I am very grateful to you.

  2. #2
    Join Date
    Aug 2008
    Posts
    81


    Did you find this post helpful? Yes | No

    Default Re: Servo motor does not work correct

    Hello Henrik
    And I do not know much about PicBasic Pro.
    To do piquenos project I do.
    I never did a project to control a servo motor by pc
    You can explain me better.
    I have change the vb.net program for this to work.
    thank you

  3. #3
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172


    Did you find this post helpful? Yes | No

    Default Re: Servo motor does not work correct

    It would help to know the specs of the motor, just to be sure.

    To some, a servo is used to unlock a car door, to others it can turn specific degrees.

    The more information you provide, the more people can help.

    (those 4 signals make me think of a bi-polar stepper motor)

    Robert

  4. #4
    Join Date
    Jun 2009
    Location
    Sc*nthorpe, UK
    Posts
    333


    Did you find this post helpful? Yes | No

    Default Re: Servo motor does not work correct

    You could also post the vb.net program.

  5. #5
    Join Date
    Aug 2008
    Posts
    81


    Did you find this post helpful? Yes | No

    Default Re: Servo motor does not work correct

    Hello thank you guys for the help.
    Here is the data I'm sending to the pic
    With vb.net
    I control the camera using servo motor for movement



    Private Sub TrackBar1_Scroll(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TrackBar1.Scroll
    pos = CInt(TrackBar1.Value)
    Label8.Text = pos
    SerialPort1.Write("PC")
    SerialPort1.Write("X")
    SerialPort1.Write(pos)

    'POS MAX 2300
    'POS MIN 7000
    End Sub
    Last edited by cesar35; - 17th June 2014 at 13:43.

  6. #6
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172


    Did you find this post helpful? Yes | No

    Default Re: Servo motor does not work correct

    As far as I know, X1 will be 0 first time through, maybe. I always set variables to 0 at top of program.

    PAUSEUS will be nothing so SERVO1 will be turned OFF quite fast.

    Then the PIC will wait for the next SERIN from the PC, it won't emit more pulses until then.

    Assuming your MODE is configured properly.

    Robert
    Last edited by Demon; - 17th June 2014 at 14:23.

  7. #7
    Join Date
    Aug 2008
    Posts
    81


    Did you find this post helpful? Yes | No

    Default Re: Servo motor does not work correct

    Hello Robert okay
    you have to make an example as I do
    I think I'm losing myself in programming
    Between two pic I did worked.
    With pc always had the difficulty.
    Thank you.

  8. #8
    Join Date
    Aug 2008
    Posts
    81


    Did you find this post helpful? Yes | No

    Default Re: Servo motor does not work correct

    Last edited by cesar35; - 17th June 2014 at 17:15.

Similar Threads

  1. Servo motor control
    By financecatalyst in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 16th July 2010, 22:44
  2. servo motor control??help
    By HYETİK in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 6th April 2009, 07:41
  3. servo/motor problem
    By griffin in forum mel PIC BASIC
    Replies: 10
    Last Post: - 10th February 2009, 20:07
  4. Servo motor problem
    By dboy in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 20th September 2008, 15:54
  5. contorlling servo motor
    By shirleyz in forum General
    Replies: 10
    Last Post: - 31st May 2008, 23:53

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