Servo

BlocklyProp reference for SERVO blocks

Block and I/O pin availability varies by board type.


Standard servo

This block lauches a processor automatically, using up to 14 instances of this block will not launch additional processors.

Use this block with the Parallax Standard Servo (#900-00005) and the Propeller Activity Board WX, Propeller FLiP, S3 Robot, and Other board types. Not available for the Badge board type.

 The standard servo block sends control pulses to position a Parallax Standard Servo.

  1. Set the PIN dropdown to the Propeller I/O pin number connected to the servo's signal pin.
  2. Set the angle for the servo to turn to and hold by inserting a number value in the range of 0 to 180.


CR servo speed

This block lauches a processor automatically, using up to 14 instances of this block will not launch additional processors.

Use this block with the Parallax Continuous Rotation Servo (#900-00008) and the Activity Board WX, Propeller FLiP, and Other board types. Not available for Badge or Scribbler Robot board types.

The CR servo speed block sends control pulses to a servo connected to PIN selected by the dropdown menu that tells the servo what speed in which direction to turn. Negative speeds turn the CR (Continuous Rotation) servo clockwise, and positive speeds turn the servo counter-clockwise. A speed of 0 (zero) stops the CR servo. The speed can be from -200 to 200.  In most cases, you will notice most of the change in speed from -100 to 100.

The CR servo speed block sends pulses to control speed and direction of a Parallax Continuous Rotation servo.

  1. Set the PIN dropdown to the Propeller I/O pin number connected to the servo's signal pin. Pin availablility will vary with board type.
  2. Set the speed for the servo to rotate by inserting a number value in the range of -200 to +200, though change in speed is most noticeable from -100 to +100.
    • Negative numbers turn the sevo counter-clockwise
    • positive numbers turn the servo clockwise
    • Zero makes the servo hold still.*

*If your Parallax CR Servo rotates slowly or buzzes when set to zero, you may need to center it. Very gently, insert a Philips tip screwdriver into the access hole in the servo's case and slightly twist the potentiometer until the servo holds still.


CR servo set ramp

Use this block with the Parallax Continuous Rotation Servo (#900-00008) and the Activity Board WX, Propeller FLiP, and Other board types. Not available for Badge or Scribbler Robot board types.

The CR servo set ramp block sets the maximum amount that the CR servo’s speed connected to the PIN specified in the dropdown menu can be changed each update cycle. A rampstep of 1 means that the servo’s speed can only change 1 unit every 20ms - meaning that its response will be very sluggish. A rampstep between 4 and 8 is a good compromise between responsiveness and protecting the servo from sudden speed changes that can damage the servo.