<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-CN">
		<id>http:///https//wiki.microduino.cn/index.php?action=history&amp;feed=atom&amp;title=LED%E7%81%AF%E9%97%AA%E7%83%81%E5%AE%9E%E9%AA%8C</id>
		<title>LED灯闪烁实验 - 版本历史</title>
		<link rel="self" type="application/atom+xml" href="http:///https//wiki.microduino.cn/index.php?action=history&amp;feed=atom&amp;title=LED%E7%81%AF%E9%97%AA%E7%83%81%E5%AE%9E%E9%AA%8C"/>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=LED%E7%81%AF%E9%97%AA%E7%83%81%E5%AE%9E%E9%AA%8C&amp;action=history"/>
		<updated>2026-04-21T14:20:33Z</updated>
		<subtitle>本wiki的该页面的版本历史</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=LED%E7%81%AF%E9%97%AA%E7%83%81%E5%AE%9E%E9%AA%8C&amp;diff=7981&amp;oldid=prev</id>
		<title>853387039@qq.com：Created page with &quot;{| style=&quot;width: 800px;&quot; |- | ==目的== 通过Scratch结合Microduino来控制一个LED灯的亮灭。 ==原理== 图形化编程原理简单，在某个时间段内打开LED...&quot;</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=LED%E7%81%AF%E9%97%AA%E7%83%81%E5%AE%9E%E9%AA%8C&amp;diff=7981&amp;oldid=prev"/>
				<updated>2015-03-12T07:53:13Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{| style=&amp;quot;width: 800px;&amp;quot; |- | ==目的== 通过Scratch结合Microduino来控制一个LED灯的亮灭。 ==原理== 图形化编程原理简单，在某个时间段内打开LED...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{| style=&amp;quot;width: 800px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
==目的==&lt;br /&gt;
通过Scratch结合Microduino来控制一个LED灯的亮灭。&lt;br /&gt;
==原理==&lt;br /&gt;
图形化编程原理简单，在某个时间段内打开LED灯，在另一个时间段关闭LED灯就可以达到亮灭的效果。&lt;br /&gt;
硬件结合软件，将LED灯接到程序指定的引脚上，当程序运行到打开LED时，Microduino板子输出高电平可以点亮LED灯，当关闭LED时，输出低电平可以熄灭LED灯。这样就能控制LED的亮灭。&lt;br /&gt;
[[File:Scratch_ LED_sch.jpg|600px|center|thumb]] &lt;br /&gt;
&lt;br /&gt;
==硬件搭建==&lt;br /&gt;
*Microduino设备&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|模块||数量||功能&lt;br /&gt;
|-&lt;br /&gt;
|[[Microduino-Core/zh]]||1||核心板&lt;br /&gt;
|-&lt;br /&gt;
|[[Microduino-USBTTL/zh]] ||1||下载程序&lt;br /&gt;
|-&lt;br /&gt;
|[[Microduino-Sensorhub/zh]] ||1||传感器转接板&lt;br /&gt;
|-&lt;br /&gt;
|[[Microduino-Bright LED/zh]] ||1||单色LED灯&lt;br /&gt;
|}&lt;br /&gt;
[[File:Scratch_ Bright _led.jpg|600px|center|thumb]] &lt;br /&gt;
*其他设备&lt;br /&gt;
**USB数据线&lt;br /&gt;
*Core、USBTTL、Sensorhub三者叠加，再将Bright LED灯接到D10、D11、D12、D13任意一个引脚，例如接到D10。&lt;br /&gt;
[[File:Scratch_ Bright _led_D10.jpg|600px|center|thumb]]&lt;br /&gt;
==图形化编程==&lt;br /&gt;
*将固件下载到Microduino核心版，下载固件前不先打开S4A软件，否则S4A自动连接到Microduino板子，Arduino IDE就是别不出串口照成无法下载。&lt;br /&gt;
&lt;br /&gt;
*打开S4A，开始搜索板子进行自动连接，连接成功将显示COM端口。&lt;br /&gt;
{| style=&amp;quot;width: 800px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
[[File:Scratch_ Bright _led_Seartch.jpg|600px|center|thumb]]&lt;br /&gt;
[[File:Scratch—microduino—ok.jpg|600px|center|thumb]]&lt;br /&gt;
|}&lt;br /&gt;
*你可以在编辑框里选择造型，导入工程项目图片，并重新命名。&lt;br /&gt;
&lt;br /&gt;
[[File:Scratch_ import_name.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*切换到脚本进行编程。左上角是控件的分类，左边则是详细的控件。&lt;br /&gt;
**步骤一：选择控制控件里的两个控件：1.当红旗被点击。2.重复执行。将两个控件连接起来。意思是当红旗被点击时需要重复执行什么命令。&lt;br /&gt;
&lt;br /&gt;
[[File:Scratch_ sch_ led_1.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
**步骤二：需要重复的动作是：在某个时间段内打开LED灯，在另一个时间段关闭LED。因此在动作控件里选择digital on控件放到重复执行内，表示打开LED，并且控制引脚要与硬件连接的一致。然后在控制里面选择等待1s，时间用户可自行更改。再添加digital off控件，等待1s。&lt;br /&gt;
&lt;br /&gt;
[[File:Scratch_ sch_ led_2.jpg|600px|center|thumb]]&lt;br /&gt;
[[File:Scratch_ sch_ led_3.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
编写完成后就可以点击右上角的红旗或点击整个程序框图就可以起动，看看效果。&lt;br /&gt;
&lt;br /&gt;
==结果==&lt;br /&gt;
通过Scratch结合Microduino可以很简单的控制一个LED灯的亮灭，不需要编写语言，图形化操作简单易懂易操作。&lt;br /&gt;
&lt;br /&gt;
==视频==&lt;br /&gt;
&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>853387039@qq.com</name></author>	</entry>

	</feed>