Renbotics ServoShield Rev

Introduction

The Renbotics ServoShield is an Arduino-compatible shield that uses two 4017 decade counters to drive up to 16 servos using only 4 pins (digital pins 6 to 9) and as little as one 8bit timer (Timer 2) in standard mode or two 16/8bit timers (Timer 1 and Timer 2 for Duemilanove or Timer 3 for Mega) in high accuracy mode. It also includes a 196 point breadboard style prototyping area.

Features

  • 16 Servo Channels

  • Convenient screw terminal for servo power supply

  • 196 Point breadboard style prototyping area

  • Compatible with Arduino Duemilanove and Arduino Mega

  • Easy to use API

Application Ideas

  • Robotics

  • Animatronics

  • Mechatronic Art

Usage

Hardware Installation

Accembled View:

Programming

Sample 1: Simple servo sweeper

#include <ServoShield.h>
ServoShield servos; //Create a ServoShield object
void setup()
{
    for (int servo = 0; servo < 16; servo++)//Initialize all 16 servos
    {
        servos.setbounds(servo, 1000, 2000); //Set the minimum and maximum pulse duration
        servos.setposition(servo, 1500); //Set the initial position of the servo
    }
    servos.start(); //Start the servo shield
}
void loop()
{
    for(int pos = 1000; pos < 2000; pos++) //Move the servos from 0 degrees to 180 degrees
    { //in steps of 1 degree
        for (int i = 0; i < 16; i++) //for all 16 servos
        servos.setposition(i, pos); //Tell servo to go to position in variable 'pos'
        delay(1);
    }
    for(int pos = 2000; pos >= 1000; pos--)//Move the servos from 180 degrees to 0 degrees
    {
        for (int i = 0; i < 16; i++) //all 16 servos
        servos.setposition(i, pos); //Tell servo to go to position in variable 'pos'
        delay(1);
    }
}

Bill of Materials (BOM) /parts list

  • 2 x 4017 Decade Counter DIP16

  • 2 x 10nf Capacitors

  • 2 x 6 pin Female Shield Stacking Headers

  • 2 x 8 pin Female Shield Stacking Headers

  • 1 x 2 pin Screw Terminal

  • 3 x 16 pin Male Breakaway Headers

Version Tracker

Revision Descriptions Release
v1.1 Initial public release Aug 23, 2009

Resources

Help us make it better

Thank you for choosing Seeed. A couple of months ago we initiated a project to improve our documentation system. What you are looking at now is the first edition of the new documentation system. Comparing to the old one, here is the progresses that we made:

  • Replaced the old documentation system with a new one that was developed from Mkdocs, a more widely used and cooler tool to develop documentation system.
  • Integrated the documentation system with our official website, now you can go to Bazaar and other section like Forum and Community more conveniently.
  • Reviewed and rewrote documents for hundreds of products for the system’s first edition, and will continue migrate documents from old wiki to the new one.

An easy-to-use instruction is as important as the product itself. We are expecting this new system will improve your experience when using Seeed’s products. However since this is the first edition, there are still many things need to improve, if you have any suggestions or findings, you are most welcome to submit the amended version as our contributor or give us suggestions in the survey below, Please don’t forget to leave your email address so that we can reply.

Happy hacking