Turn with Exact Angles

Control how much Doly turns by changing angle fields.

Build a turn routine where Doly rotates left a little, then turns right more using angle fields.

Duration 6 min
Level Standard
Progress Not Started
  1. Connect a Rotate Left block under Start block. Keep its Start field set to previous completed.
  2. Set the Rotate Left angle to a small value, such as 45°. Angle values are in degrees.
  3. Connect a Rotate Right block below it. Keep its Start field set to previous completed.
  4. Set the Rotate Right angle to a larger value, such as 90°.
  5. Read the routine from top to bottom: Doly turns left a little, then turns right more.

Practice here anytime. Connect a Doly to run your code on the real robot.

Lesson Workspace

Drag and connect blocks to build your program.

Need help?

  • Rotate Left and Rotate Right are action blocks, so they connect in the main stack under Start.
  • The block name chooses the turn direction. The angle field chooses how far Doly turns.
  • 90° is a quarter turn, 180° is a half turn, and 360° is a full spin.
  • Leave the from center checkbox as it is for this lesson. Focus on the angle field.

Eye

Eye

Eye blocks control how Doly’s eyes look and move.

Eye Expression

Use this block to change Doly’s eye expression.

Eye Expression: Choose the mood group for Doly’s eyes. Type: Choose the exact animation inside that mood group. Start: Choose when this block begins. “previous completed” waits for the block before it to finish. “instant” starts right away.

Eye Expression preview Preview coming soon

Sound

Sound

Sound blocks let Doly play sounds or speak words.

Sound

Use this block to play a sound.

Sound Type: Choose the sound category. Play: Choose the exact sound from that category. Start: Choose when this block begins. “previous completed” waits for the block before it to finish. “instant” starts right away.

Sound preview Preview coming soon

Say

Use this block to make Doly speak.

Say: Write the words Doly should say. The text can be up to 255 characters. Start: Choose when this block begins. “previous completed” waits for the block before it to finish. “instant” starts right away.

Say preview Preview coming soon

Drive

Drive

Drive blocks control how Doly moves, turns, and reaches positions.

Drive Distance

Use this block to move Doly by a set distance.

Drive: Set how far Doly should move. The distance is in millimeters (mm). 1 inch = 25.4 mm. Start: Choose when this block begins. “previous completed” waits for the block before it to finish. “instant” starts right away. Modifier Blocks: Drive Direction, Drive Speed

Drive Distance preview Preview coming soon

Rotate Left

Use this block to turn Doly left.

Rotate Left: Set how many degrees Doly should turn left. The angle can be 0 to 359 degrees. from center: Choose how Doly turns. Checked means Doly turns around its center by moving both tracks in opposite directions. Unchecked means one track stays stopped while the other track moves. Start: Choose when this block begins. “previous completed” waits for the block before it to finish. “instant” starts right away. Modifier Blocks: Drive Direction, Drive Speed

Rotate Left preview Preview coming soon

Rotate Right

Use this block to turn Doly right.

Rotate Right: Set how many degrees Doly should turn right. The angle can be 0 to 359 degrees. from center: Choose how Doly turns. Checked means Doly turns around its center by moving both tracks in opposite directions. Unchecked means one track stays stopped while the other track moves. Start: Choose when this block begins. “previous completed” waits for the block before it to finish. “instant” starts right away. Modifier Blocks: Drive Direction, Drive Speed

Rotate Right preview Preview coming soon

Direction

Use this modifier block to choose Doly’s drive direction.

Direction: Choose Forward or Reverse. Compatible Blocks: Drive Distance, Rotate Left, Rotate Right, Drive Speed Modifier Blocks: Drive Speed

Direction preview Preview coming soon

Speed

Use this modifier block to set Doly’s drive speed.

Speed: Set how fast Doly drives. The speed can be 1 to 100. Compatible Blocks: Drive Distance, Rotate Left, Rotate Right, Drive Direction Modifier Blocks: Drive Direction

Speed preview Preview coming soon

Arm

Arm

Arm blocks control Doly’s arm positions.

Arm Angle

Use this block to move Doly’s arm to a set angle.

Arm Angle: Set the arm position angle. The angle can be 0 to 225 degrees. Side: Choose which arm should move: Both, Left, or Right. Start: Choose when this block begins. “previous completed” waits for the block before it to finish. “instant” starts right away. Modifier Blocks: Arm Speed & Brake

Arm Angle preview Preview coming soon

Speed & Brake

Use this modifier block to control Doly’s arm speed and hold setting.

Speed: Set how fast the arm moves. The speed can be 1 to 100. Brake: Choose whether Doly should hold the arm at its final position. “Yes” keeps the arm locked in place. “No” lets it release after moving. Compatible Blocks: Arm Angle

Speed & Brake preview Preview coming soon

Lights

Lights

Light blocks control Doly’s arm light colors.

Light

Use this block to set Doly’s arm light color.

Light Color: Choose the light color. Side: Choose which light should change: Both, Left, or Right. Start: Choose when this block begins. “previous completed” waits for the block before it to finish. “instant” starts right away.

Light preview Preview coming soon

Time

Time

Time blocks add pauses between actions.

Delay

Use this block to pause the routine.

Delay ms: Set how long Doly should wait before continuing. The time is in milliseconds (ms). The value can be 5 to 60000. 1000 ms = 1 second. Start: Choose when this block begins. “previous completed” waits for the block before it to finish. “instant” starts right away.

Delay preview Preview coming soon

Loops

Loops

Loop blocks repeat a group of actions.

Repeat

Use this block to repeat actions.

Repeat: Set how many times the actions should run. The value can be 1 to 65535. Start: Choose when this block begins. “previous completed” waits for the block before it to finish. “instant” starts right away. do: Place the action blocks you want to repeat here.

Repeat preview Preview coming soon