The McQueen car provides three programming environments
Mind+ is a graphical programming environment developed by DFRobot itself. It is a full Chinese environment and can be used offline, which is very suitable for children to develop and use. However, only the WIN version is provided, which limits the use environment. MAKECODE is the official development tool of micro:bit. It can be used online across platforms and can be developed on IPAD, saving the trouble of using a computer. Enter the URL https://makecode.microbit.org/ to open the online programming environment and load the maqueen library. There are two infrared reflection sensors at the bottom of the McQueen car for line detection. There are two blue indicator lights on the front of the car to show the status of the detector. The white light is on when there is reflection, which is very convenient for debugging. Load the car patrol line sample program, click the download button, and copy the program to the development board.
Draw a path on the ground with a black pen.
Turn on the car power and the car moves along the path, as shown in the figure below.
From the picture, we can see that the car is not running smoothly. Next time, try to reduce the speed of the car and see if it slows down.
This content is created by EEWORLD forum user xscc. If you need to reprint or use it for commercial purposes, you must obtain the author's consent and indicate the source