Танк блокче в EV3 софтуера Pro Preview

В EV3 софтуера за програмиране има Танк блокче за движение. То ни позволява да задаваме различни мощности на всеки мотор.

В живота подобно нещо се използва при автомобилите. Системите за управление на сцеплението с пътя (tracktion control) предават различна мощност към всяко колело на автомобила, така че колата да остане стабилна на пътя и да не поднася.

  • #383
  • 17 Mar 2017
  • 4:15

Какво представлява завой по дъга

Ако трябва да програмирате робота си да завие наляво, трябва да накарате дясното колело да измине много повече път от лявото.
Move Tank блокчето позволява да настроим малка мощност на движение на левия двигател, например 10%, и голяма мощност на десния двигател на робота, например 90%.
 

В програмата

Move Tank блокчето има две настройки за мощност, вместо една. Лявата мощност управлява първия мотор, избран в списъка с портове - по подразбиране, това е моторът B.
Дясната мощност настройва скоростта на втория мотор, посочен в портовете - по подразбиране мотор C.
 

С картинка

  • Единият двигател се движи по-бързо от другия. Нека двигател B се движи по-бързо от двигател С. Роботът се движи, както е показано на схемата:

    content picture

    Този начин на завиване използваме, когато искаме роботът да завива плавно. Колкото по-голяма е разликата в двете мощности, които сме задали на двата двигателя, толкова по-остър ще е завоят. И обратното, колкото по-близки са мощностите на двата мотора, толкова по-широк ще е завоят.

English

There is a block in the EV3 software called the tank block. And in this video we'll use it. Why? Because this block allows us to control the power of the different motors and at the end the robot will work like this. Move forward, turn, return back. The tank block allows us to set different power to the different motors and in real life you can see examples for this in many different cases. For example, cars. When cars are moving you can have different power to the different wheels, examples like traction control or four-wheel drives. So, you control the power to the different wheels so that you can turn or you can make the car more stable. Now, our goal for this task is just to make the robot turn.

There are different ways for turning. You have a robot with two wheels. First wheel, second wheel. Left wheel, right wheel. Now, if you need to make the robot turn left what you should do is rotate the right wheel more than the left wheel. So, the right wheel should make a lаrger turn than the left wheel. So, the left side of the robot, the right side of the robot. And if the left wheel moves for this distance and the right wheel moves for this distance you can see that the left wheel will move much less than the right wheel. And this is what we'll do with the tank block. The tank block allows us to set a different power to the different wheels and we can set this wheel to rotate with small power like 10 or 20% and this wheel with large power like 90 or 100% from the power for turning for the motors. And then at the end we'll have one of the wheels turning slower the other turning faster and we have our robot turning. In the EV3 software we use the block that we know the steering block and we move forward for one rotation with motors B and C. Then we drag and drop the tank block. And I'll just zoom this a little more so that you can see it and here we have different power to the different motors. This power,the left icon and the left value is the power for motor B.

If you take the robot and look it in your hands you can see that B is our left motor and C is our right motor. And what we need to do is set the left motor to rotate slower like 10% and the right motor to rotate faster like 90%. And this will be the block that makes the robot turn left. Then I'll just download and see the program.

What you see is that the robot moves forward then turns left but while turning left it is not enough the duration for the turn. It should turn even further. And you saw that if we set the power to the right motor to 90% and this to 10% the left motor moves slower, the right motor moves faster and the whole robot turns left.

Курсове и занятия включващи този Урок

Този Урок е използван в следните курсове и занятия.

Image for EV3 Phi. Introduction to robotics with LEGO Mindstorms
  • 92
  • 220:20
  • 36
Image for Instructors Remote Training
  • 136
  • 280:11
  • 156
Image for How to make the robot move
  • 24
  • 0
  • 11
  • 3d_rotation 0