Reference.Servo History

Hide minor edits - Show changes to markup

February 28, 2013, at 02:23 PM by Scott Fitzgerald -
Changed lines 13-14 from:

Servo motors have three wires: power, ground, and signal. The power wire is typically red, and should be connected to the 5V pin on the Arduino board. The ground wire is typically black or brown and should be connected to a ground pin on the Arduino board. The signal pin is typically yellow, orange or white and should be connected to a digital pin on the Arduino board. Note servos draw considerable power, so if you need to drive more than one or two, you'll probably need to power them from a separate supply (i.e. not the +5V pin on your Arduino). Be sure to connect the grounds of the Arduino and external power supply together.

to:

Servo motors have three wires: power, ground, and signal. The power wire is typically red, and should be connected to the 5V pin on the Arduino board. The ground wire is typically black or brown and should be connected to a ground pin on the Arduino board. The signal pin is typically yellow, orange or white and should be connected to a digital pin on the Arduino board. Note that servos draw considerable power, so if you need to drive more than one or two, you'll probably need to power them from a separate supply (i.e. not the +5V pin on your Arduino). Be sure to connect the grounds of the Arduino and external power supply together.

February 07, 2013, at 03:02 PM by Scott Fitzgerald -
Changed line 30 from:
  • Knob?: control the shaft of a servo motor by turning a potentiometer.
to:
  • Knob: control the shaft of a servo motor by turning a potentiometer.
Added line 33:
February 07, 2013, at 03:02 PM by Scott Fitzgerald -
Changed lines 30-31 from:
to:
  • Knob?: control the shaft of a servo motor by turning a potentiometer.
  • Sweep : sweeps the shaft of a servo motor back and forth.
Deleted line 33:
August 03, 2011, at 07:39 AM by Davide Gomba -
Changed lines 7-8 from:

This library allows an Arduino board to control RC (hobby) servo motors. Servos have integrated gears and a shaft that can precisely controlled. Standard servos allow the shaft to be positioned at various angles, usually between 0 and 180 degrees. Continuous rotation servos allow the rotation of the shaft to be set to various speeds.

to:

This library allows an Arduino board to control RC (hobby) servo motors. Servos have integrated gears and a shaft that can be precisely controlled. Standard servos allow the shaft to be positioned at various angles, usually between 0 and 180 degrees. Continuous rotation servos allow the rotation of the shaft to be set to various speeds.

November 21, 2010, at 07:38 PM by David A. Mellis -
Changed lines 9-12 from:

As of Arduino 0017, the Servo library supports up to 12 motors on most Arduino boards and 48 on the Arduino Mega. On boards other than the Mega, use of the library disables analogWrite() (PWM) functionality on pins 9 and 10, whether or not there is a Servo on those pins. On the Mega, up to 12 servos can be used without interfering with PWM functionality; use of 12 to 23 motors will disable PWM on pins 11 and 12.

In Arduino 0016 and earlier, the Servo library uses functionality built in to the hardware, and works only on pins 9 and 10 (and does not work on the Arduino Mega). In this case, if only one servo is used, the other pin cannot be used for normal PWM output with analogWrite(). For example, in Arduino 0016 and earlier, you can't have a servo on pin 9 and PWM output on pin 10.

to:

The Servo library supports up to 12 motors on most Arduino boards and 48 on the Arduino Mega. On boards other than the Mega, use of the library disables analogWrite() (PWM) functionality on pins 9 and 10, whether or not there is a Servo on those pins. On the Mega, up to 12 servos can be used without interfering with PWM functionality; use of 12 to 23 motors will disable PWM on pins 11 and 12.

November 21, 2010, at 07:37 PM by David A. Mellis -
Added lines 3-6:
Added lines 17-20:
Added lines 34-35:
November 04, 2009, at 05:44 AM by Paul Badger -
Changed lines 11-12 from:

