DFRobot ROB0156-B Tutoriel - Page 6
Parcourez en ligne ou téléchargez le pdf Tutoriel pour {nom_de_la_catégorie} DFRobot ROB0156-B. DFRobot ROB0156-B 8 pages.
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