Pic and servo


Closed Thread
Results 1 to 2 of 2

Thread: Pic and servo

  1. #1
    hussong1555's Avatar
    hussong1555 Guest

    Question Pic and servo

    I am using a Pickit 3 development board and I'm going to integrate two servos (FUTABA 0216) and a PLC to it. basically what I am trying to do is have the PIC monitor two inputs from the PLC.

    when input 1 receives a pulse, then I want servo 1 to rotate say 120deg clockwise then back.

    When input 2 receives a pulse, then i want servo 2 to rotate say 120deg counter-clockwise then back.


    any segestions on code to accomplish this?

    Thanks in advance for any help

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    http://www.rentron.com/SerialServo.htm
    That should give you a good starting place.
    Dave
    Always wear safety glasses while programming.

Similar Threads

  1. More Servo Woes
    By chrisshortys in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 13th May 2009, 08:40
  2. The best way to control a servo with a PIC
    By The Master in forum Off Topic
    Replies: 41
    Last Post: - 19th October 2008, 02:44
  3. controling a servo via the usb of a pc useing a pic
    By Jhdgkss in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 23rd May 2008, 23:24
  4. servo control via pot ?
    By n0oxv in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 1st March 2007, 07:11
  5. How would i write this in pic basic pro (Servo controller)
    By Jhdgkss in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 10th February 2006, 08:21

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