Servo motors have three wires: power, ground, and signal. The power wire is typically red, and should be connected to the 5V pin on the Arduino board. The ground wire is typically black or brown and should be connected to a ground pin on the Arduino board. The signal pin is typically yellow, orange or white and should be connected to a digital pin on the Arduino board. Note servos draw considerable power, so if you need to drive more than one or two, you'll probably need to power them from a separate supply (i.e. not the +5V pin on your Arduino). Be sure to connect the grounds of Arduino and external power supply together.

to:

Servo motors have three wires: power, ground, and signal. The power wire is typically red, and should be connected to the 5V pin on the Arduino board. The ground wire is typically black or brown and should be connected to a ground pin on the Arduino board. The signal pin is typically yellow, orange or white and should be connected to a digital pin on the Arduino board. Note servos draw considerable power, so if you need to drive more than one or two, you'll probably need to power them from a separate supply (i.e. not the +5V pin on your Arduino). Be sure to connect the grounds of the Arduino and external power supply together.

November 04, 2009, at 05:28 AM by Paul Badger -
Changed lines 11-12 from:

Servo motors have three wires: power, ground, and signal. The power wire is typically red, and should be connected to the 5V pin on the Arduino board. The ground wire is typically black or brown and should be connected to a ground pin on the Arduino board. The signal pin is typically yellow, orange or white and should be connected to a digital pin on the Arduino board. Note servos draw considerable power, so if you need to drive more than one or two, you'll probably need to power them from a separate supply (i.e. not the +5V pin on your Arduino).

to:

Servo motors have three wires: power, ground, and signal. The power wire is typically red, and should be connected to the 5V pin on the Arduino board. The ground wire is typically black or brown and should be connected to a ground pin on the Arduino board. The signal pin is typically yellow, orange or white and should be connected to a digital pin on the Arduino board. Note servos draw considerable power, so if you need to drive more than one or two, you'll probably need to power them from a separate supply (i.e. not the +5V pin on your Arduino). Be sure to connect the grounds of Arduino and external power supply together.

Added line 17:
August 14, 2009, at 09:19 PM by David A. Mellis -
Changed lines 5-6 from:

As of Arduino 0017, the Servo library supports up to 12 motors on most Arduino boards and 48 on the Arduino Mega. In Arduino 0016 and earlier, this library uses functionality built in to the hardware, and works only on pins 9 and 10 (and does not work on the Arduino Mega). In this case, if only one servo is used, the other pin cannot be used for normal PWM output with analogWrite(). For example, in Arduino 0016 and earlier, you can't have a servo on pin 9 and PWM output on pin 10.

to:

As of Arduino 0017, the Servo library supports up to 12 motors on most Arduino boards and 48 on the Arduino Mega. On boards other than the Mega, use of the library disables analogWrite() (PWM) functionality on pins 9 and 10, whether or not there is a Servo on those pins. On the Mega, up to 12 servos can be used without interfering with PWM functionality; use of 12 to 23 motors will disable PWM on pins 11 and 12.

In Arduino 0016 and earlier, the Servo library uses functionality built in to the hardware, and works only on pins 9 and 10 (and does not work on the Arduino Mega). In this case, if only one servo is used, the other pin cannot be used for normal PWM output with analogWrite(). For example, in Arduino 0016 and earlier, you can't have a servo on pin 9 and PWM output on pin 10.

August 12, 2009, at 10:29 PM by David A. Mellis -
Changed lines 3-4 from:

This library allows an Arduino board to control one or two RC (hobby) servo motors. Servos have integrated gears and a shaft that can precisely controlled. Standard servos allow the shaft to be positioned at various angles, usually between 0 and 180 degrees. Continuous rotation servos allow the rotation of the shaft to be set to various speeds.

to:

This library allows an Arduino board to control RC (hobby) servo motors. Servos have integrated gears and a shaft that can precisely controlled. Standard servos allow the shaft to be positioned at various angles, usually between 0 and 180 degrees. Continuous rotation servos allow the rotation of the shaft to be set to various speeds.

Changed lines 9-10 from:

Servo motors have three wires: power, ground, and signal. The power wire is typically red, and should be connected to the 5V pin on the Arduino board. The ground wire is typically black or brown and should be connected to a ground pin on the Arduino board. The signal pin is typically yellow, orange or white and should be connected to a digital pin on the Arduino board.

