Servo Controller TinyShield Tutorial

by Nick DiVitto June 26, 2018

Servo Controller TinyShield Tutorial

The Servo Controller TinyShield allows you to drive four independently controlled servos from your TinyDuino! This tutorial will help you get started with the Servo Controller TinyShield.

This TinyShield uses the TinyDuino I2C interface - saving GPIO pins on the TinyDuino processor for other tasks, and an easy to use Arduino library is provided to control this.





    • Servos are great for doing precise positioning and motion control.
    • The Servo Controller TinyShield's I2C address can be changed by removing up to four resistors.
    • Up to four Servo Controller TinyShields can be stacked for a total of 16 servos controlled independently.

    Step 1: Assembly (Hardware)

    Stack the USB TinyShield onto the TinyDuino Processor and plug it into your computer with a Micro USB cable. Follow the Software steps below to program your TinyDuino Processor.

    Once the TinyDuino Processor is programmed, stack the Servo Controller Tinyshield onto the processor, plug in your servos into the 3-pin connectors, and plug in your battery into the 2-pin connector. The servos should begin to sweep back and forth.

    If the servos don't move, check to make sure that the processor is switched on, that the battery is charged, and that you have the correct address selected in the sketch (default is 0).

    Step 2: Software (Setup)

    To upload the code, we will be using the Arduino IDE which can be downloaded for free here.

    If you have never used Arduino, or the TinyDuino platform, check out our Getting Started Tutorial.

    You will also need to download the TinyDuino Motor Library.

    Step 3: The Code!

    Upload the code below to your TinyDuino Processor.

      You can change the I2C address of this board by removing some of the resistors. This would be useful if you are using multiple Servo Controller TinyShields, so that they don't have conflicting addresses. The default address for the TinyShield and the sketch is 0, with all four address resistors present.

          Contact Us

          As always, if you have any questions or feedback, feel free to email us at

          Show us what you make by tagging @TinyCircuits on instagram, twitter, or facebook so we can feature it!

          Thanks for making with us!

            Nick DiVitto
            Nick DiVitto


            Also in Learn

            SRAM TinyShield Tutorial
            SRAM TinyShield Tutorial

            by Nick DiVitto July 02, 2018

            The SRAM Tinyshield allows you to add memory to your TinyDuino projects that can read and write at a virtually instant rate. Here's...

            View full article →

            Battery Voltage Reading Using the TinyScreen+
            Battery Voltage Reading Using the TinyScreen+

            by TinyCircuits Staff June 15, 2018

            View full article →

            Port Trouble: Windows and Mac Help
            Port Trouble: Windows and Mac Help

            by TinyCircuits Staff June 06, 2018

            View full article →