Reference.ServoWrite History

Hide minor edits - Show changes to markup

June 03, 2010, at 01:54 PM by Equipo Traduccion -
Changed lines 5-20 from:

Description

Writes a value to the servo, controlling the shaft accordingly. On a standard servo, this will set the angle of the shaft (in degrees), moving the shaft to that orientation. On a continuous rotation servo, this will set the speed of the servo (with 0 being full-speed in one direction, 180 being full speed in the other, and a value near 90 being no movement).

Syntax

servo.write(angle)

Parameters

servo: a variable of type Servo

angle: the value to write to the servo, from 0 to 180

Example

to:

Descripción

Escribe un valor en el servo, controlando el eje en consecuencia. En un servo estándar ajustará el ángulo del eje (en grados), moviendo el eje hasta la orientación deseada. En un servo de rotación continua, ajustará la velocidad del servo (siendo 0 velocidad máxima en una dirección, 180 velocidad máxima en la otra, y un valor cerca de 90, servo parado).

Sintaxis

servo.write(angulo)

Parámetros

servo: una variable tipo Servo

angulo: el valor a escribir en el servo, de 0 a 180

Ejemplo

Changed line 24 from:

Servo myservo;

to:

Servo miservo;

Changed lines 28-29 from:
  myservo.attach(9);
  myservo.write(90);  // set servo to mid-point
to:
  miservo.attach(9);
  miservo.write(90);  // coloca el servo en su posición central
Changed line 35 from:

See also

to:

Mira también

November 04, 2009, at 05:28 PM by David A. Mellis -
Deleted lines 8-12:

Parameter values between 544 and 2400 passed to the write method will be interpreted in microseconds (uS), exactly the same as the writeMicroseconds method.

Changed lines 11-12 from:

servo.write(angle OR microseconds)

to:

servo.write(angle)

Deleted lines 18-19:

microseconds: the angle value in uS, from 544 to 2400

November 04, 2009, at 06:11 AM by Paul Badger -
Changed lines 16-17 from:

servo.write(angle)

to:

servo.write(angle OR microseconds)

Added lines 24-25:

microseconds: the angle value in uS, from 544 to 2400

November 04, 2009, at 06:05 AM by Paul Badger -
Changed line 41 from:
to:
November 04, 2009, at 06:04 AM by Paul Badger -
Changed line 41 from:
to:
November 04, 2009, at 06:03 AM by Paul Badger -
Changed line 34 from:
  myservo.write(90);
to:
  myservo.write(90);  // set servo to mid-point
November 04, 2009, at 06:02 AM by Paul Badger -
Changed lines 9-13 from:

Parameter values between 544 and 2400 passed to the Write method will be interpreted in microseconds (uS), exactly the same as the writeMicroseconds method.

to:

Parameter values between 544 and 2400 passed to the write method will be interpreted in microseconds (uS), exactly the same as the writeMicroseconds method.

November 04, 2009, at 06:01 AM by Paul Badger -
Changed lines 9-13 from:

Parameter values between 544 and 2400 passed to the Write method will be interpreted in microseconds (uS), exactly the same as the writeMicroseconds method.

to:

Parameter values between 544 and 2400 passed to the Write method will be interpreted in microseconds (uS), exactly the same as the writeMicroseconds method.

November 04, 2009, at 06:01 AM by Paul Badger -
Changed lines 9-13 from:

Parameter values between 544 and 2400 will be interpreted in microseconds (uS), exactly the same as the writeMicroseconds method.

to:

Parameter values between 544 and 2400 passed to the Write method will be interpreted in microseconds (uS), exactly the same as the writeMicroseconds method.

November 04, 2009, at 06:00 AM by Paul Badger -
Added lines 9-13:

Parameter values between 544 and 2400 will be interpreted in microseconds (uS), exactly the same as the writeMicroseconds method.

November 01, 2008, at 09:57 PM by David A. Mellis -
Changed lines 7-8 from:

Writes an angle to the servo, moving the shaft to that orientation.

to:

Writes a value to the servo, controlling the shaft accordingly. On a standard servo, this will set the angle of the shaft (in degrees), moving the shaft to that orientation. On a continuous rotation servo, this will set the speed of the servo (with 0 being full-speed in one direction, 180 being full speed in the other, and a value near 90 being no movement).

Changed lines 17-18 from:

angle: the angle to write to the servo, from 0 to 180 degrees

to:

angle: the value to write to the servo, from 0 to 180

September 07, 2008, at 09:25 AM by David A. Mellis -
Changed lines 33-37 from:

@]

to:

@]

See also

September 07, 2008, at 09:25 AM by David A. Mellis -
Added lines 1-33:

Servo

write()

Description

Writes an angle to the servo, moving the shaft to that orientation.

Syntax

servo.write(angle)

Parameters

servo: a variable of type Servo

angle: the angle to write to the servo, from 0 to 180 degrees

Example

#include <Servo.h> 

Servo myservo;

void setup() 
{ 
  myservo.attach(9);
  myservo.write(90);
} 

void loop() {} 

Share