跳到主要内容

Case 18: 云梯车

目的​

使用悟空创意搭建套装制作一辆云梯车。

购买链接​

悟空创意搭建套装 Joystick bit

所需材料​

搭建视频链接: https://player.bilibili.com/player.html?bvid=BV1V64y117zM&p=18&page=18

搭建步骤​

硬件连接​

将两个电机分别安装到悟空扩展板的M1和M2接口,将舵机连接到悟空扩展板的S7接口。

软件编程平台​

MakeCode

编写程序​

添加专属扩展库​

在MakeCode的代码抽屉中点击高级,查看更多代码选项,点击扩展。

在搜索框中搜索wukong,点击图片中wukong,添加扩展包。

Search with joystickbit in the dialogue box to download it.

程序​

For Joystick:bit:

程序链接:https://makecode.microbit.org/_f5DVqMKrtgYA For the aerial ladder truck:

程序链接:https://makecode.microbit.org/_V004ujT5wJ9j

结果​

通过手柄控制小车行驶和抬升/放下云梯。