Knowledge Base

Set Wheel Velocity block

output-onlinepngtools__231_.png This block works for EV3!

The Set Wheel Velocity block sets a target velocity (speed) for the robot's two wheels. It maintains a steady velocity for the robot's wheels by applying the correct motor power in order to reach and maintain the target velocity applied.

mceclip0.png

Each wheel's velocity can be set individually, with numbers ranging from -100 to 100.

 

Driving Straight

In order to drive the robot in a straight line, both wheels must turn at the same power and in the same direction:

mceclip3.png
Positive values will drive the robot forward, while negative values will drive the robot backward.

Turning

In order to turn, apply different values to wheels.
Here are some examples:

Different values of the same sign (positive or negative) will result in a smooth turn in the direction of the lower value:

mceclip2.pngMay311609.gif 

 

Values of the same number but the opposite sign (positive and negative) will result in a screw turn (sometimes also called a point turn, or a turn in place/on the spot) in the direction of the wheel turning backward (negative value).

mceclip1.png
screw_turn_right.gif

 

A 0 value in one of the motors will result in a pivot turn, where the robot spins on the axle of the wheel who's motor is at 0 power:

mceclip4.png
pivot_left.gif

Was this article helpful?
0 out of 0 found this helpful

Comments

Please sign in to leave a comment.

Powered by Zendesk