If you're seeing this message, it means we're having trouble loading external resources on our website.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

Main content
Current time:0:00Total duration:2:13

Video transcript

to power a single motor you use the motor block which is under your output here however this only works when you're powering a single motor however if you are building some sort of vehicle and you have multiple motors attached let's say you have a motor plugged into a and B you need to use the move block which is under the common area and the move block allows you to control multiple motors and you do so by selecting the pork your motors are plugged into so in this example I have a and B checked and that's where my motors are plugged into and now I can easily adjust the direction to both those motors here and I can also adjust the steering to favor either towards a or B and what steering does is it just adjust the power being sent to those motors and you also have an overall power setting for your for the for all motors that are plugged in and you can go to max power on all the way to zero and the duration is how long you want this block to execute for so you can do unlimited and this will just continue running and you won't even need a loop in this case you can also do some fine adjustments and say I want my motors to turn five degrees and because of the internal rotation sensor it can do a very fine adjustment you can also set it to do rotations such as I want my motors to rotate three times there and the last option is you can set the duration so you can have your motors run for 2.5 seconds if that's what you need in your application the final setting is next action and what this does is it allows you to select break or Coast break means when this block ends the motors immediately shut off and however you can also select coasts which means the power ramps off slowly and you get this smoother response so that's how you can control either multiple motors or the same thing applies if you're using a single motor it's all the same settings except it only applies to a single motor port