The movement of a single motor is programmed using the Large Motor or Medium Motor block. Using the programming block, a motor’s power, direction, rotation and braking action is specified. The rotation of the motor can be defined by the number of rotations or the duration of the movement based on the mode used.
- [Voiceover] To demonstrate programming a motor…to move my robot, I've created a new…empty project called 05_02_Motors_Start.…To move one large motor, I'll use…the large motor block from the Actions pallet,…and place it next to the start block.…I'll configure this block to work with motor C.…By default, this large motor block is set…to turn the motor a specific number of rotations.…But there are four other motors that it can use.…In the On for Rotations Mode, I'll need to set…the Power, Rotations, and Break at End inputs.…
The values shown here are the defaults for the inputs,…and be used unless I specify a different value.…The power input is a value between 100 and negative 100…that indicates the power level at which to rotate the motor.…To figure out which way a positive or negative value will…make the motor turn, I'll look at the Help documentation.…(mouse clicks)…While hovering over the large motor block,…the information in the context Help updates…to show me a brief description…of what the mode On for Rotation does.…
AuthorOlivia Chiu Stone
Learn how to unpack the hardware, connect to the programming interface, run prebuilt programs, and control the motors and sensors. Chapter 6, "Adding Flow to a Program," covers advanced programming topics such as transferring data between blocks, using variables to store temporary data, programming conditional logic, and looping actions to run again and again. By the end of the course, you'll have the skills to bring your own robotic creations to life.
- Installing the LEGO Mindstorms software
- Exploring the programming interface
- Connecting to the EV3 brick
- Downloading and running prebuilt programs
- Coordinating motor movement
- Calibrating the sensors
- Transferring data with data wires
- Adding logic with switch blocks
- Looping actions
- Troubleshooting problems with LEGO Mindstorms
- Broadcasting sounds and displaying images
- Updating LEGO Mindstorms
Skill Level Beginner
1. Getting Started
3. Explore a New Project
4. Connect with the EV3 Brick
5. Program Movement and Sensing
6. Adding Flow to a Program
7. Document Your Work
8. Troubleshoot Problems
9. Extra Tools
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.