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.
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).
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.
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.
As always, if you have any questions or feedback, feel free to email us at email@example.com.
Show us what you make by tagging @TinyCircuits on instagram, twitter, or facebook so we can feature it!
Thanks for making with us!