跳到主要内容

Case 13: 巡线避障小车

简介

制作一辆沿着黑线行驶,当遇到障碍物时会自动停下的天蓬车。

购买链接

TPBot micro:bit v2

软件

MicroSoft makecode

Programming

Click "Advanced" in the MakeCode drawer to see more choices.

We need to add a package for programming. Click "Extensions" in the bottom of the drawer and search with "tpbot" to download it.

Sample

Link:https://makecode.microbit.org/_8RYMihU6wJo3

You may also download it directly below:

Conclusion

天蓬车沿着黑线行驶,当遇到障碍物时会自动停下。