![]() The Hub's LED is turned off first, if the sensor attached to port C detects red then the Hub's LED is also switched to red Wait for the color measured by the Sensor to be equal to color. If the sensor attached to port C detects red then the sound is played Triggers when the color measured by the Sensor is equal to color. Wheel button acts as an emergency stop, once it is pressed all other sequences are stopped therefore the slider will stop controlling the speed of the motor. If used in a Model Block, then the Model Block is terminated, but the program containing the Model Block will continue execution. If used in the top most program, this will terminate the program. Stops the execution of all sequences running on the current canvas. Slider 1 controls the power of motor A, once the wheel button is pressed the slider stops working and the car brake sound is played. Stops all other program sequences and continues with execution of the attached sequence. Motor A runs for 2 seconds, motor B runs for 5 seconds but the car sound is played only when both motors stop. Enclosed in a loop for constant monitoring of the slider position.Įxecute both sequences at the same time, and wait for both sequences to complete before executing next block. If the slider is below 50 then the LED on the hub is red, over 50 it turns green. If condition is true then execute top sequence, else execute bottom sequence. Here Slider 1 sets the speed of motor on port A, it needs to loop to adjust the speed constantly according to the position of the slider. The most frequently used and most important loop - required for every "square" that needs to run constantly. ![]() Plays the engine revving sound until the slider is moved Lopp enclosed sequence while condition is true. The Hub's LED light is set to red and then off 3 times - this makes the LED blink quickly in red 3 times Loop enclosed sequence for number of times. The sequence sets the light intensity on port D to 0%, then waits for the slider to be moved, once it is moved it plays the car start sound The Start sequence begins first, sets the light intensity on port D to 100% then triggers the "Flag 1" sequence that sets the motor power on port A to 50.Īfter the sequence is started the timer waits for 2 seconds before setting the motor power on port A to 50 Starts the execution of the attached sequence when the flag number is triggered. If Slider 1's position is changed from 0 then play the car start sound Starts the execution of the attached sequence when the condition switches from false to true. If Slider 1's position is not 0 then sets the light intensity on port D to 100% Starts the execution of the attached sequence when the condition is true. Starts the sequence that sets the motor power on port A to 50 ![]() Starts the execution of the attached sequence when the block is clicked or when the program starts. If you have issues with the table width (right column not fully visible) then please try to reload the page. Race Car interface – one of the controller intarfaces in the Free Code area of the Powered Up app with 1 joystick and 4 buttonsĬomposite Block – a block that contains one or more program sequencesĭisclaimer – This guide is partially based on a document received from LEGO® Customer Service, additional information and examples were added based on the Powered Up app and my experience. Slider interface – one of the controller interfaces in the Free Code area of the Powered Up app with 2 sliders and 3 buttons Tacho motor – a Powered Up motor that has an internal encoder and has speed and position regulation like the 88008 Medium Linear Motor or the L / XL motors. Simple motor – a Powered Up motor that only has power regulation, like the 45303 Simple Medium Linear Motor To show all data corresponding to a block click on the Green + icon next to the block’s image, that will show/hide the additional information. In this version each block can be identified with the icon, the number of the visible columns depends on your screen size / resolution. Click here for the extended version with all the information, column filtering, search function etc. This is the simplified version of the code block guide. It is created to provide help with Powered Up programming, it contains information about the code blocks used in the Free Play area of the app. This is the simple code block guide for the LEGO® Powered Up app. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |