<?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=%E8%B7%B7%E8%B7%B7%E6%9D%BF</id>
		<title>跷跷板 - 版本历史</title>
		<link rel="self" type="application/atom+xml" href="http:///https//wiki.microduino.cn/index.php?action=history&amp;feed=atom&amp;title=%E8%B7%B7%E8%B7%B7%E6%9D%BF"/>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=%E8%B7%B7%E8%B7%B7%E6%9D%BF&amp;action=history"/>
		<updated>2026-06-05T05:21:28Z</updated>
		<subtitle>本wiki的该页面的版本历史</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=%E8%B7%B7%E8%B7%B7%E6%9D%BF&amp;diff=20827&amp;oldid=prev</id>
		<title>Zhangfengfeng：/* 模块 */</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=%E8%B7%B7%E8%B7%B7%E6%9D%BF&amp;diff=20827&amp;oldid=prev"/>
				<updated>2017-06-13T03:49:36Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;模块&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;zh-CN&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;2017年6月13日 (二) 03:49的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l27&quot; &gt;第27行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第27行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|[[Sensor-Servo Connector/zh|舵机转接板]]||1||舵机转接板&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|[[Sensor-Servo Connector/zh|舵机转接板]]||1||舵机转接板&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|[[Sensor-Line Finder/zh|&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;红外反射传感器&lt;/del&gt;]]||2||检测物体&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|[[Sensor-Line Finder/zh|&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;灰度传感器&lt;/ins&gt;]]||2||检测物体&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Zhangfengfeng</name></author>	</entry>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=%E8%B7%B7%E8%B7%B7%E6%9D%BF&amp;diff=19352&amp;oldid=prev</id>
		<title>Zhangfengfeng：/* 其他设备 */</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=%E8%B7%B7%E8%B7%B7%E6%9D%BF&amp;diff=19352&amp;oldid=prev"/>
				<updated>2017-04-05T05:47:20Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;其他设备&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;zh-CN&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;2017年4月5日 (三) 05:47的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l34&quot; &gt;第34行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第34行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*传感器连接线*3&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*传感器连接线*3&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*传感器外壳&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*传感器外壳&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;乐高或其它固定结构&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;积木或其它固定结构&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[File:anywhere_don't touch me－module.jpg|600px|center]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[File:anywhere_don't touch me－module.jpg|600px|center]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Zhangfengfeng</name></author>	</entry>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=%E8%B7%B7%E8%B7%B7%E6%9D%BF&amp;diff=18249&amp;oldid=prev</id>
		<title>Yanglibin@microduino.cc：创建页面，内容为“{| style=&quot;width: 1000px;&quot; |- |  ==概述== center  做一个自动感应门，用两个红外反射传感器检测有人靠...”</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=%E8%B7%B7%E8%B7%B7%E6%9D%BF&amp;diff=18249&amp;oldid=prev"/>
				<updated>2016-10-18T04:13:54Z</updated>
		
		<summary type="html">&lt;p&gt;创建页面，内容为“{| style=&amp;quot;width: 1000px;&amp;quot; |- |  ==概述== &lt;a href=&quot;/index.php/%E6%96%87%E4%BB%B6:Anywhere_line_seesaw.jpg&quot; title=&quot;文件:Anywhere line seesaw.jpg&quot;&gt;600px|center&lt;/a&gt;  做一个自动感应门，用两个红外反射传感器检测有人靠...”&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{| style=&amp;quot;width: 1000px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
==概述==&lt;br /&gt;
[[File:anywhere_line_seesaw.jpg|600px|center]]&lt;br /&gt;
&lt;br /&gt;
做一个自动感应门，用两个红外反射传感器检测有人靠近，舵机控制开门。&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
适合套件：mCookie302&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==模块清单==&lt;br /&gt;
===模块===&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|模块||数量||功能&lt;br /&gt;
|-&lt;br /&gt;
|[[mCookie-Core/zh|mCookie-Core]]||1||核心板&lt;br /&gt;
|-&lt;br /&gt;
|[[mCookie-Battery|电池盒]]||1||程序下载和供电模块&lt;br /&gt;
|-&lt;br /&gt;
|[[mCookie-Hub/zh|mCookie-Hub]]||1||传感器转接板&lt;br /&gt;
|-&lt;br /&gt;
|[[舵机]]||1||舵机&lt;br /&gt;
|-&lt;br /&gt;
|[[Sensor-Servo Connector/zh|舵机转接板]]||1||舵机转接板&lt;br /&gt;
|-&lt;br /&gt;
|[[Sensor-Line Finder/zh|红外反射传感器]]||2||检测物体&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===其他设备===&lt;br /&gt;
*USB数据线*1&lt;br /&gt;
*传感器连接线*3&lt;br /&gt;
*传感器外壳&lt;br /&gt;
*乐高或其它固定结构&lt;br /&gt;
[[File:anywhere_don't touch me－module.jpg|600px|center]]&lt;br /&gt;
&lt;br /&gt;
==模块搭建==&lt;br /&gt;
===搭建===&lt;br /&gt;
[[File:anywhere_don't touch me－step.jpg|600px|center]]&lt;br /&gt;
*将模块和传感器组装起来：&lt;br /&gt;
**将红色的核心模块，电池底座与绿色的扩展模块吸在一起；&lt;br /&gt;
**将舵机转接板连接在Hub的6/7管脚；&lt;br /&gt;
**将舵机连接在舵机转接板的1管脚（下面三个插针）；&lt;br /&gt;
**将红外反射传感器连接在Hub的A0/A1、A2/A3管脚。&lt;br /&gt;
**将USB连接线一端插入电池底座，另一端连接电脑；&lt;br /&gt;
==编程==&lt;br /&gt;
===使用的程序块===&lt;br /&gt;
*[[“重复执行”程序块]]&lt;br /&gt;
*[[“变量声明”、“变量赋值”程序块]]&lt;br /&gt;
*[[“红外反射传感器”程序块]]&lt;br /&gt;
*[[“计算”程序块]]&lt;br /&gt;
*[[“比较”程序块]]&lt;br /&gt;
*[[“舵机”程序块]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===编程思路===&lt;br /&gt;
如果跷跷板左侧距离地面不够近，则跷跷板一直向左转动，直到左侧到底后，如果跷跷板右侧距离地面不够近，则跷跷板一直向右转动，直到右侧到底。&lt;br /&gt;
[[File:mixly-ctrl-line_seesaw.jpg|600px|center]]&lt;br /&gt;
&lt;br /&gt;
===开始编程===&lt;br /&gt;
'''1、跷跷板左摇'''&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
变量servo用来存储舵机的角度的值。&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
如果A0管脚红外反射传感器的值大于100（跷跷板左端离地不够近）则重复执行。servo变量加1。舵机旋转到servo角度（跷跷板左端降低）。&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:mixly-ctrl-line_seesaw－code.jpg|600px|center]]&lt;br /&gt;
'''2、跷跷板右摇'''&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
如果A2管脚红外反射传感器的值大于100（跷跷板右端离地不够近）则重复执行。&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
servo变量减1。舵机旋转到servo角度（跷跷板右端降低）。&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:mixly-ctrl-line_seesaw－code1.jpg|600px|center]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''测试结果'''&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
可以看到翘翘板左右自动翘。&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:anywhere_line_seesaw.jpg|600px|center]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Q:启动以后就不能停了，能不能让跷跷板运行5次后停3秒再次运行。'''&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''A:运行5次，用“按次执行”程序块执行5次，然后加个3秒延时就行了。'''&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
将内部程序（跷跷板动作）重复执行5次。内部程序为：跷跷板动作。&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
延时3秒（跷跷板动5次之后停3秒换人）。&lt;br /&gt;
[[File:mixly-ctrl-line_seesaw－code2.jpg|600px|center]]&lt;br /&gt;
==技术规范==&lt;br /&gt;
*红外反射详细参考[[Sensor-Line Finder/zh]]&lt;br /&gt;
*舵机详细参考[[舵机]]&lt;br /&gt;
&lt;br /&gt;
==相关案例==&lt;br /&gt;
*'''[[能量护盾]]'''&lt;br /&gt;
*'''[[自动分拣机]]'''&lt;br /&gt;
*'''[[自动感应门1]]'''&lt;br /&gt;
*'''[[招财猫]]'''&lt;br /&gt;
*'''[[点球大战]]'''&lt;br /&gt;
*'''[[别摸我！摇摆机器人]]'''&lt;br /&gt;
==Q&amp;amp;A==&lt;br /&gt;
&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Yanglibin@microduino.cc</name></author>	</entry>

	</feed>