DFRobot Maqueen Mechanic-Beetle Tutorial Download Page 7

7

/ 8

After the code is downloaded to micro: bit, pointing the infrared remote control to

the infrared receiver of Maqueen, holding the Up Triangle and the Down Triangle

respectively, and the beetle pincers will grasp 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 comprehensive program.

It uses the infrared remote control to enable the Maqueen move forward and

backward and the pincers grasp and release.
Code URL:

https://makecode.microbit.org/_D3bFyhgyYT7A

The code is shown as below:

Reviews: