Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
lah-1201 committed Dec 17, 2024
2 parents b4605fd + e241fcf commit 0804c9e
Show file tree
Hide file tree
Showing 18 changed files with 43 additions and 65 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy
name: learn_Deploy

on: workflow_dispatch

Expand Down
22 changes: 0 additions & 22 deletions .github/workflows/test-deploy.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# 课程_01 LED

![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com//images/case_01_01.jpg)
![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/circuit-design/microbit-starter-kit/images/case_01_01.jpg)

## 简介
---
Expand All @@ -21,35 +21,35 @@ LED灯的应用非常广泛。在日常生活中,我们看到的大部分信

**温馨提示:如果你需要以上所有元件,你可以购买我们的[Elecfreaks小小科学家套件](https://item.taobao.com/item.htm?ft=t&id=597096675822)**

![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com//images/case_01_02.jpg)
![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/circuit-design/microbit-starter-kit/images/case_01_02.jpg)

## 主要元件介绍
---
### micro:bit面包板扩展板
micro:bit面包板扩展板可以在面包板上扩展出micro:bit的所有引脚,方便我们在面包板上制作简单的电路。

![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com//images/case_01_03.jpg)
![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/circuit-design/microbit-starter-kit/images/case_01_03.jpg)

下面这张图片显示了如何将面包板扩展板插入到面包板上。面包板扩展板可以适用于各种规格的面包板。

![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com//images/case_01_04.jpg)
![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/circuit-design/microbit-starter-kit/images/case_01_04.jpg)

### LED
LED是Light Emitting Diode(发光二极管)的缩写。这是一种半导体二极管。它可以将电能转换成光能。当电流经过的时候,它就会发光。

![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com//images/case_01_05.jpg)
![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/circuit-design/microbit-starter-kit/images/case_01_05.jpg)

![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com//images/case_01_06.jpg)
![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/circuit-design/microbit-starter-kit/images/case_01_06.jpg)

如果你仔细看看LED,你就会发现它的两个特点。一个是它的引脚的长度不一致,另一个是LED的一侧是扁平的,而不是圆柱形。这些特征可以告诉你哪个引脚是阳极(正极),哪个引脚是阴极(负极)。长一些的引脚连接正极供电(3.3v),带有扁平一侧的引脚连接接地。

### 电阻
电阻是一种用于控制电流的元件。它可以限制所连接的电路的电流。在我们的实验中,我们使用了100欧姆的电阻。如果不限制电流的话,就会损坏LED灯。

![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com//images/case_01_07.jpg)
![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/circuit-design/microbit-starter-kit/images/case_01_07.jpg)

想通过色环来识别电阻的阻值吗?你可以阅读这篇文章:
[How to Identify Color Circle Resistance Value](https://www.elecfreaks.com/9158.html).
[How to Identify Color Circle Resistance Value](https://www.elecfreaks.com/blog/post/how-to-identify-color-circle-resistance-value.html).

## 实验步骤
---
Expand All @@ -59,30 +59,30 @@ LED是Light Emitting Diode(发光二极管)的缩写。这是一种半导体
- 1.将led灯的短引脚与GND连接

- 2.将led灯的长引脚通过电阻,与P0口与P1口连接
![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com//images/case_01_08.jpg)
![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/circuit-design/microbit-starter-kit/images/case_01_08.jpg)

连接完成后如图:

![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com//images/case_01_09.jpg)
![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/circuit-design/microbit-starter-kit/images/case_01_09.jpg)

### 软件

[微软Makecode在线编辑器:makecode.microbit.org](https://makecode.microbit.org/)
[微软Makecode在线编辑器:makecode.microbit.org](https:/docs/microbit/circuit-design/microbit-starter-kit/makecode.microbit.org/)



### 如图所示编写程序

![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com//images/case_01_11.png)
![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/circuit-design/microbit-starter-kit/images/case_01_11.png)

### 代码详解
- 1.将P0口写入数字信号0,关闭led,将P1口写入数字信号1,打开led,延迟500ms。

![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com//images/case_01_12.png)
![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/circuit-design/microbit-starter-kit/images/case_01_12.png)

- 2.将P0口写入数字信号1,打开led,将P1口写入数字信号0,关闭led,延迟500ms。

![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com//images/case_01_13.png)
![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/circuit-design/microbit-starter-kit/images/case_01_13.png)

### 参考程序
请参考程序连接:[https://makecode.microbit.org/_LybdqfauX3TR](https://makecode.microbit.org/_LybdqfauX3TR)
Expand Down Expand Up @@ -115,7 +115,7 @@ LED是Light Emitting Diode(发光二极管)的缩写。这是一种半导体
---
你可以看到两颗LED灯交替闪烁。如果不是这样的话,请返回之前的步骤,检查你的操作。

![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com//images/case_01_14.gif)
![](https://wiki-media-ef.oss-cn-hongkong.aliyuncs.com/docs/microbit/circuit-design/microbit-starter-kit/images/case_01_14.gif)


## 思考
Expand All @@ -127,6 +127,6 @@ LED是Light Emitting Diode(发光二极管)的缩写。这是一种半导体

## 更多信息,欢迎访问:
---
[micro:bit知识库地址](https://www.elecfreaks.com/learn-cn/)

micro:bit官方推荐供应商:[恩孚科技淘宝店](https://shop69086944.taobao.com/?spm=a230r.7195193.1997079397.2.RSthR0)
QQ技术交流群:570756726
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,6 @@

## 更多信息,欢迎访问:
---
[micro:bit知识库地址](https://www.elecfreaks.com/learn-cn/)

micro:bit官方推荐供应商:[恩孚科技淘宝店](https://shop69086944.taobao.com/?spm=a230r.7195193.1997079397.2.RSthR0)
QQ技术交流群:570756726
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,6 @@

## 更多信息,欢迎访问:
---
[micro:bit知识库地址](https://www.elecfreaks.com/learn-cn/)

micro:bit官方推荐供应商:[恩孚科技淘宝店](https://shop69086944.taobao.com/?spm=a230r.7195193.1997079397.2.RSthR0)
QQ技术交流群:570756726
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,6 @@

## 更多信息,欢迎访问:
---
[micro:bit知识库地址](https://www.elecfreaks.com/learn-cn/)

micro:bit官方推荐供应商:[恩孚科技淘宝店](https://shop69086944.taobao.com/?spm=a230r.7195193.1997079397.2.RSthR0)
QQ技术交流群:570756726
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,6 @@

## 更多信息,欢迎访问:
---
[micro:bit知识库地址](https://www.elecfreaks.com/learn-cn/)

micro:bit官方推荐供应商:[恩孚科技淘宝店](https://shop69086944.taobao.com/?spm=a230r.7195193.1997079397.2.RSthR0)
QQ技术交流群:570756726
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,6 @@

## 更多信息,欢迎访问:
---
[micro:bit知识库地址](https://www.elecfreaks.com/learn-cn/)

micro:bit官方推荐供应商:[恩孚科技淘宝店](https://shop69086944.taobao.com/?spm=a230r.7195193.1997079397.2.RSthR0)
QQ技术交流群:570756726
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,6 @@ micro:bit屏幕上显示当前温度值。

## 更多信息,欢迎访问:
---
[micro:bit知识库地址](https://www.elecfreaks.com/learn-cn/)

micro:bit官方推荐供应商:[恩孚科技淘宝店](https://shop69086944.taobao.com/?spm=a230r.7195193.1997079397.2.RSthR0)
QQ技术交流群:570756726
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,6 @@

## 更多信息,欢迎访问:
---
[micro:bit知识库地址](https://www.elecfreaks.com/learn-cn/)

micro:bit官方推荐供应商:[恩孚科技淘宝店](https://shop69086944.taobao.com/?spm=a230r.7195193.1997079397.2.RSthR0)
QQ技术交流群:570756726
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,6 @@

## 更多信息,欢迎访问:
---
[micro:bit知识库地址](https://www.elecfreaks.com/learn-cn/)

micro:bit官方推荐供应商:[恩孚科技淘宝店](https://shop69086944.taobao.com/?spm=a230r.7195193.1997079397.2.RSthR0)
QQ技术交流群:570756726
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,6 @@ micro:bit的IO口的驱动电流非常微弱的,不足以直接驱动电机。

## 更多信息,欢迎访问:
---
[micro:bit知识库地址](https://www.elecfreaks.com/learn-cn/)

micro:bit官方推荐供应商:[恩孚科技淘宝店](https://shop69086944.taobao.com/?spm=a230r.7195193.1997079397.2.RSthR0)
QQ技术交流群:570756726
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,6 @@ LED具有低电压驱动,环保节能,亮度高,散射角度大,一致

## 更多信息,欢迎访问:
---
[micro:bit知识库地址](https://www.elecfreaks.com/learn-cn/)

micro:bit官方推荐供应商:[恩孚科技淘宝店](https://shop69086944.taobao.com/?spm=a230r.7195193.1997079397.2.RSthR0)
QQ技术交流群:570756726
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,6 @@ micro:bit上集成了丰富的传感器,其中就包含了加速度计。在

## 更多信息,欢迎访问:
---
[micro:bit知识库地址](https://www.elecfreaks.com/learn-cn/)

micro:bit官方推荐供应商:[恩孚科技淘宝店](https://shop69086944.taobao.com/?spm=a230r.7195193.1997079397.2.RSthR0)
QQ技术交流群:570756726
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,6 @@

## 更多信息,欢迎访问:
---
[micro:bit知识库地址](https://www.elecfreaks.com/learn-cn/)

micro:bit官方推荐供应商:[恩孚科技淘宝店](https://shop69086944.taobao.com/?spm=a230r.7195193.1997079397.2.RSthR0)
QQ技术交流群:570756726
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,6 @@ micro:bit屏幕是由一个5x5的LED点阵构成。它作为一个3x9的矩阵

## 更多信息,欢迎访问:
---
[micro:bit知识库地址](https://www.elecfreaks.com/learn-cn/)

micro:bit官方推荐供应商:[恩孚科技淘宝店](https://shop69086944.taobao.com/?spm=a230r.7195193.1997079397.2.RSthR0)
QQ技术交流群:570756726
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ sidebar_label: 规格参数

### XGO-Rider 机身参数

| 产品名称 | XGO-Rider |
| :------: | :--------------------------------------------------: |
| 整机尺寸 | 长 135mm 宽 118 mm 高 116-158mm |
| 整机重量 | 600g |
| 结构件 | 1mm铝合金,PC,碳纤维 |
| 关节舵机 | 6V 4.5KG.CM 金属壳钢齿 360 度磁编码双轴 TTL 串口舵机 |
| 轮毂电机 | 8.4V 磁编码外转子无刷电机,额定扭矩 0.1N.m |
| 下位机 | ESP32 主控,Type-C 充电口,拨码开关等 |
| 电池 | 18500 2S 1400 毫安 |
| 扬声器 | 8 欧 3W 腔体扬声器 |
| 续航时间 | 综合工况 2 小时 |
| 产品名称 | XGO-Rider |
| :------: | :----------------------------------------------------------: |
| 整机尺寸 | 长 135mm 宽 118 mm 高 116-158mm |
| 整机重量 | 600g |
| 结构件 | 1mm铝合金,PC,碳纤维 |
| 关节舵机 | 6V 4.5KG.CM 金属壳钢齿 360 度磁编码双轴 TTL 串口舵机 |
| 轮毂电机 | 8.4V 磁编码外转子无刷电机,额定扭矩 0.1N.m |
| 下位机 | ESP32-WROVER-B 模组,具有WiFi和蓝牙功能,Type-C 充电口,拨动开关等 |
| 电池 | 18500 2S 1400 毫安 |
| 扬声器 | 8 欧 3W 腔体扬声器 |
| 续航时间 | 综合工况 2 小时 |
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ sidebar_label: Specifications

| Product Name | XGO-Rider |
| :--------------: | :----------------------------------------------------------: |
| Machine size | 135mm* 118mm* 116-158mm (L* W* H) |
| Machine size | 135mm* 118mm* 116-158mm (L* W* H) |
| Machine weight | 600g |
| Structural parts | 1mm aluminum alloy, PC, carbon fiber |
| Joint servo | 6V 4.5KG.CM Metal Shell Steel Gear 360 Degree Magnetic Encoding Dual Axis TTL Serial Port Servo |
| Wheel hub motor | 8.4V magnetically encoded outer rotor brushless motor, rated torque 0.1N.m |
| Lower computer | ESP32 main control, Type-C charging port, dip switch, etc. |
| Slave Device | The ESP32-WROVER-B module, featuring both WiFi and Bluetooth capabilities, Type-C charging port, dip switch, etc. |
| Battery | 18500 2S 1400 mAh |
| Speaker | 8 ohm 3W cavity speaker |
| Battery life | Comprehensive working conditions 2 hours |

0 comments on commit 0804c9e

Please sign in to comment.