Main content
Electrical engineering
Move block
Ready, set... start your engines! Created by Brit Cruise.
Want to join the conversation?
- is he showing us how to use it or make it because I wanna make one of these if I can(4 votes)
- He is showing you the different kinds of blocks that are used in the NXT software.(4 votes)
- According to KA,what are the best programming softwares for Robotics?(3 votes)
- Khan acadamy teaches Javascript and processing, but the software used in this video is a best place to start.(3 votes)
- where do you get the LEGOnxt thing?(3 votes)
- how can you make a motor for legos(2 votes)
- It gives special motors in Lego (from Lego Technic and from the Lego Roboter).
You can also use an normal electromotor and disguise it with Lego blocks.(1 vote)
- Is programing like playing(2 votes)
- need coach my student id is jonalexdeen@yahoo.com(2 votes)
- How did you make the screen look like that?(2 votes)
- How does programing really work?(2 votes)
- Well you input codes for the computer and the computer does that thing that you inputed. If you code make a red dot, then it will make ared dot.(1 vote)
- Hi,
I'm new to programming and no idea where to start. I have no idea what the basics of programming are either. I tried taking the JS: Basic drawing something, and I don't get it. It started giving me stuff like functions but not sure where when to use it. Is there any course here that focuses on introducing programming for total beginners?(1 vote)- You can go to codeacadamy.org.
Its an amazing website in which it teaches you a language of your choice in detail.(1 vote)
- is this the game everyone is talking about(1 vote)
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
port 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 adjusts the power
being sent to those motors. And you also have
an overall power setting for all motors
that are plugged in. You can go to max power
and all the way to 0. 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 Brake or Coast. Brake means when
this block ends, the motors immediately shut off. And, however, you
can also select Coast, 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.