background image

6

/ 8

Key

Key Value

Decimal

Red Key

0

VOL+

1

FUNC/STOP

2

Rwd

4

Pause/Play

5

Fwd

6

Down Triangle

8

VOL-

9

Up Triangle

10

0

12

EQ

13

ST/REPT

14

1

16

2

17

3

18

4

20

5

21

6

22

7

24

8

25

9

26

2. IR Remote control of the beetle

This example uses the infrared remote control to make the beetle pincers

to grasp and release. Each button of the infrared remote control is

corresponding to one key value.

Key value table of infrared remote control

Now, let's program an example to control the angle of the beetle pincers by the

infrared remote control. The code is shown in the figure:

Содержание Maqueen Mechanic-Beetle

Страница 1: ...1 8 Tutorial of Maqueen Mechanic Beetle ROB0156 B www DFRobot com...

Страница 2: ...2 8 Installation Diagram...

Страница 3: ...the 3pin servo wire into port S1 or S2 of Maqueen shown as below Brown wire to Black pin Red wire to Red pin Orange wire to Green pin 2 Makecode Tutorial 1 Click to open the Makecode programming web...

Страница 4: ...k More 2 Click Extensions 3 Search dfrobot 4 Click to select Maqueen As shown in the figure 3 Examples 1 Make the beetle pincers to grasp and release 1 The example will use a servo to make the pincers...

Страница 5: ...MICROBIT disk As shown in the figure 3 Turn Maqueen on when the example code is downloaded then the beetle pincers will constantly grasp and release There are two ways to adjust the starting and endin...

Страница 6: ...2 IR Remote control of the beetle This example uses the infrared remote control to make the beetle pincers to grasp and release Each button of the infrared remote control is corresponding to one key v...

Страница 7: ...p and release continuously 3 IR Remote control of the Maqueen Mechanic Beetle In the two programs above we have controlled the movement of the beetle pincers separately The example below is a comprehe...

Страница 8: ...this example Keys 2 8 4 6 5 are used to control Maqueen to move forward move backward turn left turn right and stop Using the Up and Down Triangles to make the beetle pincers release and grasp respec...

Отзывы: