DFRobot Maqueen Mechanic-Beetle Tutorial - Pagina 6

Sfoglia online o scarica il pdf Tutorial per Robotica DFRobot Maqueen Mechanic-Beetle. DFRobot Maqueen Mechanic-Beetle 8.

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
Red Key
VOL+
FUNC/STOP
Rwd
Pause/Play
Fwd
Down Triangle
VOL-
Up Triangle
0
EQ
ST/REPT
1
2
3
4
5
6
7
8
9
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:
Key Value ( Decimal )
0
1
2
4
5
6
8
9
10
12
13
14
16
17
18
20
21
22
24
25
26
6
/ 8