Reference.StepperConstructor History

Hide minor edits - Show changes to markup

June 04, 2010, at 01:26 PM by Equipo Traduccion -
Changed lines 10-25 from:

steps: the number of steps in one revolution of your motor. If your motor gives the number of degrees per step, divide that number into 360 to get the number of steps (e.g. 360 / 3.6 gives 100 steps). (int)

pin1, pin2: two pins that are attached to the motor (int)

pin3, pin4: optional the last two pins attached to the motor, if it's connected to four pins (int)

Returns

A new instance of the Stepper motor class.

Example

Stepper myStepper = Stepper(100, 5, 6);

See also

to:

pasos: el número de pasos para que de una vuelta completa tu motor. Si tu motor gira un número de grados por paso, divide 360 entre ese número para conocer el número de pasos (p.e. 630 / 3.6 da que tu motor tiene 100 pasos). (int)

pin1, pin2: los dos pines conectados al motor (int)

pin3, pin4: opcionalmente los dos pines conectados al motor, si éste está conectado a cuatro pines. (int)

Retorno

Una nueva instacia de la clase Stepper.

Ejemplo

Stepper miStepper = Stepper(100, 5, 6);

Ver también

June 04, 2010, at 01:16 PM by Equipo Traduccion -
Changed lines 1-9 from:

Stepper(steps, pin1, pin2)

Stepper(steps, pin1, pin2, pin3, pin4)

Description

This function creates a new instance of the Stepper class that represents a particular stepper motor attached to your Arduino board. Use it at the top of your sketch, above setup() and loop(). The number of parameters depends on how you've wired your motor - either using two or four pins of the Arduino board.

Parameters

to:

Stepper(pasos, pin1, pin2)

Stepper(pasos, pin1, pin2, pin3, pin4)

Descripción

Esta función crea una nueva instancia de la clase Stepper que representa un motor paso a paso particular conectado a tu placa Arduino. Utilizala al comienzo de tu sketch, por encima de setup() y loop(). El número de parámetros depende en cómo hayas cableado tu motor - bien utilizando dos o cuatro pines de la placa Arduino.

Parámetros

May 17, 2007, at 06:22 PM by David A. Mellis -
Changed lines 6-7 from:

This function creates a new instance of the Stepper class that represents a particular stepper motor attached to your Arduino board. Use it at the top of your sketch, above setup() and loop(). The number of parameters depends on how you've wired your motor - either using two pins or four pins.

to:

This function creates a new instance of the Stepper class that represents a particular stepper motor attached to your Arduino board. Use it at the top of your sketch, above setup() and loop(). The number of parameters depends on how you've wired your motor - either using two or four pins of the Arduino board.

May 17, 2007, at 06:22 PM by David A. Mellis -
Changed lines 6-7 from:

This function creates a new instance of the Stepper class that represents a particular stepper motor attached to your Arduino board. Use it at the top of your sketch, above setup() and loop(). The number of parameters depends on how you've wired your motor; there's a circuit using two pins and one using using four pins.

to:

This function creates a new instance of the Stepper class that represents a particular stepper motor attached to your Arduino board. Use it at the top of your sketch, above setup() and loop(). The number of parameters depends on how you've wired your motor - either using two pins or four pins.

May 17, 2007, at 04:52 PM by David A. Mellis -
Changed lines 14-15 from:

pin3, pin4: (optional) the last two pins attached to the motor, if it's connected to four pins (int)

to:

pin3, pin4: optional the last two pins attached to the motor, if it's connected to four pins (int)

May 17, 2007, at 04:52 PM by David A. Mellis -
Changed lines 14-15 from:

pin3, pin4 (optional): the last two pins attached to the motor, if it's connected to four pins (int)

to:

pin3, pin4: (optional) the last two pins attached to the motor, if it's connected to four pins (int)

May 17, 2007, at 04:51 PM by David A. Mellis -
Changed lines 24-27 from:

See also

to:

See also

May 17, 2007, at 04:51 PM by David A. Mellis -
Added lines 1-24:

Stepper(steps, pin1, pin2)

Stepper(steps, pin1, pin2, pin3, pin4)

Description

This function creates a new instance of the Stepper class that represents a particular stepper motor attached to your Arduino board. Use it at the top of your sketch, above setup() and loop(). The number of parameters depends on how you've wired your motor; there's a circuit using two pins and one using using four pins.

Parameters

steps: the number of steps in one revolution of your motor. If your motor gives the number of degrees per step, divide that number into 360 to get the number of steps (e.g. 360 / 3.6 gives 100 steps). (int)

pin1, pin2: two pins that are attached to the motor (int)

pin3, pin4 (optional): the last two pins attached to the motor, if it's connected to four pins (int)

Returns

A new instance of the Stepper motor class.

Example

Stepper myStepper = Stepper(100, 5, 6);

See also

Share