Ciao! In this lesson I will show you how to use the Movement blocks to make your robot curve precisely. Stay until the end because I will show you also how to make the robot curve more or less sharply therefore changing its radius of curvature.
Let's start already! [JINGLE] Professor Bricks! For this lesson we will use the SPIKE Prime drive base the instructions for which you can find in the app itself or on the LEGO Education website.
Ready? Go! The Movement blocks make the motors move in sync, waiting for each other to maximize precision in maneuvers.
Now let's make the robot spin in place. Let's take this block, we set the steering to 100, and set it to ONE rotation. Let's see what it does.
The robot spins on itself half a turn. We can try now to spin the robot on itself to the right that is, seen from above, in a clockwise direction for a complete revolution. If a rotation of the wheels was necessary for half a turn, now we set it to two wheel rotations.
And let's see what happens. To make it spin in place a quarter turn, we should set it to half rotation of the wheels. Remember: we're still talking about wheel rotation and not of robot rotations.
They are two different things. Let's see what he does. Attention!
The rotation angle of the robot and the rotation angle of the wheel are different things. The angle of the robot spinning on the spot is one thing and another is the angle the wheels has turned by. This is not the same angle, but it depends on the robot configuration in terms of size, wheel spacing, wheel diameter… This particular parameter configuration is possible for this specific robot and here's why: the robot has been designed in such a way that the distance between the wheels it's exactly double of the diameter of the wheel.
For a different robot with larger wheels or further apart or closer together, these parameters should be configured differently. In a future video, a little more advanced, I will explain you how to configure these parameters to make the robot curve at certain and precise angles regardless of the size of the robot or wheels. To make the robot turn counterclockwise, to the left, just set this parameter to -100.
You can also type the value directly into this window. Let's see what happens. To make it spin by a complete rotation on itself counterclockwise, or to the left, just set the rotations to 2.
We can change this steering parameter to values other than 100 and -100 to make the robot curve more or less sharply. We have seen that with 100 it turns on the spot to the right, with -100 it turns left on the spot. I wish cars could do steer in the same way!
Parking would be a breeze. Alas, I suffer so much instead. .
. [SAD MUSIC] This steering parameter effectively controls the robot's radius of curvature. If [the parameter] is 100, the radius of curvature is zero and the robot spins in place.
If it is 50, the radius of curvature is equal to the distance between the wheels and the robot turns pivoted on one wheel or the other. If this steering parameter is zero, the radius is infinite which is to say the robot goes straight. As we saw in the previous lesson, it is possible to obtain movements with accelerations and decelerations adding a block from the extension "Other Movements" by setting the motion acceleration to SLOW.
I invite you to try it yourself what happens if you set this parameter to a number ranging from 1 to 49. The robot should make very wide turns. If you set this parameter between 51 and 99, the robot will make increasingly tighter turns until it turns on the spot.
It is obvious that between 98 and 99 you will not see a big difference. But now let's recap! In this video you learned how to move a pair of motors to make your robot steer you have learned how to rotate your robot a quarter turn, a half turn, a full turn we set smooth acceleration to avoid slipping during rotations even at maximum speed we have seen how the steering parameter affects the radius of curvature of the robot to make more or less sharp turns.
If you liked this lesson, give a slap the Like button. If you want to learn robotics using LEGO Subscribe to this channel but above all continue to tinker with LEGO because it is only through practice that you can build your knowledge. Don't miss the next lesson, where we'll put together what we have learned so far to create a sentinel robot that patrols your desk back and forth.
Stay young, play well! CIAO!