LEGO® Powered UP App coding blocks overview

With the Powered Up app, you can connect your mobile device to your LEGO® models and gain access to various control options. It allows you to operate and manipulate motorized components, lights, and sensors in your LEGO® creations, providing an immersive and interactive play experience.

Coding blocks

Flow

Using Flow blocks, you can start and stop motors, adjust their power levels or speeds, and rotate them by specific angles or for specific durations of time. These blocks provide the means to precisely control the movement and behavior of motorized elements in your creations.

Motor

Using Motor blocks, you can control the speed, direction, and duration of movement for motorized components in your models. These blocks enable you to program your models to move forward, backward, turn, or follow specific patterns or sequences.

Sensor

Using Sensor blocks, you can incorporate sensor readings into your programs and make decisions based on those inputs. You can create conditions and triggers that respond to touch, color, distance, or other sensor data, allowing your models to interact with their surroundings.

Sound and Light

Using Sound blocks, you can program your creations to play specific sounds, melodies, or recorded messages. Light blocks enable you to control and manipulate the illumination of LEDs or light elements in your models. You can program the lights to turn on or off, change colors, or create dynamic lighting effects

Math

Using Math blocks, you can perform basic arithmetic operations such as addition, subtraction, multiplication, and division. You can also use these blocks to work with variables, create formulas, and generate numerical outputs based on specific conditions or inputs

Widgets

Using Widget blocks, you can map physical controls, such as buttons or joysticks on the remote controller or touch inputs on your device, to specific actions in your models. This means you can program your creations to respond to your commands in real time, providing an immersive and hands-on experience.

Coding block types

Instruction

Used to run the command, can accept values from the reporter block.

Trigger

Used to start the execution of a program, can accept values from the reporter block.

Reporter

Used to provide information to trigger or instruction block

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *