Knowing how far your robot has travelled or whether the motors have positioned a robotic arm or tail in the right place is useful. The Motor Rotation block allows you to get the motor sensor value of how far a motor has turned in rotations or degrees. Using the Motor Rotation block you can also see how the motors in a coordinated rotate differently.
- [Voiceover] While unable to specify…exactly how many rotations or degrees…that my motor should rotate,…it would be useful to know exactly…how many rotations or degrees my motor…has actually moved.…I have 05_04_motor_sensor_start open…for the move steering block…configured to move my robot…directly forward for one second.…I displayed block…which will display or graphics to the EV3 display…and a wait block that will wait a specified amount of time…before going on to the next block in the sequence.…
I want to know how much the motors have rotated…in the one second that the move…steering block executes.…I could look at the port view of the hardware page…to see how many degrees or rotations…the motors have made,…however I want this information…without having to connect to my computer.…I also want to be able to use the values later…in my program.…To get the value from the motor sensor in to my program,…I need to use the motor rotation block…from the sensor pallet.…I'll place this block immediately after the…move steering block to get the measurement immediately…
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.