A spin turn is a turn around the center of the robot. Let's learn how to program it.
- 20 Apr 2017
A spin turn is a turn around the center of the robot. Both motors are turning but in two different directions. You may hear us saying that the robot turns as a Tank.
In the Software
In the Actions palette, choose the Move tank block. The first power setting corresponds to the power of motor B and the second power setting corresponds to the power of motor C.
Equal speed, different directions
In order to make a spin turn, you must set two equal values for power and make one of them negative. For example, use 20 and -20. This will make the motors move at equal speed and in different directions.
Making exact right turns
You must experiment with the number of rotations a few times in order make a 90-degree turn with the robot.
A spin turn is a turn at place like this.
In this video we'll look how do we program the robot to do a spin turn.
In the software we go to the actions palette. And we take the move tank block. In the move tank block we set the number of rotations to 1 and then we have the power options, we have the power to the left motor and this is motor B and the power to the right motor and this is motor C. If we just set the power to the left motor
to -20 and the power to the right motor to 20, this means that the left motor will move backward while the right motor will move forward. And we'll have our robot spinning. It'll stay in place but the two wheels will move in different directions and this will make our robot spin.
We have our robot spinning and this wheel is doing one rotation forward while the other wheel is doing one rotation backward. And when both wheels are moving the whole robot stays in place. Again. From here it's just a matter of finding the right value so that we can have our robot turn around. But this will be for some of the next videos.
Courses and lessons with this Tutorial
This Tutorial is used in the following courses and lessons