5% OFF Over $19, Code: Elephant5; 10% OFF Over $59, Code: Elephant10



Omibox Robot Kit Catch Omibox Course 8.1 Button control

Posted by Fiona Su on

Omibox Robot Kit Catch Omibox Course 8.3 Button control

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, clip of wrestle Omibox will lift up .

When the red button is not pressed, clip of wrestle Omibox will put down.

When the green button is pressed, clip of wrestle Omibox will close.

When the green button is not pressed, clip of wrestle Omibox will open.

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

!!!Note: When use servo in the first time,we need to remove the gear on the building block servo and download the program to micro:bit. Next, turn on the power of the robot, wait for the building block servo to turn to the initial position. Then ,turn off the power. Finally, we need to install the gear on the building block servo. 

In initial status, clip is put down and close. 

After the program is uploaded, open the power of Throw Omibox, 

When the red button is pressed, clip of wrestle Omibox will lift up .

When the red button is not pressed, clip of wrestle Omibox will put down.

When the green button is pressed, clip of wrestle Omibox will close.

When the green button is not pressed, clip of wrestle Omibox will open. 

 

 

The code of the experiment: 1.Button control Catch Omibox.rar

0 comments

Leave a comment

Please note, comments must be approved before they are published