diff --git a/docs/microbit/interesting-case/classroom-science-pack/add-extensions.md b/docs/microbit/interesting-case/classroom-science-pack/add-extensions.md new file mode 100644 index 00000000..37319473 --- /dev/null +++ b/docs/microbit/interesting-case/classroom-science-pack/add-extensions.md @@ -0,0 +1,22 @@ +--- +sidebar_position: 6 +sidebar_label: 添加扩展 +--- + +# 添加扩展 + +打开``makecode.microbit.org``并点击``新建项目``. + +![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/interesting-case/classroom-science-pack/images/classroom-science-pack-add-extensions-01.png) + +点击``扩展``. + +![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/interesting-case/classroom-science-pack/images/classroom-science-pack-add-extensions-02.png) + +搜索``iot-environment-kit``,添加iot-environment-kit软件库。 + +![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/interesting-case/classroom-science-pack/images/classroom-science-pack-add-extensions-03.png) + +搜索``wukong``,添加wukong软件库。 + +![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/interesting-case/classroom-science-pack/images/classroom-science-pack-add-extensions-04.png) diff --git a/docs/microbit/interesting-case/classroom-science-pack/cases-libraries/case01.md b/docs/microbit/interesting-case/classroom-science-pack/cases-libraries/case01.md new file mode 100644 index 00000000..9ed95304 --- /dev/null +++ b/docs/microbit/interesting-case/classroom-science-pack/cases-libraries/case01.md @@ -0,0 +1,183 @@ +--- +sidebar_position: 1 +sidebar_label: 案例一:光与色彩的奥秘 +--- + +# 案例一:光与色彩的奥秘 + +## 简介 + +本项目旨在引导学生使用classroom科学套装中悟空扩展板上板载的彩虹灯探索光的混色原理。通过点亮并观察彩虹灯的黄色灯光和紫色灯光,学生将了解如何通过组合不同颜色的光来创造新的颜色。通过这个项目,学生将学习基础的光学知识和编程技能,同时激发他们对科学探索的兴趣。 + +![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/interesting-case/classroom-science-pack/cases-libraries/images/classroom-science-pack-case-01-01.png) + +## 教学目标 + +理解光的混色原理。 + +学习基础的光学知识。 + +掌握使用micro:bit控制LED灯的基本编程技能。 + +## 教学准备 + +在开始教学之前,请确保您已经准备好以下必要的材料: + +| 图片 | 名称 | +| :-: | :-: | +| ![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/interesting-case/classroom-science-pack/cases-libraries/images/classroom-science-pack-case-01-02.png) | classroom科学套装 | +| ![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/interesting-case/microbit-smart-climate-kit/cases-libraries/images/microbit-smart-climate-kit-case-01-03.png) | micro:bit V2 | +| ![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/interesting-case/microbit-smart-climate-kit/cases-libraries/images/microbit-smart-climate-kit-case-01-04.png) | 个人电脑(PC) | +| ![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/interesting-case/microbit-smart-climate-kit/cases-libraries/images/microbit-smart-climate-kit-case-01-05.png) | USB 数据线 | + +这些材料将为您提供一个完整的体验,确保您可以顺利地进行后续的操作和学习。如果您已准备好以上内容,我们可以继续进入下一步。 + +## 教学过程 + +### 课程引入 + +你有没有想过,为什么彩虹有七种颜色?为什么当我们混合某些颜色的光时,它们可以产生新的颜色?在本节课中,我们将探索光与色彩的奥秘,了解光的混色原理。 + +我们将使用classroom科学套装中的彩虹灯和micro:bit,通过编程控制彩虹灯的特定颜色发光。这个装置能够帮助我们观察和理解不同颜色的光如何混合在一起,形成新的颜色。 + +准备好了吗?现在,让我们一起踏上这个有趣的学习旅程,探索光与色彩的奥秘吧! + +### 探究活动 + +1. 学习如何使用micro:bit上的编程环境,编写代码来控制彩虹灯。 + +2. 理解如何控制单个彩虹灯的亮灭。 + +3. 学习如何调整灯光的亮度,创造不同的颜色效果。 + + + +### 硬件连接 + +此案例使用wukong扩展板上的4颗彩虹灯进行实验,彩虹灯连接引脚为P16。 + + +![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/interesting-case/classroom-science-pack/cases-libraries/images/classroom-science-pack-case-01-06.png) + +### 代码编程 + +*** 添加软件库 *** + +打开``makecode.microbit.org``并点击``新建项目``. + +![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/interesting-case/classroom-science-pack/images/classroom-science-pack-add-extensions-01.png) + +点击``扩展``. + +![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/interesting-case/classroom-science-pack/images/classroom-science-pack-add-extensions-02.png) + +搜索``iot-environment-kit``,添加iot-environment-kit软件库。 + +![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/interesting-case/classroom-science-pack/images/classroom-science-pack-add-extensions-03.png) + +搜索``wukong``,添加wukong软件库。 + +![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/interesting-case/classroom-science-pack/images/classroom-science-pack-add-extensions-04.png) + +*** 示例代码 *** + +1. 当开机时,显示爱心图标。 + +![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/interesting-case/classroom-science-pack/cases-libraries/images/classroom-science-pack-case-01-09.png) + +2. 初始化彩虹灯为一颗并连接到P1端口,设置彩虹灯亮度为3。 + +![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/interesting-case/classroom-science-pack/cases-libraries/images/classroom-science-pack-case-01-10.png) + +3. 当按键A被按下时,彩虹灯显示紫色灯光;当按键B被按下时,彩虹灯显示黄色灯光。 + +![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/interesting-case/classroom-science-pack/cases-libraries/images/classroom-science-pack-case-01-11.png) + + +请参考程序连接:[https://makecode.microbit.org/_XM8XaJKs86UY](https://makecode.microbit.org/_XM8XaJKs86UY) + +你也可以通过以下网页直接下载程序。 + +
+