<?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=%E9%80%97%E4%BD%A0%E6%8B%9B%E8%B4%A2%E7%8C%AB</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=%E9%80%97%E4%BD%A0%E6%8B%9B%E8%B4%A2%E7%8C%AB"/>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=%E9%80%97%E4%BD%A0%E6%8B%9B%E8%B4%A2%E7%8C%AB&amp;action=history"/>
		<updated>2026-04-20T23:56:09Z</updated>
		<subtitle>本wiki的该页面的版本历史</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=%E9%80%97%E4%BD%A0%E6%8B%9B%E8%B4%A2%E7%8C%AB&amp;diff=20828&amp;oldid=prev</id>
		<title>Zhangfengfeng：/* 模块 */</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=%E9%80%97%E4%BD%A0%E6%8B%9B%E8%B4%A2%E7%8C%AB&amp;diff=20828&amp;oldid=prev"/>
				<updated>2017-06-13T03:50: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年6月13日 (二) 03:50的版本&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;]]||1||检测物体&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;]]||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;&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-Color LED/zh|ColorLED]]||2||彩色灯&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-Color LED/zh|ColorLED]]||2||彩色灯&lt;/div&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=%E9%80%97%E4%BD%A0%E6%8B%9B%E8%B4%A2%E7%8C%AB&amp;diff=18255&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=%E9%80%97%E4%BD%A0%E6%8B%9B%E8%B4%A2%E7%8C%AB&amp;diff=18255&amp;oldid=prev"/>
				<updated>2016-10-18T09:45:14Z</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_money%EF%BC%8Dcat.jpg&quot; title=&quot;文件:Anywhere money－cat.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_money－cat.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|红外反射传感器]]||1||检测物体&lt;br /&gt;
|-&lt;br /&gt;
|[[Sensor-Color LED/zh|ColorLED]]||2||彩色灯&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===其他设备===&lt;br /&gt;
*USB数据线*1&lt;br /&gt;
*传感器连接线*4&lt;br /&gt;
*传感器外壳&lt;br /&gt;
*乐高或其它固定结构&lt;br /&gt;
[[File:anywhere_money－cat－module.jpg|600px|center]]&lt;br /&gt;
&lt;br /&gt;
==模块搭建==&lt;br /&gt;
===搭建===&lt;br /&gt;
[[File:anywhere_money－cat－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管脚；&lt;br /&gt;
**将2盏全彩LED灯连接在Hub的8/9管脚。&lt;br /&gt;
**将USB连接线一端插入电池底座，另一端连接电脑；&lt;br /&gt;
==编程==&lt;br /&gt;
===使用的程序块===&lt;br /&gt;
*[[“等待”程序块]]&lt;br /&gt;
*[[“彩灯准备”程序块]]&lt;br /&gt;
*[[“彩灯控制调RGB”程序块]]&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;
检测A0红外反射传感器距离，如果A0管脚红外反射传感器的值小于800（人体接近），使用按次执行程序改变灯的亮度和舵机角度，实现了招手眨眼睛动作。&lt;br /&gt;
[[File:mixly-ctrl-money－cat.jpg|600px|center]]&lt;br /&gt;
&lt;br /&gt;
===开始编程===&lt;br /&gt;
'''1、检测A0红外反射传感器距离'''&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
彩灯准备：8管脚2个彩灯。&lt;br /&gt;
将A0管脚红外反射传感器的值发送到串口监视器。&lt;br /&gt;
等待A0管脚红外反射传感器的值小于800（人体接近）。&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:mixly-ctrl-money－cat－code.jpg|600px|center]]&lt;br /&gt;
'''2、招手眨眼动作'''&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
将内部程序重复执行30次（计数起点60终点90）。&lt;br /&gt;
&amp;lt;br&amp;gt;。&lt;br /&gt;
两个彩灯蓝光亮度设为（i-60）×4（蓝光亮度为0-120）。&lt;br /&gt;
&amp;lt;br&amp;gt;。&lt;br /&gt;
舵机角度设为重复次数i（60-90度）。&lt;br /&gt;
&amp;lt;br&amp;gt;。&lt;br /&gt;
将内部程序重复执行30次（计数起点90终点60）。&lt;br /&gt;
&amp;lt;br&amp;gt;。&lt;br /&gt;
两个彩灯蓝光亮度设为（i-60）×4（蓝光亮度为120-0）。&lt;br /&gt;
&amp;lt;br&amp;gt;。&lt;br /&gt;
舵机角度设为重复次数i（90-60度）。。&lt;br /&gt;
&amp;lt;br&amp;gt;。&lt;br /&gt;
[[File:mixly-ctrl-money－cat－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;
上传成功后，靠近A0接口的红外反射传感器，灯闪一次，舵机摆动一下。&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:anywhere_money－cat.jpg|600px|center]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Q:触摸招财猫的鼻子时，它只能挥手一次，要如何该懂程序，使招财猫可以多次招手呢？'''&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''A:可以使用“按次执行”程序块，你有思路了吗？'''&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
将“招手”、“眨眼”动作程序重复执行两次。&lt;br /&gt;
[[File:mixly-ctrl-money－cat－code2.jpg|600px|center]]&lt;br /&gt;
&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;
*'''[[跷跷板]]'''&lt;br /&gt;
*'''[[招财猫]]'''&lt;br /&gt;
*'''[[点球大战]]'''&lt;br /&gt;
*'''[[自动感应门1]]'''&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>