Robot Kit for Micro:bit Tutorial: 7.1 IR Control
This experiment needs to be done indoors to reduce the interference of sunlight on the infrared receiver.
1-1.The position of the Infrared receiver motor on the robot car
1-2.Learn how to use infrared remote controller
As shown on the left figure, the infrared receiver on the robot circled by the red wire frame.
As shown on the right figure, infrared remote controller.
Mode 1 online programming: First, we need to connect the micro:bit to the computer by USB cable. The computer will pop up a USB flash drive and click on the URL in the USB flash drive: http://microbit.org/ to enter the programming interface. Add the Yahboom package: https://github.com/lzty634158/Tiny-bit to program.
Mode 2 offline programming: We need to open the offline programming software. After the installation is complete, enter the programming interface, click【New Project】, add Yahboom package: https://github.com/lzty634158/Tiny-bit, you can program.
2-1. Learn about using infrared remote control graphically programming blocks
2-2. The following functions are controlled by the infrared remote controller.
3.Search for block
The following is the location of the building blocks required for this programming.
The summary program is shown below:
After the program is downloaded, we can control the robot car by infrared remote controller.
The code of the experiment: 1.IR Control.rar
Interacting with Tiny bit