to:

Servo motors have three wires: power, ground, and signal. The power wire is typically red, and should be connected to the 5V pin on the Arduino board. The ground wire is typically black or brown and should be connected to a ground pin on the Arduino board. The signal pin is typically yellow, orange or white and should be connected to a digital pin on the Arduino board. Note servos draw considerable power, so if you need to drive more than one or two, you'll probably need to power them from a separate supply (i.e. not the +5V pin on your Arduino).

August 11, 2009, at 11:15 PM by David A. Mellis -
Changed lines 5-8 from:

This library uses functionality built-in the hardware on pins 9 and 10 of the microcontroller to control the servos without interfering with other code running on the Arduino. If only one servo is used, the other pin cannot be used for normal PWM output with analogWrite(). For example, you can't have a servo on pin 9 and PWM output on pin 10.

Please note that the Servo library does not yet work on the Arduino Mega.

to:

As of Arduino 0017, the Servo library supports up to 12 motors on most Arduino boards and 48 on the Arduino Mega. In Arduino 0016 and earlier, this library uses functionality built in to the hardware, and works only on pins 9 and 10 (and does not work on the Arduino Mega). In this case, if only one servo is used, the other pin cannot be used for normal PWM output with analogWrite(). For example, in Arduino 0016 and earlier, you can't have a servo on pin 9 and PWM output on pin 10.

Changed lines 9-10 from:

Servo motors have three wires: power, ground, and signal. The power wire is typically red, and should be connected to the 5V pin on the Arduino board. The ground wire is typically black or brown and should be connected to a ground pin on the Arduino board. The signal pin is typically yellow, orange or white and should be connected to pin 9 or 10 on the Arduino board.

to:

Servo motors have three wires: power, ground, and signal. The power wire is typically red, and should be connected to the 5V pin on the Arduino board. The ground wire is typically black or brown and should be connected to a ground pin on the Arduino board. The signal pin is typically yellow, orange or white and should be connected to a digital pin on the Arduino board.

June 05, 2009, at 05:11 PM by David A. Mellis -
Changed lines 5-6 from:

This library uses functionality built-in the hardware on pins 9 and 10 of the microcontroller (pins 11 and 12 on the Arduino Mega) to control the servos without interfering with other code running on the Arduino. If only one servo is used, the other pin cannot be used for normal PWM output with analogWrite(). For example, you can't have a servo on pin 9 and PWM output on pin 10.

to:

This library uses functionality built-in the hardware on pins 9 and 10 of the microcontroller to control the servos without interfering with other code running on the Arduino. If only one servo is used, the other pin cannot be used for normal PWM output with analogWrite(). For example, you can't have a servo on pin 9 and PWM output on pin 10.

Please note that the Servo library does not yet work on the Arduino Mega.

Changed lines 11-12 from:

Servo motors have three wires: power, ground, and signal. The power wire is typically red, and should be connected to the 5V pin on the Arduino board. The ground wire is typically black or brown and should be connected to a ground pin on the Arduino board. The signal pin is typically yellow, orange or white and should be connected to pin 9 or 10 on the Arduino board (pin 11 or 12 on the Arduino Mega).

to:

Servo motors have three wires: power, ground, and signal. The power wire is typically red, and should be connected to the 5V pin on the Arduino board. The ground wire is typically black or brown and should be connected to a ground pin on the Arduino board. The signal pin is typically yellow, orange or white and should be connected to pin 9 or 10 on the Arduino board.

June 05, 2009, at 01:23 PM by David A. Mellis -
Changed lines 3-6 from:

This library allows an Arduino board to control one or two RC (hobby) servo motors on pins 9 and 10. Servos have integrated gears and a shaft that can precisely controlled. Standard servos allow the shaft to be positioned at various angles, usually between 0 and 180 degrees. Continuous rotation servos allow the rotation of the shaft to be set to various speeds.

This library uses functionality built-in the hardware on pins 9 and 10 of the microcontroller to control the servos without interfering with other code running on the Arduino. If only one servo is used, the other pin cannot be used for normal PWM output with analogWrite(). For example, you can't have a servo on pin 9 and PWM output on pin 10.

to:

This library allows an Arduino board to control one or two RC (hobby) servo motors. Servos have integrated gears and a shaft that can precisely controlled. Standard servos allow the shaft to be positioned at various angles, usually between 0 and 180 degrees. Continuous rotation servos allow the rotation of the shaft to be set to various speeds.

This library uses functionality built-in the hardware on pins 9 and 10 of the microcontroller (pins 11 and 12 on the Arduino Mega) to control the servos without interfering with other code running on the Arduino. If only one servo is used, the other pin cannot be used for normal PWM output with analogWrite(). For example, you can't have a servo on pin 9 and PWM output on pin 10.

Changed lines 9-10 from:

Servo motors have three wires: power, ground, and signal. The power wire is typically red, and should be connected to the 5V pin on the Arduino board. The ground wire is typically black or brown and should be connected to a ground pin on the Arduino board. The signal pin is typically yellow, orange or white and should be connected to pin 9 or 10 on the Arduino board.

to:

Servo motors have three wires: power, ground, and signal. The power wire is typically red, and should be connected to the 5V pin on the Arduino board. The ground wire is typically black or brown and should be connected to a ground pin on the Arduino board. The signal pin is typically yellow, orange or white and should be connected to pin 9 or 10 on the Arduino board (pin 11 or 12 on the Arduino Mega).

November 01, 2008, at 09:55 PM by David A. Mellis -
Changed lines 3-6 from:

This library allows an Arduino board to control one or two RC (hobby) servo motors on pins 9 & 10. Hobby servos have integrated gears and a shaft that can be positioned at a various angles, usually between 0 and 180 degrees. They are controlled by a high-going pulse of between 1 and 2 ms followed by an approximately 19 ms low time.

This servo library uses built in hardware timers associated with pins 9 & 10 so it will run transparent to other code running on the Arduino. If only one servo is used, the other pin cannot be used for normal PWM output with analogWrite(). For example, you can't have a servo on pin 9 and PWM output on pin 10.

to:

This library allows an Arduino board to control one or two RC (hobby) servo motors on pins 9 and 10. Servos have integrated gears and a shaft that can precisely controlled. Standard servos allow the shaft to be positioned at various angles, usually between 0 and 180 degrees. Continuous rotation servos allow the rotation of the shaft to be set to various speeds.

This library uses functionality built-in the hardware on pins 9 and 10 of the microcontroller to control the servos without interfering with other code running on the Arduino. If only one servo is used, the other pin cannot be used for normal PWM output with analogWrite(). For example, you can't have a servo on pin 9 and PWM output on pin 10.

October 17, 2008, at 05:15 PM by Paul Badger -
Changed lines 3-6 from:

This library allows an Arduino board to control one or two RC (hobby) servo motors on pins 9 & 10. Hobby servos have integrated gears and a shaft that can be positioned at a various angles, usually between 0 and 180 degrees. They are controlled by a pulse of between 1 and 2 ms followed by a 20 ms low time.

The servo library uses built in hardware timers associated with pins 9 & 10 so it will run transparent to other code running on the Arduino. If only one servo is used, the other pin cannot be used for normal PWM output with analogWrite(). For example, you can't have a servo on pin 9 and PWM output on pin 10.

to:

This library allows an Arduino board to control one or two RC (hobby) servo motors on pins 9 & 10. Hobby servos have integrated gears and a shaft that can be positioned at a various angles, usually between 0 and 180 degrees. They are controlled by a high-going pulse of between 1 and 2 ms followed by an approximately 19 ms low time.

This servo library uses built in hardware timers associated with pins 9 & 10 so it will run transparent to other code running on the Arduino. If only one servo is used, the other pin cannot be used for normal PWM output with analogWrite(). For example, you can't have a servo on pin 9 and PWM output on pin 10.

October 17, 2008, at 05:14 PM by Paul Badger -
Changed lines 3-6 from:

