FREE SHIPPING OVER $89; 10% OFF FOR YOUR FIRST ORDER (CODE:NEW10); $20 OFF OVER $179 (CODE:BL20); $30 OFF OVER $259(CODE:BL30)



Yahboom Omibox Robot Kit Basic Course 3.4 Button

Posted by SuFiona on

Yahboom Omibox Robot Kit Basic Course 3.4 Button

1.Preparation

1-1. The position of the button in the robot car

1-2. Learn how to control buttons by graphically programming

image.png

As shown in the figure above,we circled the blue wire frame with two buttons, and we can control them by programming.

2.Learning goals

In this lesson, we will learn how to use the buttons. When the red button is pressed, all the lights be lit up. When the green button is pressed, all the lights be closed.

3.Search for blocks

The following is the location of the building blocks required for this programming.

image.png

image.png

image.png

image.png

image.png

4. Combine blocks

The summary program is shown below:

image.png

5.Experimental phenomena

After the program is uploaded, the car is powered on normally. When we press the red button, we can see that the RGB lights are lit. When we press the green button, we can see that the lights are off, as shown below:

image.pngimage.png

The code of the experiment: 4.Button.rar

 

0 comments

Leave a comment

Please note, comments must be approved before they are published