Skip to content

Commit

Permalink
Ares: wiki
Browse files Browse the repository at this point in the history
  • Loading branch information
lah-1201 committed Jul 3, 2024
1 parent 766e205 commit 62b518b
Show file tree
Hide file tree
Showing 19 changed files with 430 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
sidebar_position: 10
sidebar_label: 小组比赛活动
---
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
sidebar_position: 5
sidebar_label: 了解Joysticks:bit V2
---
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
sidebar_position: 6
sidebar_label: 遥控小车
---
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
sidebar_position: 7
sidebar_label: 抛硬币
---
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
sidebar_position: 8
sidebar_label: 正式比赛
---
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.
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 />
```
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>
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)
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 />
```
Original file line number Diff line number Diff line change
@@ -1,9 +1,24 @@
---
sidebar_position: 2
sidebar_label: 天蓬智能车积木扩展案例
sidebar_label: 天蓬科创扩展包
---

# 天蓬智能车积木扩展案例
# 天蓬科创扩展包

## 简介

TPbot科创扩展包是专为TPbot智能车设计的。该套装内含180颗多功能积木和一个积木舵机,可用于制作各种创意案例。搭配TPbot智能车,我们共同打造了12个有趣的案例,让您在探索中体验乐趣。

## 主要特点
1. 丰富的积木:TPbot科创扩展包提供了180颗多样化的积木,形状、尺寸和功能各异。您可以利用这些积木发挥创意,构建出独特的机器人设计。从基础结构到创新装置,积木的多样性将激发您的想象力。

2. 创意案例:我们精心设计了12个有趣的案例,供您尝试。这些案例包括清障小车、格斗小车、叉车、机械爪等等。通过挑战这些案例,您将学习基本的编程原理和机械结构,培养解决问题和创新思维的能力。

TPbot科创扩展包的设计理念源自我们对于TPbot智能车的热爱。我们相信通过构建机器人和参与有趣的实践项目,您能够获得更深入的STEM(科学、技术、工程和数学)学习体验。TPbot科创扩展包将成为您探索科技世界的理想工具,培养您的创造力、问题解决能力和团队合作精神。

不论您身处学校还是家庭环境,TPbot科创扩展包都将是您开发技术技能、培养创新思维和追求科学探索的理想选择。选择TPbot科创扩展包,释放您的创意潜能,让您在乐趣中学习和成长!

![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/microbit-smart-car/microbit-tpbot/brick-expansion-case/images/tpbot-science-and-technology-pack-01.png)

## 目录

Expand Down
Loading

0 comments on commit 62b518b

Please sign in to comment.