Connecting PIC to servos


Closed Thread
Results 1 to 7 of 7
  1. #1
    Join Date
    Jun 2007
    Location
    Mansfield, UK
    Posts
    697

    Default Connecting PIC to servos

    Hi, I'm working on a circuit where I need to connect about 15 servos to a PIC chip on separate pins. Each servo will have a wire about 1m long.

    In a previous thread I started about interference someone said "connecting long flying wires directly to the inputs of the PIC usually isn't the best design practice". I want to know if the same also applies to outputs.

    Should I have something (optos/transistors etc) between my PIC and the servos?

    Also, how many volts do servos need on the signal line? I'm using digital servos that need a supply voltage from 5 to 7.5V. My PICs run on 3.3V which should be more than enough for the servo signals but I haven't seen anything to confirm this.

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


    Did you find this post helpful? Yes | No

    Default Re: Connecting PIC to servos

    Hello Master,
    I am not sure how this thread merits OFF TOPIC status, but OK.

    Kudos to ACETRONICS2 for this link http://www.societyofrobots.com/actuators_servos.shtml

    he posted it in this thread http://www.picbasic.co.uk/forum/showthread.php?t=19575

    It pretty much explains hobby servos. HTH
    Last edited by Archangel; - 3rd February 2015 at 03:31.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  3. #3
    Join Date
    Oct 2011
    Posts
    54


    Did you find this post helpful? Yes | No

    Default Re: Connecting PIC to servos

    My fellow R/C modelling friend has several large models on which the leads to the aileron servos must be at least 3ft long. It all works perfectly.
    Phil

  4. #4
    Join Date
    Jun 2007
    Location
    Mansfield, UK
    Posts
    697


    Did you find this post helpful? Yes | No

    Default Re: Connecting PIC to servos

    Thanks guys, looks like my design will be fine. It's good to know that the same length of wire works in other projects and that link mentions "booster extensions" which I could buy if I do run into problems.

    Archangel: I used Off Topic because I didn't think this thread fit into any of the other forums.

  5. #5


    Did you find this post helpful? Yes | No

    Default Re: Connecting PIC to servos

    Check this controller. It can control 16 servos. It uses a I2C led pwm chip. You could probably build your own with a little research

    http://www.adafruit.com/products/1411

  6. #6
    Join Date
    Jun 2007
    Location
    Mansfield, UK
    Posts
    697


    Did you find this post helpful? Yes | No

    Default Re: Connecting PIC to servos

    Thanks but I am already building my own. The servo control is part of a larger board that will be responsible for controlling 15 servos, 25 solenoid valves, 2 audio outputs and several inputs.

  7. #7
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default Re: Connecting PIC to servos

    Quote Originally Posted by The Master View Post

    Archangel: I used Off Topic because I didn't think this thread fit into any of the other forums.
    I was not an "issue", these questions usually crop up in other areas like PBP or PBP3 . . . , throw in some code and it could move to one of those areas as seems pertinent. The questions you asked are valid, esp. since you didn't really know the answer, if you needed to know this, others did too.

    The long answer to your question is it depends upon how strong the "noise" signal is vs the signal voltage. If that wire length is able to receive over about 1 volt or so out of "the aether" it could be a problem, worse if it receives 2 volts. Twist the wires and it works better too, less noise received than straight parallel wires.
    Last edited by Archangel; - 4th February 2015 at 22:45.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

Similar Threads

  1. Replies: 2
    Last Post: - 13th September 2013, 10:27
  2. Problem with servos
    By ncet20 in forum General
    Replies: 6
    Last Post: - 11th October 2011, 14:22
  3. Hot Servos
    By The Master in forum Off Topic
    Replies: 37
    Last Post: - 6th August 2010, 18:32
  4. Connecting ibutton to pic!
    By jkbpower in forum Schematics
    Replies: 1
    Last Post: - 4th December 2008, 07:09

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