There are many cases in programming where you want something to repeat indefinitely. Here's how to achieve that!

To access the full video please subscribe to FLLCasts.com
- #2290
- 29 Jul 2024
This is the third block in the orange Control palette.
This block repeats everything placed inside it indefinitely. That is why you cannot place any blocks after it, as there is no way to reach those blocks. It is usually used to continuously update something. For example, you can constantly change the speed of a motor using a force sensor. Just be sure you can stop the program manually!
Courses and lessons with this Tutorial
This Tutorial is used in the following courses and lessons

Level B1 - Carnival - Robotics with LEGO SPIKE Prime
This is the third level of the LEGO Robotics Curriculum for students in second, third, or fourth grades.
Carnival and Amusement Park Level. Each lesson has a theme related to carnivals and amusement parks. Students learn about physics concepts of inertia, center of mass, and centrifugal force. New ways of programming the force and distance sensors are introduced. We work with new concepts: forever loop, if/then, and if/else.
- 23
- 1:03
- 62

Lesson 2 - Spinning ride
Introduction
What is a spinning ride? Have you been on one?
A spinning ride is a carnival ride that spins people very fast! There are different versions: some just spin, while others go up and down or tilt. Our version today goes up and down due to centrifugal force!
Centrifugal force is a force that pulls a rotating object away from the center of rotation. For example, if you fill a bucket with some water and start spinning it fast, the water stays at the bottom of the bucket even if the bucket is sideways or even upside down!
- 3
- 6
- 10
- 3d_rotation 1