-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
430 additions
and
4 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
...bit/interesting-case/cutebot-fun-football-game-kit/cases-libraries/10.小组比赛活动.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
sidebar_position: 10 | ||
sidebar_label: 小组比赛活动 | ||
--- |
4 changes: 4 additions & 0 deletions
4
...sting-case/cutebot-fun-football-game-kit/cases-libraries/5.了解joysticksbit-v2.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
sidebar_position: 5 | ||
sidebar_label: 了解Joysticks:bit V2 | ||
--- |
4 changes: 4 additions & 0 deletions
4
...crobit/interesting-case/cutebot-fun-football-game-kit/cases-libraries/6.遥控小车.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
sidebar_position: 6 | ||
sidebar_label: 遥控小车 | ||
--- |
4 changes: 4 additions & 0 deletions
4
...it/interesting-case/cutebot-fun-football-game-kit/cases-libraries/7.比赛项目-抛硬币.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
sidebar_position: 7 | ||
sidebar_label: 抛硬币 | ||
--- |
4 changes: 4 additions & 0 deletions
4
...t/interesting-case/cutebot-fun-football-game-kit/cases-libraries/8.比赛项目-正式比赛.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
sidebar_position: 8 | ||
sidebar_label: 正式比赛 | ||
--- |
4 changes: 4 additions & 0 deletions
4
...t/interesting-case/cutebot-fun-football-game-kit/cases-libraries/9.比赛项目-点球大战.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
sidebar_position: 9 | ||
sidebar_label: 点球大战 | ||
--- |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions
14
...icrobit/interesting-case/cutebot-fun-football-game-kit/cases-libraries/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
sidebar_position: 5 | ||
sidebar_label: 案例库 | ||
--- | ||
|
||
# 案例库 | ||
|
||
## 目录 | ||
|
||
```mdx-code-block | ||
import DocCardList from '@theme/DocCardList'; | ||
<DocCardList /> | ||
``` |
141 changes: 141 additions & 0 deletions
141
...g-case/cutebot-fun-football-game-kit/cases-libraries/introduction-to-cutebot.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,141 @@ | ||
--- | ||
sidebar_position: 2 | ||
sidebar_label: 认识cutebot智能赛车 | ||
--- | ||
|
||
# 认识cutebot智能赛车 | ||
|
||
## 课程简介 | ||
|
||
这节课我们将简单的了解cutebot智能赛车有什么功能,并通过一个简单的案例来学习如何对cutebot智能赛车进行编程。 | ||
|
||
## 课前准备 | ||
|
||
micro:bit | ||
|
||
cutebot智能赛车 | ||
|
||
3颗 7号电池 | ||
|
||
电脑 | ||
|
||
USB数据线 | ||
|
||
## cutebot智能赛车简介 | ||
--- | ||
|
||
ELECFREAKS Cutebot是一款带有双高速电机马达的后驱智能赛车。 | ||
|
||
Cutebot同时搭载了很多车载设备,包括超声波导航距离传感器,两颗RGBLED车大灯,两颗Rainbow LED车底示廓灯,两个车道辅助巡线探头。 | ||
|
||
![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/microbit-smart-car/microbit-smart-cutebot/images/cutebot_01_01.jpg) | ||
|
||
|
||
## 功能模块描述 | ||
|
||
小车正前方配备超声波接口和micro:bit的IIC接口 | ||
|
||
![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/microbit-smart-car/microbit-smart-cutebot/images/cutebot_01_02.jpg) | ||
|
||
|
||
前方左右两边各配备两颗RGB全彩色LED车灯,通过扩展板控制,不占用micro:bitIO口数量。 | ||
|
||
![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/microbit-smart-car/microbit-smart-cutebot/images/cutebot_01_03.jpg) | ||
|
||
正上方装有三颗AA电池电池盒扩展板,用来驱动整个小车。 | ||
|
||
![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/microbit-smart-car/microbit-smart-cutebot/images/cutebot_01_04.jpg) | ||
|
||
电池盒扩展板上同时扩展了S1、S2舵机接口和P1,P2 IO接口。 | ||
|
||
![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/microbit-smart-car/microbit-smart-cutebot/images/cutebot_01_05.jpg) | ||
|
||
小车尾部带有红外线接收头(在电池盒下方),连接在micro:bit主板的P16接口。 | ||
|
||
![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/microbit-smart-car/microbit-smart-cutebot/images/cutebot_01_06.jpg) | ||
|
||
小车配备可供AI摄像头连接的IIC接口 | ||
|
||
![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/microbit-smart-car/microbit-smart-cutebot/images/cutebot_01_12.jpg) | ||
|
||
尾部红外线接收头旁边为小车总电源开关,同时配有一颗LED灯指示开关状态。 | ||
|
||
![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/microbit-smart-car/microbit-smart-cutebot/images/cutebot_01_07.jpg) | ||
|
||
左右两边为两个 微型高速直流齿轮减速电机 驱动的车轮,转速高达(300转/分钟),享受飞驰一般的速度。 | ||
|
||
![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/microbit-smart-car/microbit-smart-cutebot/images/cutebot_01_08.jpg) | ||
|
||
小车底部前方有两个巡线头,用于检测黑线及边缘,连接到micro:bit主板的P13和P14接口。 | ||
|
||
![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/microbit-smart-car/microbit-smart-cutebot/images/cutebot_01_09.jpg) | ||
|
||
小车底部前方装配一个金属万向轮,小车用 左右轮速度差的方式 完成360度全方向行驶。 | ||
|
||
![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/microbit-smart-car/microbit-smart-cutebot/images/cutebot_01_10.jpg) | ||
|
||
底部两侧边安装了两颗Rainbow LED 全彩灯珠,连接到micro:bit主板的P15口,需要使用扩展`Neopixel`来驱动使用,可以作为小车示廓灯或其他功能使用。 | ||
|
||
![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/microbit-smart-car/microbit-smart-cutebot/images/cutebot_01_11.jpg) | ||
|
||
|
||
## 快速入门 | ||
### 准备工作 | ||
|
||
将3M双面胶贴在电池盒上面。 | ||
|
||
|
||
|
||
将电池盒的电源线插入cutebot智能赛车。 | ||
|
||
|
||
|
||
将电池盒贴在cutebot智能赛车上。 | ||
|
||
|
||
|
||
安装电池 | ||
|
||
|
||
|
||
|
||
### 添加软件库 | ||
|
||
在makecode编程界面的Toolbox点击Extensions。 | ||
|
||
|
||
|
||
在弹出页面搜索`cutebot`,并点击选择cutebot的软件库。 | ||
|
||
|
||
|
||
### 软件积木块简介及示例 | ||
|
||
**使用此积木块可单独调整左轮或右轮的速度。** | ||
|
||
|
||
|
||
示例程序:[https://makecode.microbit.org/_bk5A9eTmrE1c](https://makecode.microbit.org/_bk5A9eTmrE1c) | ||
|
||
![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/interesting-case/cutebot-fun-football-game-kit/cases-libraries/images/microbit-basic-06.png) | ||
|
||
你也可以通过以下网页直接下载程序。 | ||
|
||
<div | ||
style={{ | ||
position: 'relative', | ||
paddingBottom: '60%', | ||
overflow: 'hidden', | ||
}} | ||
> | ||
<iframe | ||
src="https://makecode.microbit.org/_bk5A9eTmrE1c" | ||
frameborder="0" | ||
sandbox="allow-popups allow-forms allow-scripts allow-same-origin" | ||
style={{ | ||
position: 'absolute', | ||
width: '100%', | ||
height: '100%', | ||
}} | ||
/> | ||
</div> |
157 changes: 157 additions & 0 deletions
157
...-case/cutebot-fun-football-game-kit/cases-libraries/introduction-to-microbit.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,157 @@ | ||
--- | ||
sidebar_position: 1 | ||
sidebar_label: 认识micro:bit | ||
--- | ||
|
||
# 认识micro:bit | ||
|
||
## 课程简介 | ||
|
||
这节课我们将简单的了解什么是micro:bit,micro:bit有什么功能,并通过一个简单的案例来学习如何对micro:bit进行编程。 | ||
|
||
## 课前准备 | ||
|
||
micro:bit | ||
|
||
电脑 | ||
|
||
USB数据线 | ||
|
||
## 什么是micro:bit? | ||
|
||
micro:bit 是一款专为青少年编程教育目的而设计的微型计算机,尺寸只有4cm x 5cm,但它拥有一系列的传感器和 LED 灯,可以用来控制和监测物理世界。 | ||
|
||
micro:bit 可以通过 USB 线或蓝牙连接到计算机,并使用编程软件进行编程。它支持多种编程语言,包括 Microsoft MakeCode、Python 和 JavaScript 等。学生可以使用这些编程语言来编写代码,控制 micro:bit 上的传感器和 LED 灯,创造各种有趣的项目。 | ||
|
||
micro:bit 的设计简单易用,适合初学者使用。它可以用于各种教育活动,如编程课程、科学实验和创客活动等。通过使用 micro:bit,学生可以培养创造力、解决问题的能力和团队合作精神。 | ||
|
||
![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/interesting-case/cutebot-fun-football-game-kit/cases-libraries/images/microbit.png) | ||
|
||
更多关于 micro:bit 的信息,欢迎访问:[micro:bit 官网](https://microbit.org/)。 | ||
|
||
## micro:bit上有什么功能? | ||
|
||
micro:bit从功能上区分有两个版本。 | ||
|
||
**旧版本的micro:bit功能** | ||
|
||
![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/interesting-case/cutebot-fun-football-game-kit/cases-libraries/images/microbit-old.png) | ||
|
||
**新版本的micro:bit** | ||
|
||
对比旧版本的micro:bit,新增了蜂鸣器、可触摸徽标、麦克风。 | ||
|
||
![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/interesting-case/cutebot-fun-football-game-kit/cases-libraries/images/microbit-new.png) | ||
|
||
详细信息请查询micro:bit官方网站:[https://microbit.org/get-started/features/overview/](https://microbit.org/get-started/features/overview/) | ||
|
||
## 快速入门 | ||
|
||
### 编程平台 | ||
|
||
我们通常使用[图形化编程平台makecode](https://makecode.microbit.org/)对micro:bit进行编程 | ||
|
||
编程平台入口:[https://makecode.microbit.org/](https://makecode.microbit.org/) | ||
|
||
### 跳动的心 | ||
|
||
让我们来做一个简单的案例,快速地了解如何用makecode对micro:bit进行编程吧。 | ||
|
||
打开[https://makecode.microbit.org/](https://makecode.microbit.org/) | ||
|
||
![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/interesting-case/cutebot-fun-football-game-kit/cases-libraries/images/makecode.png) | ||
|
||
新建项目 | ||
|
||
![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/interesting-case/cutebot-fun-football-game-kit/cases-libraries/images/makecode-new-project-01.png) | ||
|
||
输入项目名称并点击创建。 | ||
|
||
![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/interesting-case/cutebot-fun-football-game-kit/cases-libraries/images/makecode-new-project-02.png) | ||
|
||
进入编辑器界面后我们可以看到Micro:bit Simulator,Toolbox,Workspace。 | ||
|
||
![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/interesting-case/cutebot-fun-football-game-kit/cases-libraries/images/makecode-new-project-03.png) | ||
|
||
从`Basic`中找到`forever`积木块,将其拖动到Workspace。 | ||
|
||
![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/interesting-case/cutebot-fun-football-game-kit/cases-libraries/images/microbit-basic-01.png) | ||
|
||
从`Basic`中找到`show icon`积木块,将其放入`forever`积木块中。 | ||
|
||
没有放到`forever`积木块中的`show icon`积木块是灰色的,此时通过Micro:bit Simulator区域我们可以看到这个积木块是不执行的。 | ||
|
||
![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/interesting-case/cutebot-fun-football-game-kit/cases-libraries/images/microbit-basic-02.png) | ||
|
||
放到`forever`积木块中的`show icon`积木块是蓝色的,此时通过Micro:bit Simulator区域我们可以看到这个积木块是执行的。 | ||
|
||
![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/interesting-case/cutebot-fun-football-game-kit/cases-libraries/images/microbit-basic-03.png) | ||
|
||
在从`Basic`中找到`pause(ms)`积木块,将其放入`forever`积木块中。 | ||
|
||
![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/interesting-case/cutebot-fun-football-game-kit/cases-libraries/images/microbit-basic-04.png) | ||
|
||
在`forever`积木块中,再放入一个`show icon`积木块并选择`small heart`图标, | ||
|
||
![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/interesting-case/cutebot-fun-football-game-kit/cases-libraries/images/microbit-basic-05.png) | ||
|
||
最后完成程序:[https://makecode.microbit.org/_bk5A9eTmrE1c](https://makecode.microbit.org/_bk5A9eTmrE1c) | ||
|
||
![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/interesting-case/cutebot-fun-football-game-kit/cases-libraries/images/microbit-basic-06.png) | ||
|
||
你也可以通过以下网页直接下载程序。 | ||
|
||
<div | ||
style={{ | ||
position: 'relative', | ||
paddingBottom: '60%', | ||
overflow: 'hidden', | ||
}} | ||
> | ||
<iframe | ||
src="https://makecode.microbit.org/_bk5A9eTmrE1c" | ||
frameborder="0" | ||
sandbox="allow-popups allow-forms allow-scripts allow-same-origin" | ||
style={{ | ||
position: 'absolute', | ||
width: '100%', | ||
height: '100%', | ||
}} | ||
/> | ||
</div> | ||
|
||
|
||
从Micro:bit Simulator区域我们可以看到程序的模拟效果。 | ||
|
||
![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/interesting-case/cutebot-fun-football-game-kit/cases-libraries/images/microbit-basic-heart.gif) | ||
|
||
### 如何将程序下载到micro:bit? | ||
|
||
使用USB线连接PC和micro:bit V2。 | ||
|
||
![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/interesting-case/microbit-smart-climate-kit/cases-libraries/images/connect-microbit.gif) | ||
|
||
连接成功后,电脑上会识别出一个名为`MICROBIT`的盘符。 | ||
|
||
![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/interesting-case/microbit-smart-climate-kit/cases-libraries/images/microbit-drive.png) | ||
|
||
点击左下角的![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/interesting-case/microbit-smart-climate-kit/cases-libraries/images/download-01.png),选择`Connect Device`。 | ||
|
||
![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/interesting-case/microbit-smart-climate-kit/cases-libraries/images/download-02.png) | ||
|
||
点击![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/interesting-case/microbit-smart-climate-kit/cases-libraries/images/download-03.png)。 | ||
|
||
![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/interesting-case/microbit-smart-climate-kit/cases-libraries/images/download-04.png) | ||
|
||
点击![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/interesting-case/microbit-smart-climate-kit/cases-libraries/images/download-05.png)。 | ||
|
||
![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/interesting-case/microbit-smart-climate-kit/cases-libraries/images/download-06.png) | ||
|
||
|
||
在弹出窗口选择`BBC micro:bit CMSIS-DAP`,然后选择连接,至此,我们的micro:bit就已经连接成功。 | ||
|
||
![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/interesting-case/microbit-smart-climate-kit/cases-libraries/images/download-07.png) | ||
|
||
点击下载程序。 | ||
|
||
![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/interesting-case/microbit-smart-climate-kit/cases-libraries/images/download-08.png) |
14 changes: 14 additions & 0 deletions
14
docs/microbit/interesting-case/cutebot-fun-football-game-kit/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
sidebar_position: 1 | ||
sidebar_label: 趣味足球赛套装 | ||
--- | ||
|
||
# 趣味足球赛套装 | ||
|
||
## 目录 | ||
|
||
```mdx-code-block | ||
import DocCardList from '@theme/DocCardList'; | ||
<DocCardList /> | ||
``` |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
19 changes: 17 additions & 2 deletions
19
docs/microbit/microbit-smart-car/microbit-tpbot/brick-expansion-case/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.