diff --git a/docs/microbit/wisdom-life/microbit-smart-life-kit/about-microbit-smart-life-kit/products-introduction.md b/docs/microbit/wisdom-life/microbit-smart-life-kit/about-microbit-smart-life-kit/products-introduction.md index fcf55154..08b319ef 100644 --- a/docs/microbit/wisdom-life/microbit-smart-life-kit/about-microbit-smart-life-kit/products-introduction.md +++ b/docs/microbit/wisdom-life/microbit-smart-life-kit/about-microbit-smart-life-kit/products-introduction.md @@ -7,4 +7,4 @@ sidebar_label: 产品简介 智慧生活套装,集成了水泵、继电器、超声波传感器、光线传感器、水位传感器、MQ2烟雾传感器、舵机、温湿度传感器、风扇模块和碰撞传感器的套装,不仅提供了丰富的实践材料,更通过智能感应、环境监测、自动控制等项目,激发孩子们的创造力和探索精神。智慧生活套装,让科技与生活紧密相连,开启孩子们的智能生活之旅。 -![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/interesting-case/cutebot-fun-football-game-kit/cases-libraries/images/cutebot-football-game.png) +![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/wisdom-life/microbit-smart-life-kit/images/microbit-smart-life-kit.png) diff --git a/docs/microbit/wisdom-life/microbit-smart-life-kit/cases-libraries/case-01.md b/docs/microbit/wisdom-life/microbit-smart-life-kit/cases-libraries/case-01.md new file mode 100644 index 00000000..f888d73e --- /dev/null +++ b/docs/microbit/wisdom-life/microbit-smart-life-kit/cases-libraries/case-01.md @@ -0,0 +1,126 @@ +--- +sidebar_position: 1 +sidebar_label: 智能灯 +--- + +# 智能灯 + +## 简介 + +在本项目中,我们将学习如何制作一个智能灯,采用光线传感器监测环境光照。当检测到光线不足时,系统自动启动LED灯,提供充足的照明。 + +![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/wisdom-life/microbit-smart-life-kit/images/case-01-01.png) + +## 教学目标 + +了解光线传感器的使用方式 + +掌握使用micro:bit控制LED灯的基本编程技能。 + +## 教学准备 + +在开始教学之前,请确保您已经准备好以下必要的材料: + +| **图片** | **名称** | **数量** | **备注** | +| --- | --- | --- | --- | +| ![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/wisdom-life/microbit-smart-life-kit/images/microbit-smart-life-kit.png) | 智慧生活套装 | 1 | | +| ![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/interesting-case/cutebot-fun-football-game-kit/cases-libraries/images/USB-data-cable.png) | USB数据线 | 1 | | +| ![](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 | 1 | 自行准备 | +| ![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/interesting-case/cutebot-fun-football-game-kit/cases-libraries/images/pc.png) | PC | 1 | 自行准备 | + +这些材料将为您提供一个完整的体验,确保您可以顺利地进行后续的操作和学习。如果您已准备好以上内容,我们可以继续进入下一步。 + + +## 项目制作 + +### 硬件连接 + +将光线传感器连接到悟空扩展板的P1接口,将彩虹灯连接到悟空扩展板的P2接口,将OLED显示屏插入IIC接口。 + +![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/wisdom-life/microbit-smart-life-kit/images/case-01-02.png) + +### 编程平台 + +我们通常使用[图形化编程平台makecode](https://makecode.microbit.org/)对micro:bit进行编程 + +编程平台入口:[https://makecode.microbit.org/](https://makecode.microbit.org/) + +### 新建项目 + +打开[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) + +### 编写程序 + +示例程序:[https://makecode.microbit.org/_cvA28PcpAWLJ](https://makecode.microbit.org/_cvA28PcpAWLJ) + +![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/wisdom-life/microbit-smart-life-kit/images/case-01-03.png) + +你也可以通过以下网页直接下载程序。 + +