This library allows an Arduino board to control one or two RC (hobby) servo motors. Hobby servos have integrated gears and a shaft that can be positioned at a various angles, usually between 0 and 180 degrees. This library can control servos with pins 9 and 10.

If only one servo is used, the other pin cannot be used for normal PWM output with analogWrite(). For example, you can't have a servo on pin 9 and PWM output on pin 10.

to:

This library allows an Arduino board to control one or two RC (hobby) servo motors on pins 9 & 10. Hobby servos have integrated gears and a shaft that can be positioned at a various angles, usually between 0 and 180 degrees. They are controlled by a pulse of between 1 and 2 ms followed by a 20 ms low time.

The servo library uses built in hardware timers associated with pins 9 & 10 so it will run transparent to other code running on the Arduino. If only one servo is used, the other pin cannot be used for normal PWM output with analogWrite(). For example, you can't have a servo on pin 9 and PWM output on pin 10.

Changed lines 9-10 from:

Servo motors have three wires: power, ground, and signal. The power wire is typically red, and should be connected to the 5V pin on the Arduino board. The ground wire is typically black or brown and should be connected to a ground pin on the Arduino board. The signal pin is typically yellow,orange or white and should be connected to pin 9 or 10 on the Arduino board.

to:

Servo motors have three wires: power, ground, and signal. The power wire is typically red, and should be connected to the 5V pin on the Arduino board. The ground wire is typically black or brown and should be connected to a ground pin on the Arduino board. The signal pin is typically yellow, orange or white and should be connected to pin 9 or 10 on the Arduino board.

October 17, 2008, at 05:05 PM by Paul Badger -
Changed lines 3-4 from:

This library allows an Arduino board to control one or two RC servo motors. These have integrated gears and a shaft that can be positioned at a various angles, usually between 0 and 180 degrees. This library can control servos with pins 9 and 10. If only one servo is used, the other pin cannot be used for normal PWM output with analogWrite(). For example, you can't have a servo on pin 9 and PWM output on pin 10.

to:

This library allows an Arduino board to control one or two RC (hobby) servo motors. Hobby servos have integrated gears and a shaft that can be positioned at a various angles, usually between 0 and 180 degrees. This library can control servos with pins 9 and 10.

If only one servo is used, the other pin cannot be used for normal PWM output with analogWrite(). For example, you can't have a servo on pin 9 and PWM output on pin 10.

Changed lines 9-10 from:

Servo motors have three wires: power, ground, and signal. The power wire is typically red, and should be connected to the 5V pin on the Arduino board. The ground wire is typically black or brown and should be connected to a ground pin on the Arduino board. The signal pin is typically yellow or orange and should be connected to pin 9 or 10 on the Arduino board.

to:

Servo motors have three wires: power, ground, and signal. The power wire is typically red, and should be connected to the 5V pin on the Arduino board. The ground wire is typically black or brown and should be connected to a ground pin on the Arduino board. The signal pin is typically yellow,orange or white and should be connected to pin 9 or 10 on the Arduino board.

October 12, 2008, at 12:04 AM by David A. Mellis -
Added lines 17-20:

Examples

September 07, 2008, at 01:21 AM by David A. Mellis -
Deleted line 10:
September 07, 2008, at 01:18 AM by David A. Mellis -
Changed lines 11-17 from:
to:
September 07, 2008, at 12:59 AM by David A. Mellis -
Added lines 1-11:

Servo library

This library allows an Arduino board to control one or two RC servo motors. These have integrated gears and a shaft that can be positioned at a various angles, usually between 0 and 180 degrees. This library can control servos with pins 9 and 10. If only one servo is used, the other pin cannot be used for normal PWM output with analogWrite(). For example, you can't have a servo on pin 9 and PWM output on pin 10.

Circuit

Servo motors have three wires: power, ground, and signal. The power wire is typically red, and should be connected to the 5V pin on the Arduino board. The ground wire is typically black or brown and should be connected to a ground pin on the Arduino board. The signal pin is typically yellow or orange and should be connected to pin 9 or 10 on the Arduino board.

Functions

Share