Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 3 of 3

Thread: Servo or PWMServo for 3.1

  1. #1
    Member AverageGuy's Avatar
    Join Date
    Aug 2013

    Servo or PWMServo for 3.1

    Looking at the docs for these I see this:
    Board                     SERVO_PIN_A   SERVO_PIN_B   SERVO_PIN_C
    -----                     -----------   -----------   -----------
    Arduino Uno, Duemilanove       9            10          (none)
    Arduino Mega                  11            12            13
    Sanguino                      13            12          (none)
    Teensy 1.0                    17            18            15
    Teensy 2.0                    14            15             4
    Teensy++ 1.0 or 2.0           25            26            27
    It doesn't include the 3.x parts. Do these libraries work with a 3.1 part? If so, which pins?


  2. #2
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    I know others can answer better than I can. But I believe Servo library works on the Teensy 3.x. The code is setup to use one timer, which I believe by default would give you the ability for 12 servos. I remember reading that some have pushed the number of servos up a bit, but then you run into the issue of not being able to do pulse updates every 20ms...

    As for PWMServo, looking at the code, I don't see any special casing for the 3.0, 3.1s. At some point I may try to hack up a version, as the 3.1s have quite a few pins that are shown as PWM pins (3, 4,5, 6, 9, 10, 20-23, 25, 32). Have not tried yet, but may try one out on my Lynxmotion Brat (Biped), with 6+ servos.

  3. #3
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Servo works, PWMServo does not (at least as far as I know).

    I also recently wrote a PulsePosition library that can drive a large number of servos using 74HCT164 shift registers to convert the pulses to servo signals. So far, it's untested with real servos. A set of 40 servos I ordered for testing just arrived, and I'm still waiting on 74HCT164 chips.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts