<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-CN">
		<id>http:///https//wiki.microduino.cn/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Pkj</id>
		<title>Microduino Wikipedia - 用户贡献 [zh-cn]</title>
		<link rel="self" type="application/atom+xml" href="http:///https//wiki.microduino.cn/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Pkj"/>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php/%E7%89%B9%E6%AE%8A:%E7%94%A8%E6%88%B7%E8%B4%A1%E7%8C%AE/Pkj"/>
		<updated>2026-04-21T01:49:21Z</updated>
		<subtitle>用户贡献</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=Lesson_31--Microduino_%26_Buck_Circuit&amp;diff=4142</id>
		<title>Lesson 31--Microduino &amp; Buck Circuit</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=Lesson_31--Microduino_%26_Buck_Circuit&amp;diff=4142"/>
				<updated>2014-09-19T03:47:25Z</updated>
		
		<summary type="html">&lt;p&gt;Pkj：Created page with &amp;quot;Microduino &amp;amp; Buck Circuit  {| style=&amp;quot;width: 800px;&amp;quot; |- | ==Purpose== The tutorial talks about how Microduino D10 pin outputs PWM waveform and drive P-channel field-effect tran...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Microduino &amp;amp; Buck Circuit &lt;br /&gt;
{| style=&amp;quot;width: 800px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
==Purpose==&lt;br /&gt;
The tutorial talks about how Microduino D10 pin outputs PWM waveform and drive P-channel field-effect transistor, showing us the basic principle of Buck circuit. &lt;br /&gt;
==Equipment==&lt;br /&gt;
*'''[[Microduino-Core]]'''&lt;br /&gt;
Microduino-Core is the 8-bit single-chip development core board with Atmel ATmega328P as the core, which is an open and Arduino Uno compatible controller. &lt;br /&gt;
&lt;br /&gt;
*'''[[Microduino-USBTTL]]'''&lt;br /&gt;
Microduino-USBTTL is the program download module, capable of connecting with Microduino-Core or Microduino-Core+ and making the modules communicate with the computer. It uses MicUSB as the download interface, which is also the smallest part of Microduino.  Microduino is just as small as a quarter. Besides, the downlaod cable is just like the USB cable of most smart phones, easy to use. &lt;br /&gt;
&lt;br /&gt;
*Other hardware equipment   &lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|Related hardware||Number||Function&lt;br /&gt;
|-&lt;br /&gt;
|Inductor 56uH  1A ||One||Energy storage device in Buck circuit.   &lt;br /&gt;
|-&lt;br /&gt;
|Diode 1N5819||One||For subsequent flow. (with higher work frequency than Diode 1N4007.)  &lt;br /&gt;
|-&lt;br /&gt;
|Capacitor 10uF 16V||One||Filter to output terminal. &lt;br /&gt;
|-&lt;br /&gt;
|100 Ω resistor||Several||Field-effect thyristor gate drive resistor as well as LED current limiting resistance.  &lt;br /&gt;
|-&lt;br /&gt;
|Field-effect transistor AO3401 ||One||P-channel field-effect transistor.  &lt;br /&gt;
|-&lt;br /&gt;
|USB cable ||One||For connecting Microduino modules and PC.  &lt;br /&gt;
|-&lt;br /&gt;
|Breadboard ||One ||For circuit buildup. &lt;br /&gt;
|-&lt;br /&gt;
|Jumper ||One box||Served as the connector. &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Filed-effect Transistor===&lt;br /&gt;
*Brief Introduction&lt;br /&gt;
**Filed-effect transistor(FET) can be divided into two types-- N-channel and P-channel. The FET’s three terminals are Source(S), Drain(D) and Gate(G). Here in this example, AO3401 belongs to P-channel field-effect transistor.  &lt;br /&gt;
*Measurement  &lt;br /&gt;
**When measuring the FET with a digital multimeter, you can tell the three terminals through the diode below. For P-channel EFT, when the reading of the multimeter is over 400 or 500, the black test pen connects to the terminal of S and the red pen to D. The pin without connecting to a test pen is G. For N-channel FET, however, the red pen connects to S and the black pen to D. If the reading is irregular, you can short the three pins and then measure so as to release storing charges of the Gate terminal.  The most common FET damage is puncture shot when three pins seemingly get connected together, which is easy for the multimeter to measure.  &lt;br /&gt;
[[File: A03401.jpg|600px|center|thumb]]&lt;br /&gt;
You can check N-channel FET(AO3400) and P-channel(AO3401)’s PDF files below : &lt;br /&gt;
&lt;br /&gt;
N-channel FET(AO3400) file download：'''[[File:AO3400.pdf]]'''&lt;br /&gt;
&lt;br /&gt;
P-channel(AO3401) file download：'''[[File:AO3401.pdf]]'''&lt;br /&gt;
&lt;br /&gt;
===Buck Circuit===&lt;br /&gt;
[[File: buckSch.jpg|600px|center|thumb]]&lt;br /&gt;
*Press the key(when the switch tube is unblocked), Vin inputs energy into inductance via the switch and meantime, part of the energy gets to the output end(load end).&lt;br /&gt;
*Disconnect the key(when the switch tube is blocked), the stored energy in inductance can be transmitted to the output end via the diode. At the this time, Vin doesn’t supply energy to the load.  &lt;br /&gt;
*With the capacitor, the output end can acquire direct current.   &lt;br /&gt;
*Without considering the pressure drop of the diode, Vout=Vin*D(D stands for duty ratio). Eg. D =0.2 and Vin=12V, then the output voltage Vout=2.4V.  &lt;br /&gt;
*Buck circuit belongs to switching power supply circiut and the switch tube works under nonlinear adjustment tube state, so it is more efficient than the linear adjustment power supply. In actual application, When the voltage of the PCB power supply is 24V or 12V, adopting Buck circuit is a good choice if you want to acquire 5V or 3.3V to supply MCU.   &lt;br /&gt;
&lt;br /&gt;
*Note: In this example, when D10 outputs high electrical level, the switch tube is under closing state. (Theoretical output voltage:Vout=Vin*(1-D).  D=OCR1B/OCR1A. )&lt;br /&gt;
&lt;br /&gt;
==Schematic==&lt;br /&gt;
[[File: buckProtelSch.jpg|600px|center|thumb]]&lt;br /&gt;
==Program==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
void setup()&lt;br /&gt;
{&lt;br /&gt;
  Serial.begin(9600);&lt;br /&gt;
  pinMode(10, OUTPUT);   &lt;br /&gt;
  TCCR1A =_BV(COM1A0) | _BV(COM1B1) | _BV(WGM11) | _BV(WGM10);   &lt;br /&gt;
  TCCR1B =_BV(WGM12) |_BV(WGM13) | _BV(CS10);   &lt;br /&gt;
  OCR1A=400;//change this value to get diff period   OCR1A=400  F=40K&lt;br /&gt;
  OCR1B=300;//this value  need  modify to get diff duty cycle&lt;br /&gt;
}&lt;br /&gt;
void loop()&lt;br /&gt;
{&lt;br /&gt;
  int myAnaValue=analogRead(A0);&lt;br /&gt;
  float myAnaVol=myAnaValue/1023.0*5;&lt;br /&gt;
  Serial.println(myAnaVol);&lt;br /&gt;
  delay(1000);	&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Debugging==&lt;br /&gt;
[[File: buck realConnect.jpg|600px|center|thumb]]&lt;br /&gt;
*Make sure the connection is all right. 参考上图用导线连接完毕并确认无误。&lt;br /&gt;
*Copy the program to Arduino IDE. 把程序复制到Arduino IDE中。&lt;br /&gt;
*Compile the program and choose the right board as well as the related serial port.  编译程序，选择正确的板卡与相应串口。&lt;br /&gt;
*Click Upload and open the serial monitor of Arduino IDE after the upload and watch the data.  点击Upload，下载完毕后打开Arduino IDE自带的串口监视器，观察数据。&lt;br /&gt;
*Change the value of OCR1B, reprogram and then open the serial monitor and watch the data.    更改OCR1B的数值，重新烧写程序，再打开Arduino IDE自带的串口监视器，观察数据。&lt;br /&gt;
*Below is the data measured in real time, just for reference. (The value of OCR1A is 400.) Deviation between the actual output voltage and the theoretical value is a lot, because freewheeling diode exists pressure drop and the inductance and the load are inappropriate. When the duty ratio of Microduino’s D10 pin changes, the change trend of the output voltage is reasonable.    下图为笔者实测数据（OCR1A均为400），供参考。实际输出电压与理论公式对比偏差很大，原因在于续流二极管存在压降，电感以及负载等参数不是很合理，电路搭建是依据笔者手头现有元器件而成。Microduino的D10脚占空比改变时，输出电压的变化趋势符合常理。&lt;br /&gt;
[[File: buck   comOutput.jpg|600px|center|thumb]]Duty ratio&lt;br /&gt;
*Oscilloscope waveform measurement for reference.  再贴下示波器测量波形图，供参考。&lt;br /&gt;
D10 waveform  OCR1B=300   OCR1A=400   10uS/div   2V/div   &lt;br /&gt;
[[File: Modify OCR1B=300  10uS  2V  D10 Output.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Remove the capacitor of the output terminal  Waveform  OCR1B=300   OCR1A=400   10uS/div   2V/div  &lt;br /&gt;
[[File: OCR1B=300   10uS  2V  OUT  CapaLess.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
==Result==&lt;br /&gt;
The Buck circuit an change output voltage value when changing duty ratio. The example is only suitable when Microduino’s D10 pin outputs PWM rectangular wave, representing Buck circuit. In the actual application, you need to choose the right component parameters according to different load voltage and current as well as input voltage.  &lt;br /&gt;
&lt;br /&gt;
==Video==&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Pkj</name></author>	</entry>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=%E7%AC%AC%E4%B8%89%E5%8D%81%E4%B8%80%E8%AF%BE--Microduino%E4%B8%8EBuck%E7%94%B5%E8%B7%AF/zh&amp;diff=4141</id>
		<title>第三十一课--Microduino与Buck电路/zh</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=%E7%AC%AC%E4%B8%89%E5%8D%81%E4%B8%80%E8%AF%BE--Microduino%E4%B8%8EBuck%E7%94%B5%E8%B7%AF/zh&amp;diff=4141"/>
				<updated>2014-09-19T03:46:56Z</updated>
		
		<summary type="html">&lt;p&gt;Pkj：&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Language|Lesson_31--Microduino &amp;amp; Buck Circuit}}&lt;br /&gt;
Microduino与Buck电路&lt;br /&gt;
{| style=&amp;quot;width: 800px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
==目的==&lt;br /&gt;
本教程通过Microduino的D10脚输出PWM波形，进而驱动P沟道场效应管，使读者了解buck电路的实现原理，掌握Microduino输出PWM波形的实现方法。&lt;br /&gt;
==设备==&lt;br /&gt;
*'''[[Microduino-Core]]'''&lt;br /&gt;
Microduino-Core 是以 Atmel ATmega328P为核心的8位单片机开发核心板，是一个开源的、与 Arduino UNO 兼容的控制器模块。&lt;br /&gt;
&lt;br /&gt;
*'''[[Microduino-USBTTL]]'''&lt;br /&gt;
下载程序模块，可直接与 Microduino-Core 或者Microduino-Core+ 相连，让他们与计算机通讯。它的下载接口用的是MicUSB，这也是Microduino小巧的一部分。Microduino大小与一枚一元硬币差不多大。下载线与绝大多数智能手机usb数据线是一样的，方便实用。&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;
|电感56uH  1A ||1个||buck电路储能器件。&lt;br /&gt;
|-&lt;br /&gt;
|二极管1N5819||1个||续流作用。工作频率比1N4007等普通整流管高。&lt;br /&gt;
|-&lt;br /&gt;
|电容10uF 16V||1个||输出端滤波。&lt;br /&gt;
|-&lt;br /&gt;
|电阻100欧姆||若干||场效应管门极驱动电阻，LED限流电阻。&lt;br /&gt;
|-&lt;br /&gt;
|场效应管AO3401 ||1个||P沟道场效应管，此示例工作于开关工作状态。&lt;br /&gt;
|-&lt;br /&gt;
|USB数据连接线 ||1条||连通Microduino模块与计算机。&lt;br /&gt;
|-&lt;br /&gt;
|面包板 ||1块 ||用于搭建电路。&lt;br /&gt;
|-&lt;br /&gt;
|面包板跳线 ||1盒||电气连接线。&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===场效应管===&lt;br /&gt;
*简介&lt;br /&gt;
**场效应管分为N沟道与P沟道两种类型，类比于三极管的NPN与PNP两种类型。三个极分别是G(门极)，D(漏极)，S(源极)，类比于三极管的B，C，E。 场效应管属于电压控制型器件，开关频率可以做的比三极管高，用于高频开关电路时开关损耗小。该示例应用的AO3401属于P沟道小功率场效应管。&lt;br /&gt;
*测量&lt;br /&gt;
**用数字万用表测量场效应管时，可依据下图图中的二极管来判断场效应管的三个极，万用表打到二极管档（有蜂鸣器的那个档位）。对于P沟道场效应管来说，当万用表中的示数为4百多或5百多时，黑表笔接的是S(源极)，红表笔接的是D(漏极)，未接表笔的那个引脚是G(门极)。如果所测为N沟道场效应管，那么红表笔所接为源极，黑表笔所接为漏极。如果测量时万用表中显示示数不规律（测量6次，表中不止一次有示数），可先短接一下三个引脚再测量，目的是释放掉门极存储的电荷。场效应管损坏时最多的情况是击穿短路，三个引脚内部好像用导线连接在一起，万用表非常容易测得。&lt;br /&gt;
[[File: A03401.jpg|600px|center|thumb]]&lt;br /&gt;
N沟道场效应管(AO3400)与P沟道场效应管(AO3401)的PDF资料见下面链接，读者可对比分析。&lt;br /&gt;
&lt;br /&gt;
N沟道场效应管AO3400文档下载：'''[[File:AO3400.pdf]]'''&lt;br /&gt;
&lt;br /&gt;
P沟道场效应管AO3401文档下载：'''[[File:AO3401.pdf]]'''&lt;br /&gt;
&lt;br /&gt;
===buck电路===&lt;br /&gt;
[[File: buckSch.jpg|600px|center|thumb]]&lt;br /&gt;
*按键按下，即开关管导通时，Vin经开关把能量输入电感，同时也有一部分能量到了输出端（负载端）。&lt;br /&gt;
*按键断开，即开关管断开时，电感中存储的能量通过二极管（这也解释了为啥叫续流二极管）传递给输出端。此时Vin不给负载提供能量。&lt;br /&gt;
*有了电容的存在，输出端可以获得直流电。&lt;br /&gt;
*不考虑二极管的压降，Vout=Vin*D （D代表占空比）。例如，占空比为0.2，输入Vin=12V，则输出电压为Vout=2.4V，即buck降压电路。调节占空比，可得到所需Vout。&lt;br /&gt;
*buck电路属于开关电源电路，开关管工作于开关状态（非线性调整管状态），所以效率比线性调整式电源高。打个比方：如果输入是12V电压，需要输出5V，负载电流为0.1A。如果用7805（线性三端稳压器）来实现，那么电源消耗的功率约为1.2W，如果用buck电路来实现，那么电源消耗的功率约为0.5W。在实际工程应用中，如果PCB板供电是24V或是12V，要取得5V电压或是3.3V给MCU供电，采用buck电路是一种很好的选择。&lt;br /&gt;
*注意：本示例中，D10脚输出高电平时，开关管处于截止状态。理论输出电压值Vout=Vin*（1-D）。D=OCR1B/OCR1A。&lt;br /&gt;
&lt;br /&gt;
==实验原理图==&lt;br /&gt;
[[File: buckProtelSch.jpg|600px|center|thumb]]&lt;br /&gt;
==程序==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
void setup()&lt;br /&gt;
{&lt;br /&gt;
  Serial.begin(9600);&lt;br /&gt;
  pinMode(10, OUTPUT);   &lt;br /&gt;
  TCCR1A =_BV(COM1A0) | _BV(COM1B1) | _BV(WGM11) | _BV(WGM10);   &lt;br /&gt;
  TCCR1B =_BV(WGM12) |_BV(WGM13) | _BV(CS10);   &lt;br /&gt;
  OCR1A=400;//change this value to get diff period   OCR1A=400  F=40K&lt;br /&gt;
  OCR1B=300;//this value  need  modify to get diff duty cycle&lt;br /&gt;
}&lt;br /&gt;
void loop()&lt;br /&gt;
{&lt;br /&gt;
  int myAnaValue=analogRead(A0);&lt;br /&gt;
  float myAnaVol=myAnaValue/1023.0*5;&lt;br /&gt;
  Serial.println(myAnaVol);&lt;br /&gt;
  delay(1000);	&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==调试==&lt;br /&gt;
[[File: buck realConnect.jpg|600px|center|thumb]]&lt;br /&gt;
*参考上图用导线连接完毕并确认无误。&lt;br /&gt;
*把程序复制到Arduino IDE中。&lt;br /&gt;
*编译程序，选择正确的板卡与相应串口。&lt;br /&gt;
*点击Upload，下载完毕后打开Arduino IDE自带的串口监视器，观察数据。&lt;br /&gt;
*更改OCR1B的数值，重新烧写程序，再打开Arduino IDE自带的串口监视器，观察数据。&lt;br /&gt;
*下图为笔者实测数据（OCR1A均为400），供参考。实际输出电压与理论公式对比偏差很大，原因在于续流二极管存在压降，电感以及负载等参数不是很合理，电路搭建是依据笔者手头现有元器件而成。Microduino的D10脚占空比改变时，输出电压的变化趋势符合常理。&lt;br /&gt;
[[File: buck   comOutput.jpg|600px|center|thumb]]&lt;br /&gt;
*再贴下示波器测量波形图，供参考。&lt;br /&gt;
D10脚波形  OCR1B=300   OCR1A=400   10uS/div   2V/div   &lt;br /&gt;
[[File: Modify OCR1B=300  10uS  2V  D10 Output.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
去掉输出端电容 波形图  OCR1B=300   OCR1A=400   10uS/div   2V/div  &lt;br /&gt;
[[File: OCR1B=300   10uS  2V  OUT  CapaLess.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
==结果==&lt;br /&gt;
该buck电路可在占空比改变时改变输出电压值。该示例仅用于Microduino的D10脚输出PWM矩形波来实现buck电路的演示，实际应用时需根据负载电压电流，输入电压等选择合适的元器件参数。对于开关管的驱动电路，实际应用时也会比该示例复杂，该文算是抛砖引玉，希望读者指正。&lt;br /&gt;
&lt;br /&gt;
==视频==&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Pkj</name></author>	</entry>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=Lesson_30--Microduino-made_DC_V-A_Meter&amp;diff=4140</id>
		<title>Lesson 30--Microduino-made DC V-A Meter</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=Lesson_30--Microduino-made_DC_V-A_Meter&amp;diff=4140"/>
				<updated>2014-09-17T09:50:42Z</updated>
		
		<summary type="html">&lt;p&gt;Pkj：Created page with &amp;quot;Using Microduino to Make a DC V-A Meter--C# PC Display   {| style=&amp;quot;width: 800px;&amp;quot; |- | ==Purpose== The tutorial uses Microduino to make a DC V-A meter. The PC-side upper compu...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Using Microduino to Make a DC V-A Meter--C# PC Display  &lt;br /&gt;
{| style=&amp;quot;width: 800px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
==Purpose==&lt;br /&gt;
The tutorial uses Microduino to make a DC V-A meter. The PC-side upper computer Winform can display the voltage and current values being measured. From the tutorial, you can have a further understanding of operational amplifier as well C# program example, and also get prepare for flexible application of Microduino and the real circuit buildup.    &lt;br /&gt;
==Equipment==&lt;br /&gt;
*'''[[Microduino-Core]]'''&lt;br /&gt;
Microduino-Core is the 8-bit single-chip development core board with Atmel ATmega328P as the core, which is an open and Arduino Uno compatible controller. &lt;br /&gt;
&lt;br /&gt;
*'''[[Microduino-USBTTL]]'''&lt;br /&gt;
Microduino-USBTTL is the program download module, capable of connecting with Microduino-Core or Microduino-Core+ and making the modules communicate with the computer. It uses MicUSB as the download interface, which is also the smallest part of Microduino.  Microduino is just as small as a quarter. Besides, the downlaod cable is just like the USB cable of most smart phones, easy to use.  &lt;br /&gt;
  &lt;br /&gt;
*Other Hardware Equipment&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|Related hardware||Number||Function &lt;br /&gt;
|-&lt;br /&gt;
|LM358||One||A common dual operational amplifier, it is convenient for you to achieve mathematical operation circuit.  &lt;br /&gt;
|-&lt;br /&gt;
|ICL7660||One||Negative pressure-generated chip, used for operational amplifier power supply.  &lt;br /&gt;
|-&lt;br /&gt;
|AD620||One||Instrument amplifier, used for current detection.  &lt;br /&gt;
|-&lt;br /&gt;
|1/4W Ω resistor||Several||Check the schematic.  &lt;br /&gt;
|-             &lt;br /&gt;
|0.01 Ω resistor(5W) ||One||Cascaded in the circuit being measured.   &lt;br /&gt;
|-  &lt;br /&gt;
|1 Ω resistor(10W)||One||Cascaded with 0.01 Ω resistor and then connected to dry battery for testing current.  &lt;br /&gt;
|-    &lt;br /&gt;
|10uF 16V aluminum electrolytic capacitor||Three||For negative pressure generation circuit.   &lt;br /&gt;
|-  &lt;br /&gt;
|Dry battery ||Several||For testing.  &lt;br /&gt;
&lt;br /&gt;
|USB cable ||One||For connecting Microduino modules and PC.  &lt;br /&gt;
|-&lt;br /&gt;
|Breadboard ||One ||All components gather here.  &lt;br /&gt;
|-&lt;br /&gt;
|Jumper ||One box ||Served as the connector.    &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
===AD620 Instrument Amplifier===&lt;br /&gt;
AD620 instrument amplifier is the product of AD company in America. Users can set the gain of any request from 1 to 1,000 with only an external resistor. Here we adopt a 2K Ω external resistor, meaning the gain G=1+（49.4/2）=25.7. &lt;br /&gt;
The core of AD620 instrument amplifier is the three-stage operational amplifier circuit, which has higher CMRR(Common Mode Rejection Ratio) and a good temperature stability as well as small noise factor and high accuracy.   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Schematic==&lt;br /&gt;
[[File: IV_Control_protelSch.jpg|600px|center|thumb]]&lt;br /&gt;
The circuit can test the current within 19.45A and the voltage within 50V theoretically.   &lt;br /&gt;
*Computing method of current: 25.7(Gain)*0.01(Resistance)*I(Current)&amp;lt;5V and here we get ”I&amp;lt;19.45A”. (Note: The cross-sectional area of the current connector should be no less than 2.5 mm².)&lt;br /&gt;
*Computing method of voltage: The output voltage of LM358 cannot be higher than 5V(Power supply). Since the input voltage is reduced to 0.1 time of the original voltage, the theoretical test voltage is 50V.  &lt;br /&gt;
&lt;br /&gt;
==Program==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
int myValueA0_V=0;//for  measure  voltage&lt;br /&gt;
int myValueA5_I=0;//for  measure  current&lt;br /&gt;
void setup()&lt;br /&gt;
{&lt;br /&gt;
  Serial.begin(9600);&lt;br /&gt;
}&lt;br /&gt;
void loop()&lt;br /&gt;
{&lt;br /&gt;
  myValueA0_V=analogRead(A0);&lt;br /&gt;
  delay(10);&lt;br /&gt;
  Serial.print(myValueA0_V*5.0/1023,3);&lt;br /&gt;
  Serial.print('\n');//C#  program need this charactor to split &lt;br /&gt;
  myValueA5_I=analogRead(A5);&lt;br /&gt;
  delay(10);&lt;br /&gt;
  Serial.print(myValueA5_I*5.0/1023,3);&lt;br /&gt;
  delay(300);//send data delay     fit for  c# program time_tick&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Debugging==&lt;br /&gt;
*Make sure the connection is all right. &lt;br /&gt;
*Copy the program to Arduino IDE.  &lt;br /&gt;
*Compile the program and choose the right board and the related serial port. &lt;br /&gt;
*Click Upload. &lt;br /&gt;
*Open the file IV_control\bin\Debug under the folder of IV_control.exe after uploading Arduino program, you can see the form interface. (The C# program is supported by“.NET framework 4.0” . ) &lt;br /&gt;
*Let’s begin testing. Just watch the value change of the current and voltage in the form interface.  &lt;br /&gt;
&lt;br /&gt;
[[File:IV_Control_comOutput.jpg|600px|center|thumb]]&lt;br /&gt;
*Images of C# source program, Microduino and the protel schematic is available for download.    &lt;br /&gt;
Csharp program and picture：'''[[File:Csharp program and pictures.rar]]'''&lt;br /&gt;
&lt;br /&gt;
==Result==&lt;br /&gt;
Watch current and voltage values and compare them with the theoretical value. &lt;br /&gt;
==Video==&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Pkj</name></author>	</entry>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=%E7%AC%AC%E4%B8%89%E5%8D%81%E8%AF%BE--Microduino%E5%88%B6%E4%BD%9C%E7%9A%84%E7%9B%B4%E6%B5%81%E7%94%B5%E5%8E%8B%E7%94%B5%E6%B5%81%E8%A1%A8--C&amp;diff=4139</id>
		<title>第三十课--Microduino制作的直流电压电流表--C</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=%E7%AC%AC%E4%B8%89%E5%8D%81%E8%AF%BE--Microduino%E5%88%B6%E4%BD%9C%E7%9A%84%E7%9B%B4%E6%B5%81%E7%94%B5%E5%8E%8B%E7%94%B5%E6%B5%81%E8%A1%A8--C&amp;diff=4139"/>
				<updated>2014-09-17T09:49:30Z</updated>
		
		<summary type="html">&lt;p&gt;Pkj：&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Language|Lesson_30--Microduino-made DC V-A Meter}}&lt;br /&gt;
用Microduino制作的直流电压电流表--C#上位机显示&lt;br /&gt;
{| style=&amp;quot;width: 800px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
==目的==&lt;br /&gt;
本教程用Microduino制作了直流电压电流表，PC端的C#窗体程序可以显示被测电压电流值。通过本教程可以让读者加深对运放的理解，还可以学习C#的编程实例，为灵活运用Microduino搭建实际电路作准备。&lt;br /&gt;
==设备==&lt;br /&gt;
*'''[[Microduino-Core]]'''&lt;br /&gt;
Microduino-Core 是以 Atmel ATmega328P为核心的8位单片机开发核心板，是一个开源的、与 Arduino UNO 兼容的控制器模块。&lt;br /&gt;
&lt;br /&gt;
*'''[[Microduino-USBTTL]]'''&lt;br /&gt;
下载程序模块，可直接与 Microduino-Core 或者Microduino-Core+ 相连，让他们与计算机通讯。它的下载接口用的是MicUSB，这也是Microduino小巧的一部分。Microduino大小与一枚一元硬币差不多大。下载线与绝大多数智能手机usb数据线是一样的，方便实用。&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;
|LM358||1个||常用双路运算放大器，可方便实现数学运算电路。&lt;br /&gt;
|-&lt;br /&gt;
|ICL7660||1个||负压产生芯片，用于运放负压供电。&lt;br /&gt;
|-&lt;br /&gt;
|AD620||1个||仪用放大器，该示例用于电流检测。&lt;br /&gt;
|-&lt;br /&gt;
|1/4W电阻||若干||见原理图。&lt;br /&gt;
|-             &lt;br /&gt;
|0.01欧姆电阻(5W) ||1个||串联于被测电路。&lt;br /&gt;
|-  &lt;br /&gt;
|1欧姆电阻(10W)||1个||与0.01欧电阻串联，然后接到干电池上获取测试电流。&lt;br /&gt;
|-    &lt;br /&gt;
|10uF 16V铝电解电容||3个||用于负压产生电路。&lt;br /&gt;
|-  &lt;br /&gt;
|干电池 ||若干||测试用。&lt;br /&gt;
|-&lt;br /&gt;
|USB数据连接线 ||1条||连通Microduino模块与计算机。&lt;br /&gt;
|-&lt;br /&gt;
|面包板 ||1块 ||各个元器件汇聚于此。&lt;br /&gt;
|-&lt;br /&gt;
|面包板跳线 ||1盒||电气连接线。&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
===AD620仪用放大器===&lt;br /&gt;
AD620仪用放大器是美国AD公司的产品, 用户只需使用一只外部电阻器便可以设置从1到1,000任何要求的增益，本示例电阻采用外接电阻是2K，也就是说增益G=1+（49.4/2）=25.7。仪用放大器&lt;br /&gt;
AD620的核心是三级运放电路,有较高的共模抑制比,温度稳定性好,放大频带宽,噪声系数小，精确度高。20元一个（笔者本地零售价格）的AD620与普通1元一个的LM358有什么区别？价格。&lt;br /&gt;
除去价格，也不去关注datasheet中的性能参数，就本实例而言，0.01欧姆电阻流过50mA电流时，该差分信号（0.01欧姆电阻两端）经AD620放大后可以正确显示该电流值，依笔者实测，LM358不能正确显示所测电流值。&lt;br /&gt;
&lt;br /&gt;
==实验原理图==&lt;br /&gt;
[[File: IV_Control_protelSch.jpg|600px|center|thumb]]&lt;br /&gt;
该电路可以测试的量程电流为19.45A（理论值），电压为50V（理论值），如果实际应用应留出余量。&lt;br /&gt;
*电流计算方法为：25.7(增益G)*0.01(电阻)*I(电流)&amp;lt;5V ，得出I&amp;lt;19.45A。10毫欧电阻功率为5W，也就是说电流最大不能超过根号下500，等于22.36A。综合来看，理论电流值应小于19.45A，需注意测试大电流时电流连接线(电阻两头)应不小于2.5方铜线(2.5平方毫米截面积)。&lt;br /&gt;
*电压计算方法为：358输出电压不可能高于电源电压5V，又因为该差分比例运算电路把输入电压缩小到原来电压的0.1倍，所以理论测试电压为50V。&lt;br /&gt;
&lt;br /&gt;
==程序==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
int myValueA0_V=0;//for  measure  voltage&lt;br /&gt;
int myValueA5_I=0;//for  measure  current&lt;br /&gt;
void setup()&lt;br /&gt;
{&lt;br /&gt;
  Serial.begin(9600);&lt;br /&gt;
}&lt;br /&gt;
void loop()&lt;br /&gt;
{&lt;br /&gt;
  myValueA0_V=analogRead(A0);&lt;br /&gt;
  delay(10);&lt;br /&gt;
  Serial.print(myValueA0_V*5.0/1023,3);&lt;br /&gt;
  Serial.print('\n');//C#  program need this charactor to split &lt;br /&gt;
  myValueA5_I=analogRead(A5);&lt;br /&gt;
  delay(10);&lt;br /&gt;
  Serial.print(myValueA5_I*5.0/1023,3);&lt;br /&gt;
  delay(300);//send data delay     fit for  c# program time_tick&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==调试==&lt;br /&gt;
*参考原理图连接完毕并确认无误。&lt;br /&gt;
*把程序复制到Arduino IDE中。&lt;br /&gt;
*编译程序，选择正确的板卡与相应串口。&lt;br /&gt;
*点击Upload，下载程序。&lt;br /&gt;
*下载完Arduino程序后，打开IV_control\bin\Debug文件夹下的IV_control.exe可执行文件，可出现窗体界面。(该C#程序需要.NET framework 4.0支持，win7已自带，xp系统如果打不开，可搜索下载，大把的资源)。&lt;br /&gt;
*开始测试，观察窗体界面中电压电流值变化。下图为笔者测试两节南孚电池的电压，以及一节万用表淘汰下来的9V电池接了3欧姆（1欧姆电阻串联3个，每个10W）电阻的电流。电流值偏差很大，是因为电池带重载后内阻增大。笔者曾用该电路测试过1KW风力发电机给24V蓄电池充电，电流显示准确。&lt;br /&gt;
[[File:IV_Control_comOutput.jpg|600px|center|thumb]]&lt;br /&gt;
*C#源程序，Microduino的实拍图以及相对清晰的protel原理图可点击下载。C#程序中有相关注释，版本为VS2010。&lt;br /&gt;
Csharp program and picture：'''[[File:Csharp program and pictures.rar]]'''&lt;br /&gt;
&lt;br /&gt;
==结果==&lt;br /&gt;
观察电压电流值，与理论计算值对比分析。&lt;br /&gt;
==视频==&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Pkj</name></author>	</entry>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=Microduino_%E9%A3%8E%E9%80%9F%E4%BC%A0%E6%84%9F%E5%99%A8%E2%80%94%E9%A3%8E%E9%80%9F%E5%80%BC%E4%B8%8A%E4%BC%A0%E5%88%B0yeelink/zh&amp;diff=4138</id>
		<title>Microduino 风速传感器—风速值上传到yeelink/zh</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=Microduino_%E9%A3%8E%E9%80%9F%E4%BC%A0%E6%84%9F%E5%99%A8%E2%80%94%E9%A3%8E%E9%80%9F%E5%80%BC%E4%B8%8A%E4%BC%A0%E5%88%B0yeelink/zh&amp;diff=4138"/>
				<updated>2014-09-15T15:06:45Z</updated>
		
		<summary type="html">&lt;p&gt;Pkj：/* 调试 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Microduino与风速传感器—风速值上传到yeelink&lt;br /&gt;
{| style=&amp;quot;width: 800px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
==目的==&lt;br /&gt;
本教程通过Microduino读取风速传感器的信息，使读者了解风速传感器，掌握Microduino使用模拟输入口的编程方法。&lt;br /&gt;
==设备==&lt;br /&gt;
*'''[[Microduino-Core]]'''&lt;br /&gt;
*'''[[Microduino-USBTTL]]'''&lt;br /&gt;
*'''[[Microduino-RJ45]]'''&lt;br /&gt;
*'''[[Microduino-ENC28J60]]'''&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;
|风速传感器 ||1个 ||用于监测风速，输出信号为0-5V。&lt;br /&gt;
|-&lt;br /&gt;
|24V 1A开关电源||1个 ||风速传感器供电用，本示例采用明纬牌开关电源。&lt;br /&gt;
|-&lt;br /&gt;
|USB数据连接线 ||1条||连通Microduino模块与计算机。&lt;br /&gt;
|-&lt;br /&gt;
|面包板 ||1块 ||各个元器件汇聚于此。&lt;br /&gt;
|-&lt;br /&gt;
|面包板跳线 ||1盒||电气连接线。&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==实验原理图==&lt;br /&gt;
&lt;br /&gt;
==程序==&lt;br /&gt;
&lt;br /&gt;
https://github.com/Microduino/Microduino_Tutorials/tree/master/Microduino_Advanced/Microduino_wind_yeelink&lt;br /&gt;
&lt;br /&gt;
==调试==&lt;br /&gt;
*把风速仪的模拟量输出端与Microduino的A0连接在一起，地连接在一起。&lt;br /&gt;
*把程序刷写到Microduino-core中。&lt;br /&gt;
*把Microduino-RJ45通过网线接入路由器LAN口。&lt;br /&gt;
*登录yeelink网站，进入首页（见下图），首页会有yeelink公司出品的灯光产品(yeelight)资讯，自然而然，yeelight的灯光产品是可以通过yeelink远程控制的(笔者测试过zigbee控制的yeelight)。   http://www.yeelink.net/&lt;br /&gt;
[[File:firstPage.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*在yeelink首页单击登录，输入已注册的用户名与密码，（没注册的朋友需要先注册下，注册后需邮箱激活，很简单的）。登录界面见下图。&lt;br /&gt;
[[File: login pic.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*登录后点击用户中心，可进入自己账户的管理首页。API Key文本框中数据是我们注册用户时yeelink服务器分配给用户的ID，也是在Microduino程序中需要用到的。由下图可以看到，笔者已添加一个名为windSpeed的设备，设备ID号为13892（该数值也是microduino程序中需要用到滴）。还可以点击添加新设备继续添加设备。由此可以看出，一个API Key也就是对应一个账户，一个账户下面可以有N多个设备，区别是哪一个设备需要根据设备号（Device ID）。&lt;br /&gt;
[[File: userCenter.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*点击已添加的设备名字，可进入设备管理页面。见下图。点击编辑可对该设备名字以及描述等信息进行编辑。&lt;br /&gt;
[[File: device manage.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*点击添加传感器，可在该DeviceID下面添加传感器。见下图。笔者添加了一个名为windSensor，类型为数值型的传感器。&lt;br /&gt;
[[File: add sensor.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*保存后获得的传感器号（SensorID）为23058（该数值也是Microduino程序中需要用到滴）。&lt;br /&gt;
[[File: add sensor finish.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*如果这时点击我的设备。会发现传感器状态：的后面多出了一个小方块，每个小方块都代表了该设备下面的一个传感器。也就是说一个设备下面可以有N多个传感器，区别是哪一个传感器需要根据传感器号（Sensor ID）。&lt;br /&gt;
[[File: find sensor.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*在已添加好的传感器页面下，可观察风速传感器传过来的风速值。点击打开图表可观察由时间（横轴）与数值（纵轴）绘制而成的折线图。见下图。（图表中三个台阶分别是对应3.3V，单节干电池，GND 接入A0，用于模拟风速传感器，实测风速传感器输出电压（在ArduinoIDE 串口监视器中的显示值）可参考[http://www.microduino.cc/wiki/index.php?title=%E7%AC%AC%E4%B8%89%E5%8D%81%E4%BA%8C%E8%AF%BE--Microduino%E4%B8%8E%E9%A3%8E%E9%80%9F%E4%BC%A0%E6%84%9F%E5%99%A8/zh  基础教程 Microduino与风速传感器 ]&lt;br /&gt;
[[File: windFinish.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2014.09.15重新上传实测风速仪在yeelink上的折线图。&lt;br /&gt;
[[File: windSpeedYeelink.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*在yeelink网站首页可下载安卓与苹果的客户端程序，手机客户端程序也可非常方便的获取数据，手机只需输入一次用户名密码，以后再登录时直接点击我的Yeelink便可方便的进入了。试试吧……&lt;br /&gt;
&lt;br /&gt;
==结果==&lt;br /&gt;
Yeelink中的数据与相关图表有变化，说明上传成功。反向控制程序读者可参考[https://github.com/Microduino/Microduino_Tutorials/blob/master/Microduino_Sensor/yeelink_TSL2561/yeelink_TSL2561.ino  cb_debug函数]仿写。该文档笔者写作时间为2014年9月3日，yeelink的界面对比以前版本来说更加美观，数据图表显示也更加实用。&lt;br /&gt;
&lt;br /&gt;
==视频==&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Pkj</name></author>	</entry>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=%E6%96%87%E4%BB%B6:WindSpeedYeelink.jpg&amp;diff=4137</id>
		<title>文件:WindSpeedYeelink.jpg</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=%E6%96%87%E4%BB%B6:WindSpeedYeelink.jpg&amp;diff=4137"/>
				<updated>2014-09-15T15:05:12Z</updated>
		
		<summary type="html">&lt;p&gt;Pkj：&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Pkj</name></author>	</entry>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=Microduino_%E9%A3%8E%E9%80%9F%E4%BC%A0%E6%84%9F%E5%99%A8%E2%80%94%E9%A3%8E%E9%80%9F%E5%80%BC%E4%B8%8A%E4%BC%A0%E5%88%B0yeelink/zh&amp;diff=4136</id>
		<title>Microduino 风速传感器—风速值上传到yeelink/zh</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=Microduino_%E9%A3%8E%E9%80%9F%E4%BC%A0%E6%84%9F%E5%99%A8%E2%80%94%E9%A3%8E%E9%80%9F%E5%80%BC%E4%B8%8A%E4%BC%A0%E5%88%B0yeelink/zh&amp;diff=4136"/>
				<updated>2014-09-15T15:04:21Z</updated>
		
		<summary type="html">&lt;p&gt;Pkj：/* 调试 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Microduino与风速传感器—风速值上传到yeelink&lt;br /&gt;
{| style=&amp;quot;width: 800px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
==目的==&lt;br /&gt;
本教程通过Microduino读取风速传感器的信息，使读者了解风速传感器，掌握Microduino使用模拟输入口的编程方法。&lt;br /&gt;
==设备==&lt;br /&gt;
*'''[[Microduino-Core]]'''&lt;br /&gt;
*'''[[Microduino-USBTTL]]'''&lt;br /&gt;
*'''[[Microduino-RJ45]]'''&lt;br /&gt;
*'''[[Microduino-ENC28J60]]'''&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;
|风速传感器 ||1个 ||用于监测风速，输出信号为0-5V。&lt;br /&gt;
|-&lt;br /&gt;
|24V 1A开关电源||1个 ||风速传感器供电用，本示例采用明纬牌开关电源。&lt;br /&gt;
|-&lt;br /&gt;
|USB数据连接线 ||1条||连通Microduino模块与计算机。&lt;br /&gt;
|-&lt;br /&gt;
|面包板 ||1块 ||各个元器件汇聚于此。&lt;br /&gt;
|-&lt;br /&gt;
|面包板跳线 ||1盒||电气连接线。&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==实验原理图==&lt;br /&gt;
&lt;br /&gt;
==程序==&lt;br /&gt;
&lt;br /&gt;
https://github.com/Microduino/Microduino_Tutorials/tree/master/Microduino_Advanced/Microduino_wind_yeelink&lt;br /&gt;
&lt;br /&gt;
==调试==&lt;br /&gt;
*把风速仪的模拟量输出端与Microduino的A0连接在一起，地连接在一起。&lt;br /&gt;
*把程序刷写到Microduino-core中。&lt;br /&gt;
*把Microduino-RJ45通过网线接入路由器LAN口。&lt;br /&gt;
*登录yeelink网站，进入首页（见下图），首页会有yeelink公司出品的灯光产品(yeelight)资讯，自然而然，yeelight的灯光产品是可以通过yeelink远程控制的(笔者测试过zigbee控制的yeelight)。   http://www.yeelink.net/&lt;br /&gt;
[[File:firstPage.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*在yeelink首页单击登录，输入已注册的用户名与密码，（没注册的朋友需要先注册下，注册后需邮箱激活，很简单的）。登录界面见下图。&lt;br /&gt;
[[File: login pic.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*登录后点击用户中心，可进入自己账户的管理首页。API Key文本框中数据是我们注册用户时yeelink服务器分配给用户的ID，也是在Microduino程序中需要用到的。由下图可以看到，笔者已添加一个名为windSpeed的设备，设备ID号为13892（该数值也是microduino程序中需要用到滴）。还可以点击添加新设备继续添加设备。由此可以看出，一个API Key也就是对应一个账户，一个账户下面可以有N多个设备，区别是哪一个设备需要根据设备号（Device ID）。&lt;br /&gt;
[[File: userCenter.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*点击已添加的设备名字，可进入设备管理页面。见下图。点击编辑可对该设备名字以及描述等信息进行编辑。&lt;br /&gt;
[[File: device manage.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*点击添加传感器，可在该DeviceID下面添加传感器。见下图。笔者添加了一个名为windSensor，类型为数值型的传感器。&lt;br /&gt;
[[File: add sensor.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*保存后获得的传感器号（SensorID）为23058（该数值也是Microduino程序中需要用到滴）。&lt;br /&gt;
[[File: add sensor finish.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*如果这时点击我的设备。会发现传感器状态：的后面多出了一个小方块，每个小方块都代表了该设备下面的一个传感器。也就是说一个设备下面可以有N多个传感器，区别是哪一个传感器需要根据传感器号（Sensor ID）。&lt;br /&gt;
[[File: find sensor.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*在已添加好的传感器页面下，可观察风速传感器传过来的风速值。点击打开图表可观察由时间（横轴）与数值（纵轴）绘制而成的折线图。见下图。（图表中三个台阶分别是对应3.3V，单节干电池，GND 接入A0，用于模拟风速传感器，实测风速传感器输出电压（在ArduinoIDE 串口监视器中的显示值）可参考[http://www.microduino.cc/wiki/index.php?title=%E7%AC%AC%E4%B8%89%E5%8D%81%E4%BA%8C%E8%AF%BE--Microduino%E4%B8%8E%E9%A3%8E%E9%80%9F%E4%BC%A0%E6%84%9F%E5%99%A8/zh  基础教程 Microduino与风速传感器 ]&lt;br /&gt;
[[File: windFinish.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2014.09.15重新上传实测风速仪在yeelink上的折线图。&lt;br /&gt;
[[File: windSpeedYeelink.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*在yeelink网站首页可下载安卓与苹果的客户端程序，手机客户端程序也可非常方便的获取数据，手机只需输入一次用户名密码，以后再登录时直接点击我的Yeelink便可方便的进入了。试试吧……&lt;br /&gt;
&lt;br /&gt;
==结果==&lt;br /&gt;
Yeelink中的数据与相关图表有变化，说明上传成功。反向控制程序读者可参考[https://github.com/Microduino/Microduino_Tutorials/blob/master/Microduino_Sensor/yeelink_TSL2561/yeelink_TSL2561.ino  cb_debug函数]仿写。该文档笔者写作时间为2014年9月3日，yeelink的界面对比以前版本来说更加美观，数据图表显示也更加实用。&lt;br /&gt;
&lt;br /&gt;
==视频==&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Pkj</name></author>	</entry>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=Microduino_%E9%A3%8E%E9%80%9F%E4%BC%A0%E6%84%9F%E5%99%A8%E2%80%94%E9%A3%8E%E9%80%9F%E5%80%BC%E4%B8%8A%E4%BC%A0%E5%88%B0yeelink/zh&amp;diff=4135</id>
		<title>Microduino 风速传感器—风速值上传到yeelink/zh</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=Microduino_%E9%A3%8E%E9%80%9F%E4%BC%A0%E6%84%9F%E5%99%A8%E2%80%94%E9%A3%8E%E9%80%9F%E5%80%BC%E4%B8%8A%E4%BC%A0%E5%88%B0yeelink/zh&amp;diff=4135"/>
				<updated>2014-09-15T15:03:28Z</updated>
		
		<summary type="html">&lt;p&gt;Pkj：/* 调试 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Microduino与风速传感器—风速值上传到yeelink&lt;br /&gt;
{| style=&amp;quot;width: 800px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
==目的==&lt;br /&gt;
本教程通过Microduino读取风速传感器的信息，使读者了解风速传感器，掌握Microduino使用模拟输入口的编程方法。&lt;br /&gt;
==设备==&lt;br /&gt;
*'''[[Microduino-Core]]'''&lt;br /&gt;
*'''[[Microduino-USBTTL]]'''&lt;br /&gt;
*'''[[Microduino-RJ45]]'''&lt;br /&gt;
*'''[[Microduino-ENC28J60]]'''&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;
|风速传感器 ||1个 ||用于监测风速，输出信号为0-5V。&lt;br /&gt;
|-&lt;br /&gt;
|24V 1A开关电源||1个 ||风速传感器供电用，本示例采用明纬牌开关电源。&lt;br /&gt;
|-&lt;br /&gt;
|USB数据连接线 ||1条||连通Microduino模块与计算机。&lt;br /&gt;
|-&lt;br /&gt;
|面包板 ||1块 ||各个元器件汇聚于此。&lt;br /&gt;
|-&lt;br /&gt;
|面包板跳线 ||1盒||电气连接线。&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==实验原理图==&lt;br /&gt;
&lt;br /&gt;
==程序==&lt;br /&gt;
&lt;br /&gt;
https://github.com/Microduino/Microduino_Tutorials/tree/master/Microduino_Advanced/Microduino_wind_yeelink&lt;br /&gt;
&lt;br /&gt;
==调试==&lt;br /&gt;
*把风速仪的模拟量输出端与Microduino的A0连接在一起，地连接在一起。&lt;br /&gt;
*把程序刷写到Microduino-core中。&lt;br /&gt;
*把Microduino-RJ45通过网线接入路由器LAN口。&lt;br /&gt;
*登录yeelink网站，进入首页（见下图），首页会有yeelink公司出品的灯光产品(yeelight)资讯，自然而然，yeelight的灯光产品是可以通过yeelink远程控制的(笔者测试过zigbee控制的yeelight)。   http://www.yeelink.net/&lt;br /&gt;
[[File:firstPage.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*在yeelink首页单击登录，输入已注册的用户名与密码，（没注册的朋友需要先注册下，注册后需邮箱激活，很简单的）。登录界面见下图。&lt;br /&gt;
[[File: login pic.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*登录后点击用户中心，可进入自己账户的管理首页。API Key文本框中数据是我们注册用户时yeelink服务器分配给用户的ID，也是在Microduino程序中需要用到的。由下图可以看到，笔者已添加一个名为windSpeed的设备，设备ID号为13892（该数值也是microduino程序中需要用到滴）。还可以点击添加新设备继续添加设备。由此可以看出，一个API Key也就是对应一个账户，一个账户下面可以有N多个设备，区别是哪一个设备需要根据设备号（Device ID）。&lt;br /&gt;
[[File: userCenter.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*点击已添加的设备名字，可进入设备管理页面。见下图。点击编辑可对该设备名字以及描述等信息进行编辑。&lt;br /&gt;
[[File: device manage.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*点击添加传感器，可在该DeviceID下面添加传感器。见下图。笔者添加了一个名为windSensor，类型为数值型的传感器。&lt;br /&gt;
[[File: add sensor.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*保存后获得的传感器号（SensorID）为23058（该数值也是Microduino程序中需要用到滴）。&lt;br /&gt;
[[File: add sensor finish.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*如果这时点击我的设备。会发现传感器状态：的后面多出了一个小方块，每个小方块都代表了该设备下面的一个传感器。也就是说一个设备下面可以有N多个传感器，区别是哪一个传感器需要根据传感器号（Sensor ID）。&lt;br /&gt;
[[File: find sensor.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*在已添加好的传感器页面下，可观察风速传感器传过来的风速值。点击打开图表可观察由时间（横轴）与数值（纵轴）绘制而成的折线图。见下图。（图表中三个台阶分别是对应3.3V，单节干电池，GND 接入A0，用于模拟风速传感器，实测风速传感器输出电压（在ArduinoIDE 串口监视器中的显示值）可参考[http://www.microduino.cc/wiki/index.php?title=%E7%AC%AC%E4%B8%89%E5%8D%81%E4%BA%8C%E8%AF%BE--Microduino%E4%B8%8E%E9%A3%8E%E9%80%9F%E4%BC%A0%E6%84%9F%E5%99%A8/zh  基础教程 Microduino与风速传感器 ]&lt;br /&gt;
[[File: windFinish.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
2014.09.15重新上传实测风速仪在yeelink上的折线图。&lt;br /&gt;
[[File: windSpeedYeelink.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*在yeelink网站首页可下载安卓与苹果的客户端程序，手机客户端程序也可非常方便的获取数据，手机只需输入一次用户名密码，以后再登录时直接点击我的Yeelink便可方便的进入了。试试吧……&lt;br /&gt;
&lt;br /&gt;
==结果==&lt;br /&gt;
Yeelink中的数据与相关图表有变化，说明上传成功。反向控制程序读者可参考[https://github.com/Microduino/Microduino_Tutorials/blob/master/Microduino_Sensor/yeelink_TSL2561/yeelink_TSL2561.ino  cb_debug函数]仿写。该文档笔者写作时间为2014年9月3日，yeelink的界面对比以前版本来说更加美观，数据图表显示也更加实用。&lt;br /&gt;
&lt;br /&gt;
==视频==&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Pkj</name></author>	</entry>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=Lesson_29--Two_Generative_Styles_of_Microduino_PWM_%26_Waveform_Measurement&amp;diff=4134</id>
		<title>Lesson 29--Two Generative Styles of Microduino PWM &amp; Waveform Measurement</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=Lesson_29--Two_Generative_Styles_of_Microduino_PWM_%26_Waveform_Measurement&amp;diff=4134"/>
				<updated>2014-09-15T06:59:12Z</updated>
		
		<summary type="html">&lt;p&gt;Pkj：Created page with &amp;quot;Two Generative Styles of Microduino PWM &amp;amp; Waveform Measurement   {| style=&amp;quot;width: 800px;&amp;quot; |- | ==Purpose== By this course, we can measure the waveform of Microduino PWM output...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Two Generative Styles of Microduino PWM &amp;amp; Waveform Measurement  &lt;br /&gt;
{| style=&amp;quot;width: 800px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
==Purpose==&lt;br /&gt;
By this course, we can measure the waveform of Microduino PWM output port. By contrast of PWM output by analogWrite() and the PWM output waveform operated by the register, you’ll be able to have an overall understanding of how Microduino outputs PWM. &lt;br /&gt;
==Equipment==&lt;br /&gt;
*'''[[Microduino-Core]]'''&lt;br /&gt;
Microduino-Core is the 8-bit single-chip development core board with Atmel ATmega328P as the core, which is an open and Arduino Uno compatible controller. &lt;br /&gt;
&lt;br /&gt;
*'''[[Microduino-USBTTL]]'''&lt;br /&gt;
Microduino-USBTTL is the program download module, capable of connecting with Microduino-Core or Microduino-Core+ and making the modules communicate with the computer. It uses MicUSB as the download interface, which is also the smallest part of Microduino.  Microduino is just as small as a quarter. Besides, the downlaod cable is just like the USB cable of most smart phones, easy to use.  &lt;br /&gt;
&lt;br /&gt;
*Other Equipment&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|Related hardware||Number||Function &lt;br /&gt;
|-&lt;br /&gt;
|20M oscillograph||One||For measuring Microduino PWM output waveform.   &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
===Oscillograph===&lt;br /&gt;
Oscillograph is a widely used electronic measurement device. It can turn the invisible electrical signal to visible image, easy for people to study various electrical phenomenon change. The X-axis of oscillograph represents time and the Y-axis stands for amplitude. The oscillograph image display in this example adopts CRT, which is old-fashioned. The new oscillograph adopts LCD as the display, which is much smaller than CRT in size and much more powerful in function.  &lt;br /&gt;
 [[File: OSC ORG.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
==Schematic==&lt;br /&gt;
[[File: osc real conn.jpg|600px|center|thumb]]&lt;br /&gt;
'''Principle Introduction'''：Microduino-Core adopts Arduino UNO compatible Atmega328p chip, which has much more improvement than MCS-51. Besides, the timer(atmega328p) is more flexible than that with MCS-51 chip, which has prescaler, high-output register added as well as the the ability of outputting PWM directly. By PWM, we can adjust the lightness of the LED as well as motor speed. In Arduino IDE, analogWrite() function can change duty ratio but can not change the frequency of PWM. In addition, the PWM frequency and duty ratio can both be adjustable. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Measuring analogWrite() waveform with Microduino-Core below'''&lt;br /&gt;
The pin 3, 9, 10 and 11 have the same waveform basically and the oscillograph adjustment is 0.5ms/div 2V/div. Check below: &lt;br /&gt;
[[File: PIN 3 9 10 11  0.5ms-div  2V-div.jpg|600px|center|thumb]]&lt;br /&gt;
The pin 5 and 6 share the same waveform basically and the oscillograph is 0.5ms/div 2V/div. Check below:&lt;br /&gt;
[[File: PIN 5  6  0.5ms-div  2V-div.jpg|600px|center|thumb]]&lt;br /&gt;
Conclusion: The cycle of pin 3, 9, 10 and 11 is around 980Hz and the amplitude is below 5V. If changing the “127” in analogWrite(3,127), you can change the duty ratio based on the frequency.   &lt;br /&gt;
&lt;br /&gt;
'''Below is the PWM waveform image.''' Choose10us/div,2V/div as the oscillograph stall and D10 as the pin output.&lt;br /&gt;
[[File: PIN  10   10us-div  2V-div  D=0.25.jpg|600px|center|thumb]]&lt;br /&gt;
Another OCR1A=400; OCR1B=200;Measured drawing（10us/div,2V/div）&lt;br /&gt;
[[File: PIN  10   10us-div  2V-div   D=0.5.jpg|600px|center|thumb]]&lt;br /&gt;
Conclusion: By changing OCR1A, you can easily change the frequency and the cycle of PWM. However, by changing OCR1B, you can easily change the duty ratio under the set OCR1A cycle.  &lt;br /&gt;
==Program==&lt;br /&gt;
*Adopt analogWrite():   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
void setup()&lt;br /&gt;
{&lt;br /&gt;
  pinMode(3,OUTPUT);&lt;br /&gt;
  pinMode(5,OUTPUT);&lt;br /&gt;
  pinMode(6,OUTPUT);&lt;br /&gt;
  pinMode(9,OUTPUT);&lt;br /&gt;
  pinMode(10,OUTPUT);&lt;br /&gt;
  pinMode(11,OUTPUT);&lt;br /&gt;
}  &lt;br /&gt;
void loop()&lt;br /&gt;
{&lt;br /&gt;
  analogWrite(3,127);&lt;br /&gt;
  analogWrite(5,127);&lt;br /&gt;
  analogWrite(6,127);&lt;br /&gt;
  analogWrite(9,127);&lt;br /&gt;
  analogWrite(10,127);&lt;br /&gt;
  analogWrite(11,127);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
*Change register mode: &lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
void setup()&lt;br /&gt;
{&lt;br /&gt;
  pinMode(10,OUTPUT);&lt;br /&gt;
}&lt;br /&gt;
void loop()&lt;br /&gt;
{&lt;br /&gt;
  TCCR1A =_BV(COM1A0) | _BV(COM1B1) | _BV(WGM11) | _BV(WGM10);   &lt;br /&gt;
  TCCR1B =_BV(WGM12) |_BV(WGM13) | _BV(CS10);   	&lt;br /&gt;
  // _BV(COM1A0) equal  COM1A0=1，the bit COM1A0 is in the TCCR1A register byte。&lt;br /&gt;
  //COM1A0=1; COM1B1=1;enable and choose  the  normal  output,not invert output 。&lt;br /&gt;
  // WGM11=1; WGM10=1; WGM12=1; WGM13=1; choose the fast PWM,the top value is OCR1A。OC1B (D10)is the only output pin&lt;br /&gt;
  // CS10=1; no prescaling &lt;br /&gt;
  OCR1A=400;//change this value can set the frequency   F=16000000/400=40KHz&lt;br /&gt;
  OCR1B=100;//change this value can set the duty cycle   Duty=OCR1B/OCR1A&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Debugging==&lt;br /&gt;
*Copy the program to Arduino IDE. &lt;br /&gt;
*Compile the program and choose the right board and the corresponding serial port.  &lt;br /&gt;
*Click Upload and observe the waveform and watch the waveform after upload. &lt;br /&gt;
&lt;br /&gt;
==Result==&lt;br /&gt;
The course introduces the output of Microduino PWM.  By operating the register, you can adjust PWM waveform cycle and duty ratio. Since changing the related register value of the timer may affect some packed functions of Arduino, the change of the related register value of timer T1 doesn’t change the one-second delay time. In the practical application circuit, such as switching power supply circuit, it may need a high-frequency PWM waveform to operate the related register of PWM as required.  &lt;br /&gt;
&lt;br /&gt;
==Video==&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Pkj</name></author>	</entry>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=%E7%AC%AC%E4%BA%8C%E5%8D%81%E4%B9%9D%E8%AF%BE--Microduino_PWM%E7%9A%84%E4%B8%A4%E7%A7%8D%E4%BA%A7%E7%94%9F%E6%96%B9%E5%BC%8F%E6%B3%A2%E5%BD%A2%E5%AE%9E%E6%B5%8B/zh&amp;diff=4133</id>
		<title>第二十九课--Microduino PWM的两种产生方式波形实测/zh</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=%E7%AC%AC%E4%BA%8C%E5%8D%81%E4%B9%9D%E8%AF%BE--Microduino_PWM%E7%9A%84%E4%B8%A4%E7%A7%8D%E4%BA%A7%E7%94%9F%E6%96%B9%E5%BC%8F%E6%B3%A2%E5%BD%A2%E5%AE%9E%E6%B5%8B/zh&amp;diff=4133"/>
				<updated>2014-09-15T06:58:57Z</updated>
		
		<summary type="html">&lt;p&gt;Pkj：&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Language|Lesson_29--Two Generative Styles of Microduino PWM &amp;amp; Waveform Measurement}}&lt;br /&gt;
Microduino PWM的两种产生方式--波形实测&lt;br /&gt;
{| style=&amp;quot;width: 800px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
==目的==&lt;br /&gt;
本教程实测了Microduino  PWM输出口的波形。通过analogWrite()函数输出PWM与寄存器直接操作PWM输出波形的对比，帮助读者全面了解Microduino输出PWM的使用方法。&lt;br /&gt;
==设备==&lt;br /&gt;
*'''[[Microduino-Core]]'''&lt;br /&gt;
Microduino-Core 是以 Atmel ATmega328P为核心的8位单片机开发核心板，是一个开源的、与 Arduino UNO 兼容的控制器模块。&lt;br /&gt;
&lt;br /&gt;
*'''[[Microduino-USBTTL]]'''&lt;br /&gt;
下载程序模块，可直接与 Microduino-Core 或者Microduino-Core+ 相连，让他们与计算机通讯。它的下载接口用的是MicUSB，这也是Microduino小巧的一部分。Microduino大小与一枚一元硬币差不多大。下载线与绝大多数智能手机usb数据线是一样的，方便实用。&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;
|20M示波器||1个||测量Microduino PWM输出波形。&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
===示波器===&lt;br /&gt;
示波器是一种用途十分广泛的电子测量仪器。它能把肉眼看不见的电信号变换成看得见的图象，便于人们研究各种电现象的变化过程。示波器的X轴代表时间，Y轴代表幅值。该示例用到的示波器图像显示采用的是CRT（阴极射线管），属于比较老式的。新型的示波器会采用液晶屏作为显示，体积上要比CRT形式小，功能却有很多增强，例如不用再去数格子，直接会显示周期、频率、幅值等，还会带USB接口，可以很方便的把波形存储于U盘中。&lt;br /&gt;
 [[File: OSC ORG.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
==实验原理图==&lt;br /&gt;
[[File: osc real conn.jpg|600px|center|thumb]]&lt;br /&gt;
'''原理介绍'''：以前学习MCS-51的时候，知道定时器会溢出，溢出后会置位中断标志，然后可以在中断处理程序或是在主程序中查询来处理。Micrduino-core采用的Atmega328P（TQFP的封装形式），兼容Arduino UNO。这个328芯片对比MCS-51芯片来说，有了很大进步。例如：时钟改进了，复位灵活了，休眠模式可供选择多了，带AD了，带IIC了，IO口也不一样了……。自然,Atmel的工程师不会放过定时器。328的定时器对比MCS-51灵活了很多，增添了预分频器，增添了输出比较寄存器，增加了直接输出PWM的能力。利用PWM我们可以调节LED灯的亮度，可以改变直流电机的转速。在Arduino IDE开发环境下，analogWrite函数可以改变占空比（占空比的概念是一个周期内高电平的时间除以一个周期的时间），但是analogWrite函数不能改变PWM的频率。可以实现Microduino的PWM频率与占空比都可调吗？答案是可以。先简介下定时器与预分频器相关知识。&lt;br /&gt;
328有三个定时器。定时器0与定时器2均是8位定时器，定时器1是16位定时器。Microduino的PWM输出脚D5（对应于OC0A）与D6(OC0B)对应于定时器0，D3(OC2B)与D11(OC2A)对应于定时器2，D9(OC1A)与D10（OC1B）对应于定时器1。&lt;br /&gt;
预分频器:预分频器是个好东西。它可以把16MHz的晶振频率分频后给定时器用，如果预分频器的值设置为8，那么定时器获得的时钟频率就相当于是2MHz了，如果分频器设置为1024，那么定时器获取的时钟频率就相当于16000000/1024=15.625KHz。通过预分频器的设置，定时器可以定时的时间就延长了，或者说定时时间更灵活了，因为定时器时钟慢了，同样计到256个数或是计到65536个数的时间就延长了。举例说明，对于定时器T0而言，如果没有用到预分频器，那么T0工作的最低频率等于16000000/256=62.5K，周期T=1/f=1/62.5K=16uS , 显然，对于一些实际应用而言，定时时间有些短了，如果TO用于PWM输出，62.5K的频率可能也有些高了。&lt;br /&gt;
&lt;br /&gt;
'''下面用Microduino-Core实测analogWrite()函数波形'''。&lt;br /&gt;
3 9 10 11 脚波形基本相同，示波器调节为0.5ms/div 2V/div 见下图&lt;br /&gt;
[[File: PIN 3 9 10 11  0.5ms-div  2V-div.jpg|600px|center|thumb]]&lt;br /&gt;
5 6脚波形基本相同，示波器调节为0.5ms/div 2V/div 见下图&lt;br /&gt;
[[File: PIN 5  6  0.5ms-div  2V-div.jpg|600px|center|thumb]]&lt;br /&gt;
结论： 3、9、10、11脚的周期为490Hz左右，5、6脚的周期为980Hz左右，幅值均略低于5V。如果改变analogWrite(3,127);中127这个数值，可以在此频率基础上改变占空比。&lt;br /&gt;
&lt;br /&gt;
'''下面贴出寄存器直接操作PWM的波形图'''。示波器档位选择为10us/div,2V/div。D10引脚输出。&lt;br /&gt;
[[File: PIN  10   10us-div  2V-div  D=0.25.jpg|600px|center|thumb]]&lt;br /&gt;
再贴张OCR1A=400; OCR1B=200;实测图（10us/div,2V/div）&lt;br /&gt;
[[File: PIN  10   10us-div  2V-div   D=0.5.jpg|600px|center|thumb]]&lt;br /&gt;
结论：改变OCR1A，可轻松改变PWM的频率（周期），改变OCR1B的值可轻松改变在OCR1A设定周期下的占空比。&lt;br /&gt;
&lt;br /&gt;
==程序==&lt;br /&gt;
*采用analogWrite()函数：&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
void setup()&lt;br /&gt;
{&lt;br /&gt;
  pinMode(3,OUTPUT);&lt;br /&gt;
  pinMode(5,OUTPUT);&lt;br /&gt;
  pinMode(6,OUTPUT);&lt;br /&gt;
  pinMode(9,OUTPUT);&lt;br /&gt;
  pinMode(10,OUTPUT);&lt;br /&gt;
  pinMode(11,OUTPUT);&lt;br /&gt;
}  &lt;br /&gt;
void loop()&lt;br /&gt;
{&lt;br /&gt;
  analogWrite(3,127);&lt;br /&gt;
  analogWrite(5,127);&lt;br /&gt;
  analogWrite(6,127);&lt;br /&gt;
  analogWrite(9,127);&lt;br /&gt;
  analogWrite(10,127);&lt;br /&gt;
  analogWrite(11,127);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
*采用直接更改寄存器方式：&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
void setup()&lt;br /&gt;
{&lt;br /&gt;
  pinMode(10,OUTPUT);&lt;br /&gt;
}&lt;br /&gt;
void loop()&lt;br /&gt;
{&lt;br /&gt;
  TCCR1A =_BV(COM1A0) | _BV(COM1B1) | _BV(WGM11) | _BV(WGM10);   &lt;br /&gt;
  TCCR1B =_BV(WGM12) |_BV(WGM13) | _BV(CS10);   	&lt;br /&gt;
  // _BV(COM1A0) equal  COM1A0=1，the bit COM1A0 is in the TCCR1A register byte。&lt;br /&gt;
  //COM1A0=1; COM1B1=1;enable and choose  the  normal  output,not invert output 。&lt;br /&gt;
  // WGM11=1; WGM10=1; WGM12=1; WGM13=1; choose the fast PWM,the top value is OCR1A。OC1B (D10)is the only output pin&lt;br /&gt;
  // CS10=1; no prescaling &lt;br /&gt;
  OCR1A=400;//change this value can set the frequency   F=16000000/400=40KHz&lt;br /&gt;
  OCR1B=100;//change this value can set the duty cycle   Duty=OCR1B/OCR1A&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==调试==&lt;br /&gt;
*把程序复制到Arduino IDE中。&lt;br /&gt;
*编译程序，选择正确的板卡与相应串口。&lt;br /&gt;
*点击Upload，下载完毕后观察波形。&lt;br /&gt;
&lt;br /&gt;
==结果==&lt;br /&gt;
该文介绍了Microduino PWM的输出，通过寄存器直接操作PWM的方式可以实现周期与占空比的同时调节。因为更改了定时器相关寄存器的值，可能会影响到Arduino封装好的一些函数，经实测，更改定时器T1相关寄存器的值，并未改变delay(1000)对应1S的延时。在实际应用电路中（例如开关电源电路），可能我们会需要几十K或更高频率的PWM波形，直接操作PWM相关的寄存器可满足需求。&lt;br /&gt;
&lt;br /&gt;
==视频==&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Pkj</name></author>	</entry>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=Microduino_GPS_recorder-306KIT&amp;diff=4132</id>
		<title>Microduino GPS recorder-306KIT</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=Microduino_GPS_recorder-306KIT&amp;diff=4132"/>
				<updated>2014-09-13T16:32:20Z</updated>
		
		<summary type="html">&lt;p&gt;Pkj：/* Note */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Language|Microduino的GPS记录仪-306KIT}}&lt;br /&gt;
{| style=&amp;quot;width: 800px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
==Outline==&lt;br /&gt;
Project：Microduino GPS Recorder&lt;br /&gt;
&lt;br /&gt;
Objective：Adopt the Microduino GPS module to acquire the geographic information and store it into Microduino-SD.&lt;br /&gt;
&lt;br /&gt;
Difficulty：Elementary&lt;br /&gt;
&lt;br /&gt;
Time-consuming：2 hours&lt;br /&gt;
&lt;br /&gt;
Maker：Microduino Studio-YLB&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
==Bill of Materials==&lt;br /&gt;
*Microduino module：（MICRODUINO 203KIT）&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|Module||Number||Function&lt;br /&gt;
|-&lt;br /&gt;
|Microduino-Core+||1||Core module&lt;br /&gt;
|-&lt;br /&gt;
|Microduino-FT232R ||1||Program download &lt;br /&gt;
|-&lt;br /&gt;
|Microduino-NEO-6M||1||GPS module&lt;br /&gt;
|-&lt;br /&gt;
|Microduino-SD||1||Information storage&lt;br /&gt;
|-&lt;br /&gt;
|Microduino-OLED||1||Information Display&lt;br /&gt;
|}&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
[[File:GPS-module.jpg|600px|center|thumb|306KIT picture]]&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
==Document==&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
==Debug==&lt;br /&gt;
Step 1：Build the hardware&lt;br /&gt;
&lt;br /&gt;
Stack all the modules. Just put the GPS antenna outside, or it can not receive the signal.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
[[File:306KIT-1.jpg|600px|center|thumb|306KIT]]&lt;br /&gt;
[[File:306KIT-2.jpg|600px|center|thumb|306KIT]]&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Step 2：Download the program&lt;br /&gt;
If wanting to keep the default jumper (RX0、TX1), you need to unplug the Microduino NEO-6M during the download；&lt;br /&gt;
&lt;br /&gt;
Step 3：Debug&lt;br /&gt;
Find an open area to debug for better signal.&lt;br /&gt;
The current status of the module can be judged by the PPS indicator: lighting, indicates that the module has started to work, but hasn't achieved position information. Flashing (100ms off, 900ms on), means that the module has been successfully positioned.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
==Result==&lt;br /&gt;
You can see the parameters after acquiring the positioning information and you can also record the data into the memory card. &lt;br /&gt;
*Walking speed &lt;br /&gt;
*Latitude and longitude&lt;br /&gt;
*Signal intensity&lt;br /&gt;
*The number of satellites&lt;br /&gt;
*Altitude&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
==Note==&lt;br /&gt;
*Before download the program, please make sure the jumper connection firstly，detailed information refer to：[[Microduino-GPS]]&lt;br /&gt;
*Debugging need in the open area.&lt;br /&gt;
&lt;br /&gt;
==Video==&lt;br /&gt;
http://v.youku.com/v_show/id_XNjY1NzE3NDQ0.html&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Pkj</name></author>	</entry>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=Microduino%E7%9A%84GPS%E8%AE%B0%E5%BD%95%E4%BB%AA-306KIT/zh&amp;diff=4131</id>
		<title>Microduino的GPS记录仪-306KIT/zh</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=Microduino%E7%9A%84GPS%E8%AE%B0%E5%BD%95%E4%BB%AA-306KIT/zh&amp;diff=4131"/>
				<updated>2014-09-13T16:30:26Z</updated>
		
		<summary type="html">&lt;p&gt;Pkj：/* 注意问题 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Language|Microduino_GPS_recorder-306KIT}}&lt;br /&gt;
{| style=&amp;quot;width: 800px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
==概述==&lt;br /&gt;
项目名称：Microduino的GPS记录仪&lt;br /&gt;
&lt;br /&gt;
目的：通过Microduino GPS模块将获取的地理信息存储到Microduino SD卡内。&lt;br /&gt;
&lt;br /&gt;
难度：初级&lt;br /&gt;
&lt;br /&gt;
耗时：2小时&lt;br /&gt;
&lt;br /&gt;
制作者：Microduino Studio-YLB&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
==材料清单==&lt;br /&gt;
*Microduino模块：（MICRODUINO 203KIT）&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|模块||数量||功能&lt;br /&gt;
|-&lt;br /&gt;
|Microduino-Core+||1||核心板&lt;br /&gt;
|-&lt;br /&gt;
|Microduino-FT232R ||1||下载程序&lt;br /&gt;
|-&lt;br /&gt;
|Microduino-NEO-6M||1||WiFi模块&lt;br /&gt;
|-&lt;br /&gt;
|Microduino-SD||1||存储信息&lt;br /&gt;
|-&lt;br /&gt;
|Microduino-OLED||1||信息显示 &lt;br /&gt;
|}&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
[[File:GPS-module.jpg|600px|center|thumb|306KIT picture]]&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;
将所有模块叠堆，注意GPS天线要露出，不然可能收不到信号。&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
[[File:306KIT-1.jpg|600px|center|thumb|306KIT]]&lt;br /&gt;
[[File:306KIT-2.jpg|600px|center|thumb|306KIT]]&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
步骤二：下载程序&lt;br /&gt;
&lt;br /&gt;
若保持默认跳线（RX0、TX1），下载程序时请拔下Microduino NEO-6M模块；&lt;br /&gt;
&lt;br /&gt;
步骤三：测试&lt;br /&gt;
&lt;br /&gt;
找个空旷地方调试，不能在室内，因为收不到信号。可通过 PPS指示灯判断模块的当前状态：常亮，表示模块已开始工作，但还未实现定位；闪烁（100ms 灭，900ms 亮），表示模块已经定位成功。&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;
*下载程序之前确定跳线接法，详细参考：[[Microduino-GPS/zh]]&lt;br /&gt;
*调试需要在空旷地带测试。&lt;br /&gt;
&lt;br /&gt;
==视频==&lt;br /&gt;
http://v.youku.com/v_show/id_XNjY1NzE3NDQ0.html&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Pkj</name></author>	</entry>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=Microduino_%E5%9B%9B%E8%BD%B4%E9%A3%9E%E8%A1%8C%E5%99%A8%E6%95%99%E7%A8%8B&amp;diff=4130</id>
		<title>Microduino 四轴飞行器教程</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=Microduino_%E5%9B%9B%E8%BD%B4%E9%A3%9E%E8%A1%8C%E5%99%A8%E6%95%99%E7%A8%8B&amp;diff=4130"/>
				<updated>2014-09-12T08:01:32Z</updated>
		
		<summary type="html">&lt;p&gt;Pkj：&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Language|Microduino-Quadcopter Tutorial}}&lt;br /&gt;
{| style=&amp;quot;width: 800px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
==概述==&lt;br /&gt;
*项目名称：Microduino四轴飞行器&lt;br /&gt;
*目的：通过Microduino Joypad来控制四轴飞行器。&lt;br /&gt;
*难度：高级&lt;br /&gt;
*耗时：6小时&lt;br /&gt;
*制作者：Microduino Studio-PKJ&amp;amp;Microduino Studio-Joseph Leung&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||2||核心板&lt;br /&gt;
|-&lt;br /&gt;
|Microduino-USBTTL ||1||下载程序&lt;br /&gt;
|-&lt;br /&gt;
|Microduino-10DOF ||1||姿态稳定&lt;br /&gt;
|-&lt;br /&gt;
|Microduino-BT||2||无线通讯&lt;br /&gt;
|-&lt;br /&gt;
|Microduino-Joypad ||1||遥控&lt;br /&gt;
|-&lt;br /&gt;
|Microduino-TFT||1||显示&lt;br /&gt;
|-&lt;br /&gt;
|Microduino-QuadCopter||1||四轴电机驱动&lt;br /&gt;
|}&lt;br /&gt;
*其他设备&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|USB数据线||1||下载程序&lt;br /&gt;
|-&lt;br /&gt;
||四轴飞行器机架||1||搭建四轴&lt;br /&gt;
|-&lt;br /&gt;
|电池||2||供电&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==文档==&lt;br /&gt;
*下载四轴控制程序：&lt;br /&gt;
https://github.com/Microduino/Microduino_Tutorials/tree/master/Microduino_Advanced_Tutorial/Microduino_Joypad_QuadCopter/MultiWii&lt;br /&gt;
&lt;br /&gt;
*下载MultiWiiConf上位机软件：&lt;br /&gt;
https://github.com/Microduino/Microduino_Tutorials/tree/master/Microduino_Advanced_Tutorial/Microduino_Joypad_QuadCopter/MultiWiiConf&lt;br /&gt;
&lt;br /&gt;
*下载PID配置文件：&lt;br /&gt;
https://github.com/Microduino/Microduino_Tutorials/tree/master/Microduino_Advanced_Tutorial/Microduino_Joypad_QuadCopter/%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6&lt;br /&gt;
&lt;br /&gt;
==简介==&lt;br /&gt;
===原理===&lt;br /&gt;
四轴飞行器，顾名思义就是有四个动力桨的飞行器，四轴与直升机类似，可以完成空中悬停、飞行的动作。与传统直升机使用一个主桨来产生升力，用一个尾桨来抵消主桨产生的扭矩（即锁尾）这样的动力方式不同的是，四轴飞行器对角电机采用正反桨设计从而不需要额外的机构进行“锁尾”。如图1.1所示，1、3号桨为一对对角正反桨，2、4号桨为一对对角正反桨，转速相同时，正桨旋转时产生的扭力会与反桨旋转产生的扭力相抵消从而保持航向（箭头所示方向）不变。示意图当中的四轴是最常见的X型四轴，还有一种四轴是十字形结构，这种四轴相对而言前方好辨认但是机动性差。&lt;br /&gt;
[[File:Microduino_QuadCopter_Introduction1.jpg||600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
四轴飞行器可以完成升降、俯仰（Pitch）、侧俯仰（Roll）、偏航（Yaw）四种基本动作。升降即机身垂直升降，上升由四个电机同时增加转速实现，下降亦然。俯仰即机身向前向或者后向倾斜以完成向前飞行或者向后飞行，俯由在后方的3、4号电机增加转速实现，仰亦然。侧俯仰其实是传统航模中的滚转，机身向左或者向右倾斜以完成向左或者向右飞行，向左倾斜由右方的2、3号电机增加转速实现，向右倾斜亦然。偏航为机头方向的偏移，向左偏由带有反桨的2、4号增加转速实现，向右偏亦然。玩家可以在完成四轴的安装调试后观察其飞行来理解。&lt;br /&gt;
&lt;br /&gt;
===结构===&lt;br /&gt;
四轴的组成示意图如图下图所示，简化后（只关心信号）的系统由遥控信号接收装置(此处为航模遥控接收器或者蓝牙模块)、飞行控制器以及四个电机组成。遥控信号接收装置接收控制端的信号之后转换为PWM或者PPM等信号传送给飞行控制器，飞行控制器根据遥控信号以及传感器的值来通过PWM控制四个电机以达到预期的动作。在飞行控制器中，陀螺仪以及加速度计是必须的，四轴的姿态是由这俩个传感器得到的数据来解算的，解算之后通过PID等算法来控制电机的转速。当然也可以加入电子罗盘以确定机头位置，加入GPS以确定四轴的地理位置。所以简单来讲四轴是一个有两个环的闭环控制系统，大环由遥控接收设备注入输入量，小环由姿态传感器注入输入量。&lt;br /&gt;
[[File:Microduino_QuadCopter_Introduction2.jpg||600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
对于一般的固定翼航模来讲，飞控（飞行控制器）可有可无，一般玩家不会在固定翼航模上安装飞控，但是四轴不一样，四轴飞行器是一种具有三组自由度，四个控制输入的欠驱动系统。它需要一个控制系统来进行控制。&lt;br /&gt;
当然，这个过程中也有一些技术细节需要设计，比如传感器读入的数据需要进行滤波、俯仰（Pitch）、侧俯仰（Roll）、偏航（Yaw）等动作的PID算法设计及调整。这是一个较复杂的综合系统，如果玩家想在理论方面从零开始学习则需要介绍许许多多，受篇幅所限，请参考相关资料，这里就不详细介绍了。&lt;br /&gt;
&lt;br /&gt;
===优点===&lt;br /&gt;
Microduino 采用独有的 U 型 27 Pin 接口规范（UPin-27），尺寸小巧，长25.4mm X 宽27.94mm，如一枚1元硬币的大1小。所有模块都可以通过 UPIN-27 堆叠在一起，即插即用。&lt;br /&gt;
Microduino四轴飞行器最少只需要用到5种功能模块以及推荐的330轴距机架组件就能实现其功能，分别为为：Microduino-Core、Microduino-10DOF、Microduino-BT、Microduino-QuadCopter、Microduino-Joypad。而且你只需要将模块叠堆起来就可以用，非常简单。&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;
|Microduino-Core||1||核心板&lt;br /&gt;
|-&lt;br /&gt;
|Microduino-USBTTL ||1||下载程序&lt;br /&gt;
|-&lt;br /&gt;
|Microduino-10DOF ||1||姿态稳定&lt;br /&gt;
|-&lt;br /&gt;
|Microduino-BT||1||无线通讯&lt;br /&gt;
|-&lt;br /&gt;
|Microduino-QuadCopter||1||四轴驱动&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
将飞控底板用四颗螺丝固定在机架底座上。安装时请自行设定一个向前的方向，飞控底板默认的前向是Upin口的开口方向。&lt;br /&gt;
[[File:Microduino_QuadCopter_setup1.jpg||600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
将Microduino-QuadCopter用四颗螺丝固定在机架底座上。&lt;br /&gt;
[[File:Microduino_QuadCopter_setup2.4.jpg||600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
将四个电机臂用螺丝安装在机架底座上，安装的时候玩家按照如下方法设定一个机头方向：一般的我们定义橙色的两个桨是前方的桨，黑色的两个桨是后方的桨，这样在飞远了以后仍然可以依靠桨的颜色来判别机头方向。安装时还要按照正确的顺序来，左前方和右下方的桨要安装A桨，右前方和左下方的桨要安装B桨。每个桨的上面都写有A、B来区分：&lt;br /&gt;
[[File:Microduino_QuadCopter_setup2.1.jpg||600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
请玩家注意。安装方法如下图所示：&lt;br /&gt;
[[File:Microduino_QuadCopter_setup2.2.jpg||600px|center|thumb]]&lt;br /&gt;
[[File:Microduino_QuadCopter_setup2.3.jpg||600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
将四个电机用四颗螺丝固定在机架底座上。&lt;br /&gt;
[[File:Microduino_QuadCopter_setup2.5.jpg||600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
在固定好四个机臂后将四个电机的导线接到飞控地板对应的焊盘上,其实底座和接口是匹配的，用户只需要插上去即可，但是最好还是确认下电机白色、红色的线接到底板标注有“+”的焊盘上，黑色、蓝色的线接到地板标注有“-”的焊盘上。如果接反，电机的转向就会反了，这样我们的小飞机就无法起飞。安装好的底板如下图所示。&lt;br /&gt;
[[File:Microduino_QuadCopter_setup3.1.jpg||600px|center|thumb]]&lt;br /&gt;
[[File:Microduino_QuadCopter_setup3.2.jpg||600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
这样就完成了机架的组装了。&lt;br /&gt;
&lt;br /&gt;
===两个蓝牙建立连接===&lt;br /&gt;
我们是通过蓝牙建立无线遥控的，因此两个蓝牙连接就至关重要了。如何建立两个蓝牙连接，请参考：[[两个Microduino BT模块如何连接]]&lt;br /&gt;
&lt;br /&gt;
===下载与调试===&lt;br /&gt;
先将Microduino-Core、Microduino-10DOF、Microduino-USBTTL叠堆到一起并安装到飞控底板上即可。如图3.4-1所示：&lt;br /&gt;
[[File:Microduino_QuadCopter_Software1.jpg||600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
将四轴放在水平桌面上，用USB数据线连接到电脑，板卡选择Microduino Core (Atmega328P@16M,5V)，将修改好的程序进行编译，通过后下载到Microduino-Core中。&lt;br /&gt;
在MultiWiiConf\application.windows32里以管理员身份打开地面站软件MultiWiiConf.exe开始进行校准及参数调整。地面站软件的界面如下图。&lt;br /&gt;
[[File:Microduino_QuadCopter_MultiWiiConf1.jpg||600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
===电脑连接到四轴飞行器===&lt;br /&gt;
点击RECONNECT进行连接，连接成功后通过Microduino-USBTTL串口进行数据通信。连接成功通过START按钮来获取传感器数据曲线，如图所示：&lt;br /&gt;
[[File:Microduino_QuadCopter_MultiWiiConf2.jpg||600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
====传感器校准====&lt;br /&gt;
将四轴水平放置在桌面上，点击CALIB_ACC并在此后的大约五秒钟之内保持四轴平稳，飞控的加速度计会校准。待数据曲线稳定再点击CALIB_MAG并在此后的大约半分钟之内拿起飞机在各个轴向上反复绕动以校准电子罗盘，之后保持四轴平稳，待电子罗盘平衡后点击WRITE以将数值写入飞控。&lt;br /&gt;
&lt;br /&gt;
通过点击SELLECT SETTING，我们可以进行参数设置，并且看到模拟的姿态，如图所示：&lt;br /&gt;
[[File:Microduino_QuadCopter_MultiWiiConf4.jpg||600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
====设置PID参数====&lt;br /&gt;
PID三个标签下面对应的ROLL、PITCH、YAW值是我们要调整的。这些值通过合理的调整能使四轴非常平稳的飞行。改变这些值的方法是在其绿色的框内按下鼠标左键，向左移动鼠标数值就会减小，向右移动鼠标数值就会增大，达到想要的值以后松开鼠标左键。当然我们可以直接LOAD配置文件，点击LOAD，浏览到你下载你配置文件夹选择pkj.mwi导入，如图所示：&lt;br /&gt;
[[File:Microduino_QuadCopter_MultiWiiConf_PID.jpg||600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
====设置飞行模式====&lt;br /&gt;
在调整PID的右侧我们可以看到各种飞行模式以及对应辅助开关的一个二维表。一个开关或者多个开关的组合可以指定为一种飞行模式。我们建议玩家按照下图设置飞行模式，设置方法为在方块处点击鼠标左键，灰色的方块就会变成白色，这样就指定了在这样的开关方位时处于对应的飞行模式。ANGLE是增稳模式，这有助于我们飞行。设置好点击WRITE以将数值写入飞控。完成后关闭MultiWiiConf串口连接，将USB线从Microduino-USBTTL模块上拔下同时取下Microduino-USBTTL模块。四轴控制器就做好了。&lt;br /&gt;
[[File:Microduino_QuadCopter_MultiWiiConf_ANGLE.jpg||600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
==遥控器（Microduino-Joypad）搭建与调试==&lt;br /&gt;
遥控器我们采用Microduino-Joypad来实现，当然，你还需要其他模块，Microduino-TFT、Microduino-Core、Microduino-USBTTL、Microduino-BT（从机）。这样才能把遥控器搭建起来。&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|模块||数量||功能&lt;br /&gt;
|-&lt;br /&gt;
|Microduino-Core||1||核心板&lt;br /&gt;
|-&lt;br /&gt;
|Microduino-USBTTL ||1||下载程序&lt;br /&gt;
|-&lt;br /&gt;
|Microduino-BT||1||无线通讯&lt;br /&gt;
|-&lt;br /&gt;
|Microduino-Joypad ||1||遥控&lt;br /&gt;
|-&lt;br /&gt;
|Microduino-TFT||1||四显示&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===硬件搭建===&lt;br /&gt;
*步骤一：将Microduino-TFT安装在Microduino-Joypad面板上；&lt;br /&gt;
[[File:Microduino_Joypad_TFT.jpg||600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*步骤二：将尼龙螺丝安装在Microduino-Joypad上，并且将底面板粘贴在Microduino-Joypad底部；&lt;br /&gt;
[[File:Microduino_Joypad_nilong.jpg||600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*步骤三：将Microduino-TFT与Microduino-Joypad通过转接线连接起来；&lt;br /&gt;
[[File:Microduino_Joypad_Connection.jpg||600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*步骤四：将锂电池连接到底板上，注意正负极别接反了，板子背面标注了正负极；&lt;br /&gt;
[[File:Microduino_Joypad_power.jpg||600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*步骤五：将底板和面板用尼龙螺丝固定好；&lt;br /&gt;
[[File:Microduino_Joypad_face_bord.jpg||600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*步骤六：你可以打开电源开关，观察供电是否正常。&lt;br /&gt;
[[File:Microduino_Joypad_switch.jpg||600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*步骤七：将Microduino-USBTTL、Microduino-Core叠加在Microduino-Joypad底座上。此时不需要叠加Microduino-BT模块，不然串口会冲突。&lt;br /&gt;
[[File:Microduino_Joypad_Module.jpg||600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
===软件调试===&lt;br /&gt;
*下载Microduino_Joypad_Ctrl程序：&lt;br /&gt;
https://github.com/Microduino/Microduino_Tutorials/tree/master/Microduino_Advanced_Tutorial/Microduino_Joypad_QuadCopter/Microduino_Joypad_Ctrl&lt;br /&gt;
&lt;br /&gt;
同时你需要用到以下库：&lt;br /&gt;
&lt;br /&gt;
'''_01_Microduino_TFT_GFX：'''&lt;br /&gt;
https://github.com/Microduino/Microduino_Tutorials/tree/master/Microduino_Libraries/_01_Microduino_TFT_GFX&lt;br /&gt;
&lt;br /&gt;
'''_01_Microduino_TFT_ST7735 ：'''&lt;br /&gt;
https://github.com/Microduino/Microduino_Tutorials/tree/master/Microduino_Libraries/_01_Microduino_TFT_ST7735&lt;br /&gt;
&lt;br /&gt;
'''_01_Microduino_TFT：'''&lt;br /&gt;
https://github.com/Microduino/Microduino_Tutorials/tree/master/Microduino_Libraries/_01_Microduino_TFT&lt;br /&gt;
&lt;br /&gt;
'''_08_Microduino_Shield_Joypad：'''https://github.com/Microduino/Microduino_Tutorials/tree/master/Microduino_Libraries/_08_Microduino_Shield_Joypad&lt;br /&gt;
&lt;br /&gt;
*打开Microduino_Joypad_Ctrl程序，编译成功通过后选择好板卡下载。&lt;br /&gt;
&lt;br /&gt;
*下载完毕后可取下Microduino-USBTTL模块，叠上Microduino-BT（主机）模块。最后进行整体调试。&lt;br /&gt;
[[File:Microduino_Joypad_BT.jpg||600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
==试飞==&lt;br /&gt;
===调试Microduino-Joypad===&lt;br /&gt;
*打开遥控器电源开关，按下复位按键，进入系统，请在4S内按下A按键，进入遥控器校准模式。&lt;br /&gt;
[[File:Microduino_Joypad_Remote1.jpg||600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*360度最大幅度旋转两个摇杆，看TFT屏上数据没变化即可按下B按键，进入飞行模式。&lt;br /&gt;
[[File:Microduino_Joypad_Remote2.jpg||600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*请把将左上边开关拨到下面（关闭油门），再把油门摇杆拨到最下方。&lt;br /&gt;
[[File:Microduino_Joypad_Remote4.jpg||600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
===调试四轴机架===&lt;br /&gt;
*确定Microduino-QuadCopter上叠加Microduino-BT（从机）模块，用来和遥控器通讯。&lt;br /&gt;
&lt;br /&gt;
*把电池装到四轴机架底下，再和Microduino-QuadCopter电源线连接，注意正负，红线为正，黑线为负。&lt;br /&gt;
[[File:Microduino_QuadCopter_Remote2.jpg||600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*打开Microduino-QuadCopter上的开关，放置在平稳的地方，按下复位按键，系统将对传感器进行校准，未完成时板子上红色led灯闪烁，校准完成后将熄灭，此时等待解锁。&lt;br /&gt;
[[File:Microduino_QuadCopter_Remote3.jpg||600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
===整体测试===&lt;br /&gt;
*观察Microduino-QuadCopter上的Microduino-BT（从机）模块是否和Microduino-Joypad上的Microduino-BT（主机）连接，蓝牙模块连接指示灯不再闪烁。&lt;br /&gt;
[[File:Microduino_QuadCopter_Remote4.jpg||600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*对四轴进行解锁，将左上边开关拨到下面（关闭油门），防止解锁后不小心开了油门使四轴飞行器起飞发生意外。将油门滑竿置于最右下方，可看到led灯开始闪烁，准备链接，等待2S左右，恢复油门滑竿，再置于最又下方，依次循环，直到led长亮说明解锁成功，这样就可以准备飞了。如果尝试多次不能解锁，对四轴飞行器核心复位，系统将对传感器进行校准，重新尝试解锁。&lt;br /&gt;
[[File:Microduino_QuadCopter_Remote5.jpg||600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*再把油门摇杆拨到最下方，左上边开关往上推（打开油门开关），这时参考摇杆控制示意图，你只要轻轻推动油门即可看到四个螺旋浆开始飞速转起来了。继续加大油门，确保它飞起来了。可以稍微高一点，不要紧贴地面，然后通过方位摇杆控制平衡了。&lt;br /&gt;
[[File:Microduino_QuadCopter_Remote6.jpg||600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*当发现在猛推油门的情况下飞机也只会贴着地飞行而无法一飞冲天的时候就表明电池电量已耗尽，请给电池充电以避免事故发生。我们的飞控底板集成了充电管理，只需要将usb线缆的一头插在充电器上，另一头插到飞控底板上的microusb接口即可对电池充电。&lt;br /&gt;
[[File:Microduino_QuadCopter_Remote7.jpg||600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*当你想关掉飞行器，请一定要先断开四轴的电源，再断开遥控器电源，否者四轴将失控，避免发生意外。&lt;br /&gt;
&lt;br /&gt;
==注意问题==&lt;br /&gt;
*蓝牙连接是第一步，也是关键的一步，请确定两个蓝牙能够连接。&lt;br /&gt;
*下载程序时候请不要叠加BT模块，这样会引起串口冲突，容易出现问题。&lt;br /&gt;
*注意四轴飞行器四个螺旋桨的安装，别错了，否者飞不起来。&lt;br /&gt;
*锂电池正负极别接错了，否则会烧坏电路。	&lt;br /&gt;
*飞行器请先对遥控器（Microduino-Joypad）进行校准，否者容易导致飞不稳。&lt;br /&gt;
*遥控解锁前请先把左上边开关拨到下面（关闭油门），开始试飞请先把油门调到最低，避免解锁后油门值太大起飞发生意外。&lt;br /&gt;
*当你想关掉飞行器，请一定要先断开四轴的电源，再断开遥控器电源，否者四轴将失控，避免发生意外。&lt;br /&gt;
&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Pkj</name></author>	</entry>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=Lesson_28--Microduino_%26_Raindrop_Sensor&amp;diff=4129</id>
		<title>Lesson 28--Microduino &amp; Raindrop Sensor</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=Lesson_28--Microduino_%26_Raindrop_Sensor&amp;diff=4129"/>
				<updated>2014-09-12T03:22:43Z</updated>
		
		<summary type="html">&lt;p&gt;Pkj：Created page with &amp;quot;Microduino &amp;amp; Raindrop Sensor   {| style=&amp;quot;width: 800px;&amp;quot; |- | ==Purpose== Let’s talk about raindrop sensor in this course and make some interesting applications with Microdui...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Microduino &amp;amp; Raindrop Sensor  &lt;br /&gt;
{| style=&amp;quot;width: 800px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
==Purpose==&lt;br /&gt;
Let’s talk about raindrop sensor in this course and make some interesting applications with Microduino and the sensor.   &lt;br /&gt;
==Equipment==&lt;br /&gt;
*'''[[Microduino-Core]]'''&lt;br /&gt;
Microduino-Core is the 8-bit single-chip development core board with Atmel ATmega328P as the core, which is an open and Arduino Uno compatible controller. &lt;br /&gt;
&lt;br /&gt;
*'''[[Microduino-USBTTL]]'''&lt;br /&gt;
Microduino-USBTTL is the program download module, capable of connecting with Microduino-Core or Microduino-Core+ and making the modules communicate with the computer. It uses MicUSB as the download interface, which is also the smallest part of Microduino.  Microduino is just as small as a quarter. Besides, the downlaod cable is just like the USB cable of most smart phones, easy to use.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Other Equipment&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|Related hardware||Number||Function &lt;br /&gt;
|-&lt;br /&gt;
|Raindrop sensor||One||Raindrop sensor can output both high and low-level digital quantity as well as analog voltage. &lt;br /&gt;
|-&lt;br /&gt;
|LED||One|For indicating the electrical level of D2 port. &lt;br /&gt;
|-&lt;br /&gt;
| 510 Ω resistor||One||LED current-limiting  &lt;br /&gt;
|-&lt;br /&gt;
|USB cable ||One||For connecting Microduino modules and the computer. &lt;br /&gt;
|-&lt;br /&gt;
|Breadboard ||One ||All components gather here.&lt;br /&gt;
|-&lt;br /&gt;
|Jumper ||One box||Connector  &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
===Raindrop sensor===&lt;br /&gt;
[[File: rainSensor.jpg|600px|center|thumb]]&lt;br /&gt;
When raindrop falls on the sensor, the digital quantity output port of the sensor can output low electrical level. The analog quantity output port can change output voltage according to the quantity of the rain. The more the raindrop gets, the lower the voltage is. When the sensor detects no water, the port will output high electrical level and the output voltage is Vcc(Supply voltage). There are two LED lights on PCB board, one is for power indicator and the other is for raindrop indicator. When the raindrop indicator goes on, it means the digital output of the module is low and Microduino can detect the electrical level and then handle it. Besides, you can also adjust sensitivity of the potentiometer. With different sensitivity, one or two raindrop can have the same effect. &lt;br /&gt;
&lt;br /&gt;
==Schematic==&lt;br /&gt;
[[File: rainReal.jpg|600px|center|thumb]]&lt;br /&gt;
Microduino’s A0 port is connected with the analog output of the raindrop module, whose D2 port is connected to LED via a 510 Ω resistor. (LED’s cathode is connected to the ground.) &lt;br /&gt;
==Program==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
void  setup()&lt;br /&gt;
{&lt;br /&gt;
  pinMode(2,OUTPUT);&lt;br /&gt;
  Serial.begin(9600);&lt;br /&gt;
}&lt;br /&gt;
void loop()&lt;br /&gt;
{&lt;br /&gt;
  int value=analogRead(A0);&lt;br /&gt;
  Serial.println(value);&lt;br /&gt;
  if(value&amp;lt;800)//You  can change this value to fit for your app&lt;br /&gt;
    digitalWrite(2,HIGH);//Open the led&lt;br /&gt;
  else &lt;br /&gt;
    digitalWrite(2,LOW);//close&lt;br /&gt;
  delay(1000);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Debugging==&lt;br /&gt;
*Copy the program to Arduino IDE. &lt;br /&gt;
*Compile the program and choose the right board and the corresponding serial port.  &lt;br /&gt;
*Click Upload.  &lt;br /&gt;
*Watch the raindrop indicator on PCB board of the raindrop sensor, the red LED on the breadboard and the readings on the serial monitor of Arduino IDE under different circumstances(no raindrop, one drop and several drops )&lt;br /&gt;
*Adjust the sensitivity potentiometer on PCB board and watch again. &lt;br /&gt;
[[File: rainComOutput.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
==Result==&lt;br /&gt;
We can utilize the electrical level change or analog quantity output of the raindrop sensor based on different requirements. Eg. we can control the change of Microduino’s PWM duty cycle as well as motor speed according to the change of the raindrop sensor’s analog port output voltage.&lt;br /&gt;
&lt;br /&gt;
==Video==&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Pkj</name></author>	</entry>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=%E7%AC%AC%E4%BA%8C%E5%8D%81%E5%85%AB%E8%AF%BE--Microduino%E4%B8%8E%E9%9B%A8%E6%BB%B4%E4%BC%A0%E6%84%9F%E5%99%A8/zh&amp;diff=4128</id>
		<title>第二十八课--Microduino与雨滴传感器/zh</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=%E7%AC%AC%E4%BA%8C%E5%8D%81%E5%85%AB%E8%AF%BE--Microduino%E4%B8%8E%E9%9B%A8%E6%BB%B4%E4%BC%A0%E6%84%9F%E5%99%A8/zh&amp;diff=4128"/>
				<updated>2014-09-12T03:22:28Z</updated>
		
		<summary type="html">&lt;p&gt;Pkj：&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Language|Lesson_28--Microduino &amp;amp; Raindrop Sensor}}&lt;br /&gt;
Microduino与雨滴传感器&lt;br /&gt;
{| style=&amp;quot;width: 800px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
==目的==&lt;br /&gt;
本教程让大家了解雨滴传感器，用雨滴传感器与Microduino的互动，做一些好玩的作品。&lt;br /&gt;
==设备==&lt;br /&gt;
*'''[[Microduino-Core]]'''&lt;br /&gt;
Microduino-Core 是以 Atmel ATmega328P为核心的8位单片机开发核心板，是一个开源的、与 Arduino UNO 兼容的控制器模块。&lt;br /&gt;
&lt;br /&gt;
*'''[[Microduino-USBTTL]]'''&lt;br /&gt;
下载程序模块，可直接与 Microduino-Core 或者Microduino-Core+ 相连，让他们与计算机通讯。它的下载接口用的是MicUSB，这也是Microduino小巧的一部分。Microduino大小与一枚一元硬币差不多大。下载线与绝大多数智能手机usb数据线是一样的，方便实用。&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;
|雨滴传感器||1套||雨滴传感器模块可输出高低电平数字量，也可输出模拟电压。&lt;br /&gt;
|-&lt;br /&gt;
|白发红LED||1个||用于指示D2口的电平。&lt;br /&gt;
|-&lt;br /&gt;
| 510欧姆电阻||1个||LED限流。&lt;br /&gt;
|-&lt;br /&gt;
|USB数据连接线 ||1条||连通Microduino模块与计算机。&lt;br /&gt;
|-&lt;br /&gt;
|面包板 ||1块 ||各个元器件汇聚于此。&lt;br /&gt;
|-&lt;br /&gt;
|面包板跳线 ||1盒||电气连接线。&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
===雨滴传感器===&lt;br /&gt;
[[File: rainSensor.jpg|600px|center|thumb]]&lt;br /&gt;
当有水滴到传感器上时，雨滴传感器模块的数字量输出口可以输出低电平，模拟量输出口可以根据雨滴的多少改变输出电压，雨滴越多，电压越低。传感器检测到无水时，数字量口输出高电平，模拟量口输出电压为电源电压Vcc。模块PCB板上有两个LED灯，一个用于电源指示，另一个用于是否有雨滴指示。当雨滴指示灯亮起时代表模块的数字输出口输出为低,Microduino可以检测该数字口的高低电位作处理。还有一个电位器，调节灵敏度用，灵敏度不同，一滴水可以有两滴水的效果。还有一个电压比较器LM393芯片，电压比较器用于同向输入端与反向输入端电压的比较，输出端的高低电平逻辑响应快，但它不能实现LM358一样的线性比例运算。&lt;br /&gt;
&lt;br /&gt;
==实验原理图==&lt;br /&gt;
[[File: rainReal.jpg|600px|center|thumb]]&lt;br /&gt;
Mircroduino的A0口接雨滴模块的模拟输出。Mircroduino的D2口经510欧姆电阻接LED，LED的负极接地。&lt;br /&gt;
==程序==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
void  setup()&lt;br /&gt;
{&lt;br /&gt;
  pinMode(2,OUTPUT);&lt;br /&gt;
  Serial.begin(9600);&lt;br /&gt;
}&lt;br /&gt;
void loop()&lt;br /&gt;
{&lt;br /&gt;
  int value=analogRead(A0);&lt;br /&gt;
  Serial.println(value);&lt;br /&gt;
  if(value&amp;lt;800)//You  can change this value to fit for your app&lt;br /&gt;
    digitalWrite(2,HIGH);//Open the led&lt;br /&gt;
  else &lt;br /&gt;
    digitalWrite(2,LOW);//close&lt;br /&gt;
  delay(1000);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==调试==&lt;br /&gt;
*把程序复制到Arduino IDE中。&lt;br /&gt;
*编译程序，选择正确的板卡与相应串口。&lt;br /&gt;
*点击Upload，下载程序。&lt;br /&gt;
*在不滴水，滴入一滴，多滴入几滴水的不同环境下观察雨滴传感器PCB板上的雨滴指示灯，面包板上的红色LED，Arduino IDE中串口监视器的数值。&lt;br /&gt;
*调节PCB板上的灵敏度电位器，再重复观察。&lt;br /&gt;
[[File: rainComOutput.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
==结果==&lt;br /&gt;
我们可以根据需求来应用雨滴传感器的高低电平变化或模拟量输出。例如，根据雨滴传感器模拟口输出电压值的变化，来控制Microduino的PWM的占空比变化，进而控制电机的转速变化等。&lt;br /&gt;
&lt;br /&gt;
==视频==&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Pkj</name></author>	</entry>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=%E7%AC%AC%E4%BA%8C%E5%8D%81%E4%B8%83%E8%AF%BE--Microduino%E4%B8%8E%E4%B8%89%E7%BA%A7%E7%AE%A1%E7%9A%84%E7%81%B5%E6%B4%BB%E5%BA%94%E7%94%A8/zh&amp;diff=4106</id>
		<title>第二十七课--Microduino与三级管的灵活应用/zh</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=%E7%AC%AC%E4%BA%8C%E5%8D%81%E4%B8%83%E8%AF%BE--Microduino%E4%B8%8E%E4%B8%89%E7%BA%A7%E7%AE%A1%E7%9A%84%E7%81%B5%E6%B4%BB%E5%BA%94%E7%94%A8/zh&amp;diff=4106"/>
				<updated>2014-09-10T12:52:16Z</updated>
		
		<summary type="html">&lt;p&gt;Pkj：/* 实验原理图 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Microduino与三级管的灵活应用&lt;br /&gt;
{| style=&amp;quot;width: 800px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
==目的==&lt;br /&gt;
本教程介绍了三极管的基础知识，通过Microduino-Core的IO口驱动不同电压规格继电器的相关内容引入，加深我们对Microduino IO口的理解，为实际应用三极管电路打下基础。同时该教程也对zigbee模块CC2530的IO口进行了简单介绍。&lt;br /&gt;
==设备==&lt;br /&gt;
*'''[[Microduino-Core]]'''&lt;br /&gt;
Microduino-Core 是以 Atmel ATmega328P为核心的8位单片机开发核心板，是一个开源的、与 Arduino UNO 兼容的控制器模块。&lt;br /&gt;
&lt;br /&gt;
*'''[[Microduino-USBTTL]]'''&lt;br /&gt;
下载程序模块，可直接与 Microduino-Core 或者Microduino-Core+ 相连，让他们与计算机通讯。它的下载接口用的是MicUSB，这也是Microduino小巧的一部分。Microduino大小与一枚一元硬币差不多大。下载线与绝大多数智能手机usb数据线是一样的，方便实用。&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;
|8050NPN三极管||1个||驱动继电器。&lt;br /&gt;
|-&lt;br /&gt;
|8550PNP三极管 ||1个||驱动继电器。&lt;br /&gt;
|-&lt;br /&gt;
|1N4148二极管 ||1个||与继电器线圈并联在一起，吸收反峰电压。&lt;br /&gt;
|-&lt;br /&gt;
|5V继电器 ||1个||实验测试。&lt;br /&gt;
|-&lt;br /&gt;
|12V继电器 ||1个||实验测试。&lt;br /&gt;
|-&lt;br /&gt;
|1K电阻||若干||实验测试。&lt;br /&gt;
|-             &lt;br /&gt;
|可调直流电源 ||1个||通过调节旋钮，可以改变直流输出电压。本示例用于外接12V电源。&lt;br /&gt;
|-&lt;br /&gt;
|USB数据连接线 ||1条||连通Microduino模块与计算机。&lt;br /&gt;
|-&lt;br /&gt;
|面包板 ||1块 ||各个元器件汇聚于此。&lt;br /&gt;
|-&lt;br /&gt;
|面包板跳线 ||1盒||电气连接线。&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
===二极管===&lt;br /&gt;
二极管的神奇在于单向导电性，这是电阻电容电感这些器件所没有的特性。利用二极管的单向导电性能，可以把它用于整流，检波等电路。用数字万用表的二极管档（会滴滴响的通断测量档位）测量二极管时，如果表上有示数(不为1)，那么红表笔接的是二极管正极，黑表笔接的是负极，反之则示数不变化（为1），这明显就是单向导电嘛。实际应用电路二极管损坏时，会有断路与短路两种情况。断路时无论怎样调换红黑表笔，万用表上示数始终为1。测量已短路的二极管时万用表的蜂鸣器会滴滴响，显示值与红黑表笔直接接在一起无区别，二极管损坏会有短路情况的出现与其半导体材质有关系，我们很难见到电阻损坏后阻值为0的情况。&lt;br /&gt;
&lt;br /&gt;
===三极管===&lt;br /&gt;
三极管，见名知义，三个引脚。三个引脚分别对应E（发射极），B（基级），C（集电极）。三极管分为NPN与PNP两种类型，该示例用到的8050属于NPN型，8550属于PNP型，见下图。&lt;br /&gt;
[[File: basicTransistor.jpg|600px|center|thumb]]&lt;br /&gt;
三极管属于电流控制型器件，意思是说当基级流过一个相对小电流时（基级电流Ib），集电极会有一个较大的电流流过（集电极电流Ic），Ic与Ib的比值我们称为三极管的电流放大倍数，一般用β表示。用数字万用表测量三极管时，首先可以区分出该三级管是NPN型还是PNP型，同时三极管的基级也确定了。方法如下，红表笔连到三极管某一引脚不动，然后黑表笔分别去触碰另外的两个引脚，然后再把红表笔移动一个引脚，共计测量六次，如果黑表笔分别触碰的两个引脚均有示数（示数不为1），则该管为NPN型管，红表笔连接的那一引脚为基级。该方法是假设该管为NPN型管，假设红表笔所接为三极管的基级。如果假设该管为PNP型，则是黑表笔不动，用红表笔分别触碰另外两个引脚，观察示数，如果红表笔分别触碰的两个引脚均有示数（示数不为1），则该管为PNP型，黑表笔所接为基级。实际测量时需灵活测试，得到所需判断即可。剩下的工作就是找到集电极与发射极。对于NPN型三极管，用红表笔连接非基级的一个引脚，黑表笔连接非基级的另一引脚。然后用手指（网上也有写往手指上沾点唾沫，加唾沫的原理是让手指等效电阻小一些）当电阻，手指连接红表笔与基级，如果万用表有示数（不为1），则红表笔连接的是集电极。手指的作用是引入了基级电流，让CE之间的等效阻值减小，从而万用表可以显示出不为1的示数。对于PNP型的三极管来说，原理是一样的，还需要用手指的等效电阻来引入基级电流，只是PNP型的管子有示数时红表笔接的是发射极。&lt;br /&gt;
===继电器===&lt;br /&gt;
继电器在[http://www.microduino.cc/wiki/index.php?title=%E7%AC%AC%E4%B8%89%E5%8D%81%E4%B8%83%E8%AF%BE--Microduino_%E6%8E%A7%E5%88%B6%E7%BB%A7%E7%94%B5%E5%99%A8%E5%BC%80%E5%85%B3/zh  Microduino控制继电器开关]已做过介绍。该示例是上文的一种扩展，还用到了12V的继电器。电磁继电器（该示例中的继电器均为电磁式）分为两部分，一是线圈，一是触点。控制线圈的电压信号可以与触点接通或断开的电路没有电气上的连接，这就实现了隔离。该示例的继电器可以通断250V交流电7A的负载，继电器的外壳丝印中已给出。该示例用到的5V（左）与12V继电器：[[File: relayReal5Vand12V.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
==实验原理图==&lt;br /&gt;
[[File: 5V npn.jpg|600px|center|thumb]]&lt;br /&gt;
[[File: realConnTransistor.jpg|600px|center|thumb]]&lt;br /&gt;
如果用Microduino驱动一个5V的继电器，应该不麻烦。选择Microduino的D2脚，接一个1K的电阻到8050的基级，按上图连接硬件即可。&lt;br /&gt;
&lt;br /&gt;
'''为什么选择1K的电阻呢？'''&lt;br /&gt;
因为对于NPN型的硅三极管来说，BE之间的导通压降为0.7V左右，当D2口输出低电平时，BE结没有电流流过，三极管处于截止状态，继电器自然而然的没有吸合。当D2输出高电平时，D2口的输出电压接近于Microduino的电源电压5V，这5V的电压减去0.7V的BE结压降等于4.3V左右，那么8050的基级电流Ib=4.3V/1K=4.3mA，又因为8050的集电极电流Ic=β*Ib，普通的小功率三极管例如8050,8550,9014,9015,这些三级管的β值大概有100左右，这里我们保守估计，选择β=50计算，Ic=β*Ib=50*4.3mA=215mA。实测笔者手头5V继电器的线圈电阻为72欧姆，（12V继电器线圈的电阻实测为400欧姆）。那么5V继电器线圈两端的电压等于Ic*72=15.48V，该值已大于电源电压，所以可以反推出这时的三极管已经进入饱和状态。如果把这个1K的电阻换为470欧姆或是2K，对于驱动该继电器或是一些小型的蜂鸣器来说，基本没有什么区别。如果不接这个1K的限流电阻，那么8050的BE结（该BE结可以理解为一个PN结的二极管，二极管的伏安特性曲线在电压高于0.7V时电流会急剧上升）电流会很高，这可能会导致8050的烧毁或Microduino的IO口损坏。再退一步，即使什么也没损坏，那么Microduino输出高电平，而读取该点电压却读到低电平，属于设计缺陷。&lt;br /&gt;
&lt;br /&gt;
'''1N4148二级管有什么作用呢?'''&lt;br /&gt;
当三极管由导通到截止，继电器线圈会突然掉电，此时线圈中存储的磁场能无处释放，会产生一个很高的反压（自感电动势），该反压为上负下正，这时的线圈我们可以理解为一个电池，电池内部的电流方向是从负极流向正极。恰好，&lt;br /&gt;
该二极管提供了这么一个通道，保护了三级管的集电极不再承受该反压值。&lt;br /&gt;
&lt;br /&gt;
'''如果不接三极管，直接接继电器是否可行？'''   &lt;br /&gt;
不行。因为I=V/R=5/72=69.4mA, 该电流值已超过arduino官网提供IO口输出限流，参考：http://arduino.cc/en/Main/ArduinoBoardUno  即使没有超过官网提供的电流值，加入三极管放大这一隔离依旧是一个很好设计方案，因为刚才提到的二极管并不是一个理想器件，当线圈关断时的自感电动势可能会对Microduino的IO口产生影响。&lt;br /&gt;
&lt;br /&gt;
'''驱动5V的继电器，一个8550是否可以搞定？'''&lt;br /&gt;
可以。更改8050的VCC与GND，便可以接出PNP型的电路，控制逻辑与NPN型三极管相反。Arduino IDE编程时需注意。如下图&lt;br /&gt;
[[File: 5V PNP.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
'''如果把该5V继电器改为12V的继电器，一个8050是否可以搞定'''？&lt;br /&gt;
可以，与接5V继电器无区别。如下图。&lt;br /&gt;
[[File: 12V NPN.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''驱动12V的继电器，一个8550是否可以实现？'''&lt;br /&gt;
不行。因为无论PNP型的管子怎么接，Microduino的IO口都控制不了继电器的关断。如下图。&lt;br /&gt;
[[File: 12V NG.jpg|600px|center|thumb]]&lt;br /&gt;
按照该图连接硬件，并不能控制继电器。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''驱动12V的继电器，需用到PNP型的三极管，如何实现？'''&lt;br /&gt;
需要两个三极管。如下图。&lt;br /&gt;
[[File: pnp-npn.jpg|600px|center|thumb]]&lt;br /&gt;
如果用Microduino驱动12V的继电器，加入此PNP三极管确实属于画蛇添足。但是当我们在应用Zigbee模块CC2530驱动12V继电器时，该电路便显示出了合理性。单片机上电瞬间到PC指针可以正常运转需要一个时间。参考：[[File: 328ResetDelay.jpg|600px|center|thumb]] &lt;br /&gt;
再对比一下Microduino IO口与CC2530的IO口复位期间以及复位后的初始状态。&lt;br /&gt;
参考：[[File: 328IOstatus.jpg|600px|center|thumb]]&lt;br /&gt;
      [[File: 2530resetStatus.jpg|600px|center|thumb]]&lt;br /&gt;
由对比可知，Microduino的IO口复位期间以及复位后均处于高阻状态，上拉电阻未启用。CC2530在复位期间以及复位后的初始状态均为带上拉的输入。尽管上拉是弱上拉，但是此上拉电阻拉出电流经三极管放大后依旧会使继电器接通（如果直接接一个NPN管），CC2530的编程只能改变复位后IO口的状态，复位期间的状态则完全由硬件决定。因此采用该电路CC2530模块可以在复位期间精确的控制12V继电器的状态。（备注：2530是3.3V供电。）                       &lt;br /&gt;
&lt;br /&gt;
328文档下载链接：http://www.atmel.com/Images/doc8161.pdf&lt;br /&gt;
&lt;br /&gt;
2530文档下载：'''[[File:2530.pdf]]'''&lt;br /&gt;
&lt;br /&gt;
==程序==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
void setup()&lt;br /&gt;
 {&lt;br /&gt;
   pinMode(2,OUTPUT);&lt;br /&gt;
   digitalWrite(2,LOW);&lt;br /&gt;
   delay(6000);&lt;br /&gt;
 }&lt;br /&gt;
 void loop()&lt;br /&gt;
 {&lt;br /&gt;
   digitalWrite(2,HIGH);&lt;br /&gt;
   delay(2000);&lt;br /&gt;
   digitalWrite(2,LOW);&lt;br /&gt;
   delay(2000);&lt;br /&gt;
 }&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==调试==&lt;br /&gt;
*按照原理图搭建硬件电路，注意二极管的方向，以及三级管的EBC引脚序列。&lt;br /&gt;
*确认硬件无误后，接通Microduino。打开编译器，把程序复制到Arduino IDE中。&lt;br /&gt;
*编译程序，选择正确的板卡与相应串口。&lt;br /&gt;
*点击Upload，下载后可根据继电器吸合的声音判断我们的电路设计是否合理。&lt;br /&gt;
&lt;br /&gt;
==结果==&lt;br /&gt;
用Microduino控制5V继电器，8050或8550任何一个三极管均可实现功能。如果需要控制12V继电器，如果采用一个8050可以实现，如果采用8550，则还需加入一级三级管电路。对已CC2530模块来说，如果复位期间也要精准控制IO口的输出状态，需加入PNP型三级管。&lt;br /&gt;
==视频==&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Pkj</name></author>	</entry>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=Microduino_%E9%A3%8E%E9%80%9F%E4%BC%A0%E6%84%9F%E5%99%A8%E2%80%94%E9%A3%8E%E9%80%9F%E5%80%BC%E4%B8%8A%E4%BC%A0%E5%88%B0yeelink/zh&amp;diff=4105</id>
		<title>Microduino 风速传感器—风速值上传到yeelink/zh</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=Microduino_%E9%A3%8E%E9%80%9F%E4%BC%A0%E6%84%9F%E5%99%A8%E2%80%94%E9%A3%8E%E9%80%9F%E5%80%BC%E4%B8%8A%E4%BC%A0%E5%88%B0yeelink/zh&amp;diff=4105"/>
				<updated>2014-09-10T12:39:47Z</updated>
		
		<summary type="html">&lt;p&gt;Pkj：&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Microduino与风速传感器—风速值上传到yeelink&lt;br /&gt;
{| style=&amp;quot;width: 800px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
==目的==&lt;br /&gt;
本教程通过Microduino读取风速传感器的信息，使读者了解风速传感器，掌握Microduino使用模拟输入口的编程方法。&lt;br /&gt;
==设备==&lt;br /&gt;
*'''[[Microduino-Core]]'''&lt;br /&gt;
*'''[[Microduino-USBTTL]]'''&lt;br /&gt;
*'''[[Microduino-RJ45]]'''&lt;br /&gt;
*'''[[Microduino-ENC28J60]]'''&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;
|风速传感器 ||1个 ||用于监测风速，输出信号为0-5V。&lt;br /&gt;
|-&lt;br /&gt;
|24V 1A开关电源||1个 ||风速传感器供电用，本示例采用明纬牌开关电源。&lt;br /&gt;
|-&lt;br /&gt;
|USB数据连接线 ||1条||连通Microduino模块与计算机。&lt;br /&gt;
|-&lt;br /&gt;
|面包板 ||1块 ||各个元器件汇聚于此。&lt;br /&gt;
|-&lt;br /&gt;
|面包板跳线 ||1盒||电气连接线。&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==实验原理图==&lt;br /&gt;
&lt;br /&gt;
==程序==&lt;br /&gt;
&lt;br /&gt;
https://github.com/Microduino/Microduino_Tutorials/tree/master/Microduino_Advanced/Microduino_wind_yeelink&lt;br /&gt;
&lt;br /&gt;
==调试==&lt;br /&gt;
*把风速仪的模拟量输出端与Microduino的A0连接在一起，地连接在一起。&lt;br /&gt;
*把程序刷写到Microduino-core中。&lt;br /&gt;
*把Microduino-RJ45通过网线接入路由器LAN口。&lt;br /&gt;
*登录yeelink网站，进入首页（见下图），首页会有yeelink公司出品的灯光产品(yeelight)资讯，自然而然，yeelight的灯光产品是可以通过yeelink远程控制的(笔者测试过zigbee控制的yeelight)。   http://www.yeelink.net/&lt;br /&gt;
[[File:firstPage.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*在yeelink首页单击登录，输入已注册的用户名与密码，（没注册的朋友需要先注册下，注册后需邮箱激活，很简单的）。登录界面见下图。&lt;br /&gt;
[[File: login pic.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*登录后点击用户中心，可进入自己账户的管理首页。API Key文本框中数据是我们注册用户时yeelink服务器分配给用户的ID，也是在Microduino程序中需要用到的。由下图可以看到，笔者已添加一个名为windSpeed的设备，设备ID号为13892（该数值也是microduino程序中需要用到滴）。还可以点击添加新设备继续添加设备。由此可以看出，一个API Key也就是对应一个账户，一个账户下面可以有N多个设备，区别是哪一个设备需要根据设备号（Device ID）。&lt;br /&gt;
[[File: userCenter.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*点击已添加的设备名字，可进入设备管理页面。见下图。点击编辑可对该设备名字以及描述等信息进行编辑。&lt;br /&gt;
[[File: device manage.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*点击添加传感器，可在该DeviceID下面添加传感器。见下图。笔者添加了一个名为windSensor，类型为数值型的传感器。&lt;br /&gt;
[[File: add sensor.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*保存后获得的传感器号（SensorID）为23058（该数值也是Microduino程序中需要用到滴）。&lt;br /&gt;
[[File: add sensor finish.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*如果这时点击我的设备。会发现传感器状态：的后面多出了一个小方块，每个小方块都代表了该设备下面的一个传感器。也就是说一个设备下面可以有N多个传感器，区别是哪一个传感器需要根据传感器号（Sensor ID）。&lt;br /&gt;
[[File: find sensor.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*在已添加好的传感器页面下，可观察风速传感器传过来的风速值。点击打开图表可观察由时间（横轴）与数值（纵轴）绘制而成的折线图。见下图。（图表中三个台阶分别是对应3.3V，单节干电池，GND 接入A0，用于模拟风速传感器，实测风速传感器的输出可参考[http://www.microduino.cc/wiki/index.php?title=%E7%AC%AC%E4%B8%89%E5%8D%81%E4%BA%8C%E8%AF%BE--Microduino%E4%B8%8E%E9%A3%8E%E9%80%9F%E4%BC%A0%E6%84%9F%E5%99%A8/zh  基础教程 Microduino与风速传感器 ]&lt;br /&gt;
[[File: windFinish.jpg|600px|center|thumb]]&lt;br /&gt;
*在yeelink网站首页可下载安卓与苹果的客户端程序，手机客户端程序也可非常方便的获取数据，手机只需输入一次用户名密码，以后再登录时直接点击我的Yeelink便可方便的进入了。试试吧……&lt;br /&gt;
&lt;br /&gt;
==结果==&lt;br /&gt;
Yeelink中的数据与相关图表有变化，说明上传成功。反向控制程序读者可参考[https://github.com/Microduino/Microduino_Tutorials/blob/master/Microduino_Sensor/yeelink_TSL2561/yeelink_TSL2561.ino  cb_debug函数]仿写。该文档笔者写作时间为2014年9月3日，yeelink的界面对比以前版本来说更加美观，数据图表显示也更加实用。&lt;br /&gt;
&lt;br /&gt;
==视频==&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Pkj</name></author>	</entry>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=%E6%96%87%E4%BB%B6:WindFritz.jpg&amp;diff=4104</id>
		<title>文件:WindFritz.jpg</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=%E6%96%87%E4%BB%B6:WindFritz.jpg&amp;diff=4104"/>
				<updated>2014-09-10T12:38:23Z</updated>
		
		<summary type="html">&lt;p&gt;Pkj：&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Pkj</name></author>	</entry>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=Lesson_37--Microduino_Controls_Relay&amp;diff=4103</id>
		<title>Lesson 37--Microduino Controls Relay</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=Lesson_37--Microduino_Controls_Relay&amp;diff=4103"/>
				<updated>2014-09-10T03:13:54Z</updated>
		
		<summary type="html">&lt;p&gt;Pkj：Created page with &amp;quot;{{Language|第三十七课--Microduino 控制继电器开关}} {| style=&amp;quot;width: 800px;&amp;quot; |- | ==Objective== This tutorial will teach you how to use the relay to control a relat...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Language|第三十七课--Microduino 控制继电器开关}}&lt;br /&gt;
{| style=&amp;quot;width: 800px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
==Objective==&lt;br /&gt;
This tutorial will teach you how to use the relay to control a relatively large current electrical appliances (this experiment will use a driver motor unloaded from the old VCD)&lt;br /&gt;
&lt;br /&gt;
==Equipment==&lt;br /&gt;
*'''[[Microduino-Core]]'''&lt;br /&gt;
*'''[[Microduino-FT232R]]'''&lt;br /&gt;
*Other equipment&lt;br /&gt;
**Breadboard Jumper            one box   &lt;br /&gt;
**Breadboard  	               one piece  &lt;br /&gt;
**DC electrical appliance      one &lt;br /&gt;
**Button                       one&lt;br /&gt;
**NPN transistor              one&lt;br /&gt;
**10k registor                 one&lt;br /&gt;
**1k  registor                 one&lt;br /&gt;
**Diode                        one&lt;br /&gt;
**Battery box                  one&lt;br /&gt;
**USB cable                    one&lt;br /&gt;
&lt;br /&gt;
'''Relay Introduction：'''&lt;br /&gt;
     Relay is an electronic control device, it has a control system (also called input circuit) and controled system (also called the output circuit), usually used in automatic control circuit. It is actually a kind of &amp;quot;automatic switch&amp;quot; which uses the less current to control large current. In the circuit, it plays an automatic adjustment, safety protection, conversion circuit function.&lt;br /&gt;
　　 The principle of relay is taht when the input (such as voltage, current, temperature, etc.) achieve specified value, the controlled circuit will be conducted or broken. It can be divided into electric parameters (such as current, voltage, frequency, power, etc.) relay and non-electric parameters (such as temperature, pressure, speed, etc.) relay. It has characters that fast, work stability, long service life, small volume, etc. Widely used in power protection, automation, motor, remote control, measurement and communication device etc.&lt;br /&gt;
　　 &lt;br /&gt;
[[File:第三十七课-继电器.jpg|600px|center|thumb]]&lt;br /&gt;
Most of the relay as shown above, there are five pins or 6 pins. This tutorial use the type that has five pins. The difference between them lies in the 6 pins relay has two com pins, you can use any of them freely, and the relay with 5 pins only has on com pin. The following is the relay pin introduction:&lt;br /&gt;
&lt;br /&gt;
As shown above in the middle of the yellow diagram, put the bottom pin of relay toward you.&lt;br /&gt;
&lt;br /&gt;
NC: Normal Closed&lt;br /&gt;
&lt;br /&gt;
NO: Normal Open&lt;br /&gt;
&lt;br /&gt;
COM: Common&lt;br /&gt;
&lt;br /&gt;
==Schematic==&lt;br /&gt;
[[File:第三十七课-Microduino控制继电器开关原理图.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
&lt;br /&gt;
*Relay coil connects to +5V, on the other side of the coil (blue line) connects to the collector of the NPN transistor&lt;br /&gt;
&lt;br /&gt;
*The rectifier diode connected in parallel to the coil, pay attention to the rectifier diode's directivity, marking end toward to the power (in this case, if there is no rectifier diode, instead of a light emitting diode (led))&lt;br /&gt;
&lt;br /&gt;
*NPN transistor Emitter connects to GND, then the Base series of a 1k resistor connects to Microduino pin 13&lt;br /&gt;
&lt;br /&gt;
*Motor anode (red line) connects to relay's NO pin, and the cathode (black line) connects to GND&lt;br /&gt;
&lt;br /&gt;
*Use a relatively large power, the anode connects to the COM of relay (this tutorial uses two 18650 battery series in which the output voltage is 7.4 V)&lt;br /&gt;
&lt;br /&gt;
*Finally, the pin of button connects to  +5 v, another pin connects to pin2 and pick up a 10k resistor to GND, that is done.&lt;br /&gt;
&lt;br /&gt;
==Program==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
/*&lt;br /&gt;
 * Use relay to contorl motor&lt;br /&gt;
 */&lt;br /&gt;
 &lt;br /&gt;
const int buttonPin = 2;                 // pushbutton&lt;br /&gt;
const int relayPin = 13;                 // Relay&lt;br /&gt;
int relayState = 0;                      // relay state&lt;br /&gt;
 &lt;br /&gt;
void setup()&lt;br /&gt;
{&lt;br /&gt;
  Serial.begin(9600);                     // Enable Serial port, set baud rate 9600 bps&lt;br /&gt;
   &lt;br /&gt;
  pinMode(buttonPin, INPUT);             // Set buttonPin to INPUT&lt;br /&gt;
  pinMode(relayPin, OUTPUT);             // Set relayPin to OUTPUT    &lt;br /&gt;
}&lt;br /&gt;
 &lt;br /&gt;
void switchRelay()&lt;br /&gt;
{&lt;br /&gt;
  if (relayState == 0)                        &lt;br /&gt;
    relayState = 1;                      // Set relay state to ON&lt;br /&gt;
  else&lt;br /&gt;
    relayState = 0;                      // Set relay state to OFF     &lt;br /&gt;
       &lt;br /&gt;
  digitalWrite(relayPin, relayState);    // Switch the button&lt;br /&gt;
 &lt;br /&gt;
  Serial.print(&amp;quot;Relay status: &amp;quot;);        // Serial output relay state&lt;br /&gt;
  Serial.println(relayState);&lt;br /&gt;
}&lt;br /&gt;
 &lt;br /&gt;
void loop()&lt;br /&gt;
{&lt;br /&gt;
  int buttonState;&lt;br /&gt;
   &lt;br /&gt;
  // Read the button state&lt;br /&gt;
  buttonState = digitalRead(buttonPin);&lt;br /&gt;
 &lt;br /&gt;
  // Check if the button was pressed&lt;br /&gt;
  // If yes, buttonState is HIGH&lt;br /&gt;
  if (buttonState == HIGH) {      &lt;br /&gt;
     switchRelay();                      // Switch relay &lt;br /&gt;
     delay(500);                         // Delay 0.5s&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Debug==&lt;br /&gt;
Step 1：Copy the code to IDE and compile it&lt;br /&gt;
&lt;br /&gt;
Step 2：Set up circuit, as follows: &lt;br /&gt;
[[File:第三十七课-Microduino控制继电器开关连接图.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
Step 3: Run program&lt;br /&gt;
&lt;br /&gt;
Step 4: Press button, check if the motor can rotate. &lt;br /&gt;
&lt;br /&gt;
==Result==&lt;br /&gt;
Press the button, relay is in Normal Open(NO) state, the motor rotates, then press button again, relay switch to Normal Closed(NC) state, then motor stops.&lt;br /&gt;
==Video==&lt;br /&gt;
http://v.youku.com/v_show/id_XNjc5OTAyNDky.html&lt;/div&gt;</summary>
		<author><name>Pkj</name></author>	</entry>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=AVR_Core:_Project_Tutorials&amp;diff=4102</id>
		<title>AVR Core: Project Tutorials</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=AVR_Core:_Project_Tutorials&amp;diff=4102"/>
				<updated>2014-09-10T03:13:44Z</updated>
		
		<summary type="html">&lt;p&gt;Pkj：/* Microduino Intermediate Tutorial */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Microduino Basic Tutorial==&lt;br /&gt;
* '''[[Lesson 1--LED flashes experiments (using bread board)]]'''&lt;br /&gt;
* '''[[Lesson 2--Multiple led flashes experiments]]'''&lt;br /&gt;
* '''[[Lesson 3--Button switch control LED]]'''&lt;br /&gt;
* '''[[Lesson 4--The button PWM control of LED brightness]]'''&lt;br /&gt;
* '''[[Lesson 5--The potentiometer PWM control of LED brightness]]'''&lt;br /&gt;
* '''[[Lesson 6--The Program PWM control of LED brightness --Breathing light]]'''&lt;br /&gt;
* '''[[Lesson 7--Control the color of RGB LED]]'''&lt;br /&gt;
* '''[[Lesson 8--Pulse timing (check how long you hold down the switch)]]'''&lt;br /&gt;
* '''[[Lesson 9--Microduino used as a multimeter with the range of 0 to 5 volts]]'''&lt;br /&gt;
* '''[[Lesson 10--The first pegboard experiments (using electric iron)]]'''&lt;br /&gt;
* '''[[Lesson 11--Microduino &amp;quot;The lamp of Da Vinci（light-sensitive experiments）&amp;quot;]]'''&lt;br /&gt;
* '''[[Lesson 12--Microduino &amp;quot;Light indicator&amp;quot;]]'''&lt;br /&gt;
* '''[[Lesson 13--Microduino &amp;quot;Light alarm (DIY a phototransistor by yourself)&amp;quot;]]'''&lt;br /&gt;
* '''[[Lesson 14--Microduino &amp;quot;A simple thermometer&amp;quot;]]'''&lt;br /&gt;
* '''[[Lesson 15--Microduino &amp;quot;Make a circuit of temperature-sensitive cup &amp;quot;]]'''&lt;br /&gt;
* '''[[Lesson 16--Microduino &amp;quot;Fingertip switch (transistor trigger)&amp;quot;]]'''&lt;br /&gt;
* '''[[Lesson 17--Microduino &amp;quot;Buzzer alarm&amp;quot;]]'''&lt;br /&gt;
* '''[[Lesson 18--Microduino &amp;quot;Make a flood water level alarm model&amp;quot;]]'''&lt;br /&gt;
* '''[[Lesson 19--Microduino &amp;quot;Sampling ADC of internal reference source&amp;quot;]]'''&lt;br /&gt;
* '''[[Lesson 20--Microduino &amp;quot;Use Interrupt&amp;quot;]]'''&lt;br /&gt;
* '''[[Lesson 21--Microduino &amp;quot;Use Timer Interrupt&amp;quot;]]'''&lt;br /&gt;
* '''[[Lesson 22--Microduino &amp;quot;Serial port debugging&amp;quot;]]'''&lt;br /&gt;
* '''[[Lesson 23--Microduino &amp;quot;Serial port receives string and translated into an array&amp;quot;]]'''&lt;br /&gt;
* '''[[Lesson 24--Microduino &amp;amp; Operational Amplifier--Noninverting Scaling Operation]]'''&lt;br /&gt;
* '''[[Lesson 25--Microduino &amp;amp; Operational Amplifier-- Inverting Scaling Operation]]'''&lt;br /&gt;
* '''[[Lesson 26--Microduino &amp;amp; Operational Amplifier--Differential Ratio Operation]]'''&lt;br /&gt;
* '''[[Lesson 27--Microduino &amp;amp; Flexible Application of Triode]]'''&lt;br /&gt;
* '''[[Lesson 28--Microduino &amp;amp; Raindrop Sensor]]'''&lt;br /&gt;
* '''[[Lesson 29--Two Generative Styles of Microduino PWM &amp;amp; Waveform Measurement]]'''&lt;br /&gt;
* '''[[Lesson 30--Microduino-made DC V-A Meter]]'''&lt;br /&gt;
* '''[[Lesson 31--Microduino &amp;amp; Buck Circuit]]'''&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;width: 800px;&amp;quot;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; |&lt;br /&gt;
&lt;br /&gt;
==Microduino Intermediate Tutorial==&lt;br /&gt;
* '''[[Lesson 1--Microduino Resistor Meter]]'''			&lt;br /&gt;
* '''[[Lesson 2--Microduino OLED Usage]]'''&lt;br /&gt;
* '''[[Lesson 3--Microduino Digital voltmeter]]'''&lt;br /&gt;
* '''[[Lesson 4--Microduino Phone Dialer]]'''&lt;br /&gt;
* '''[[Lesson 5--Microduino Simulates Computer Keyboard]]'''&lt;br /&gt;
* '''[[Lesson 6--Microduino Simple Frequency Meter (serial monitor)]]'''&lt;br /&gt;
* '''[[Lesson 7--Microduino Drive servo (no library)]]'''&lt;br /&gt;
* '''[[Lesson 8--Microduino Infrared Transmitting and Receiving]]'''&lt;br /&gt;
* '''[[Lesson 9--Microduino Infrared Transcoding]]'''&lt;br /&gt;
* '''[[Lesson 10--Microduino Ultrasonic Ranging]]'''&lt;br /&gt;
* '''[[Lesson 11--Microduino Infrared Controls Servo Angle]]'''&lt;br /&gt;
* '''[[Lesson 12--Microduino 74HC595 Cascade and Serial input Parallel ouput Data]]'''&lt;br /&gt;
* '''[[Lesson 13--Microduino Single Digital Display with A Point]]'''&lt;br /&gt;
* '''[[Lesson 14--Microduino Digital Tube Experiment 1 - Digital Dice]]'''&lt;br /&gt;
* '''[[Lesson 15--Microduino Digital Tube Experiment 2 - Control Potentiometer]]'''&lt;br /&gt;
* '''[[Lesson 16--Microduino Digital Tube Experiment 3 - Display Infrared Remote Control Button Value]]'''&lt;br /&gt;
* '''[[Lesson 17--Microduino Button Control Digital Tube]]'''			&lt;br /&gt;
* '''[[Lesson 18--Microduino 4-way Responder]]'''			&lt;br /&gt;
* '''[[Lesson 19--Microduino Two Digital Tube Static Display]]'''			&lt;br /&gt;
* '''[[Lesson 20--Microduino Two Digital Tube Countdown Display]]'''			&lt;br /&gt;
* '''[[Lesson 21--Microduino Four Digital Tube Static Display]]'''			&lt;br /&gt;
* '''[[Lesson 22--Microduino Four Digital Tube Dynamic Display]]'''			&lt;br /&gt;
* '''[[Lesson 23--Microduino Digital Tube Clock]]'''&lt;br /&gt;
* '''[[Lesson 24--Microduino Digital Tube Thermometer]]'''			&lt;br /&gt;
* '''[[Lesson 25--Microduino 5*7 Lattice Static Display]]'''			&lt;br /&gt;
* '''[[Lesson 26--Microduino 5*7 Lattice Dynamic Display]]'''	&lt;br /&gt;
* '''[[Lesson 27--Microduino 8*8 Lattice Static Display]]'''			&lt;br /&gt;
* '''[[Lesson 28--Microduino 8*8 Lattice Transverse Move Display]]'''			&lt;br /&gt;
* '''[[Lesson 29--Microduino 8*8 Lattice Longitudinal Move Display]]'''			&lt;br /&gt;
* '''[[Lesson 30--Microduino 8*8 Lattice Animated Emoticon]]'''&lt;br /&gt;
* '''[[Lesson 31--Microduino 16*16 Lattice Character Static Display]]'''			&lt;br /&gt;
* '''[[Lesson 32--Microduino 16*16 Lattice Character Transverse Move Display]]'''			&lt;br /&gt;
* '''[[Lesson 33--Microduino 16*16 Lattice Character Longitudinal Move Display]]'''			&lt;br /&gt;
* '''[[Lesson 34--Microduino 16*16 Lattice Character Animated Emoticon]]'''&lt;br /&gt;
* '''[[Lesson 35--Microduino EEPROM Reading and Writing Experiment]]'''		&lt;br /&gt;
* '''[[Lesson 36--Microduino Infrared Remote Control Changes EEPROM values]]'''&lt;br /&gt;
* '''[[Lesson 37--Microduino Controls Relay]]'''&lt;br /&gt;
* '''[[Lesson 38--Microduino Stepper Motor Drive]]'''			&lt;br /&gt;
* '''[[Lesson 39--Microduino Stepper Motor Control steps]]'''			&lt;br /&gt;
* '''[[Lesson 40--Microduino DC Motor Drive (Potentiometer PWM control speed)]]'''			&lt;br /&gt;
* '''[[Lesson 41--Microduino Dc Motor Rotation Control]]'''		&lt;br /&gt;
* '''[[Lesson 42--Microduino Motor Speed Measurement]]'''		&lt;br /&gt;
* '''[[Lesson 43--Microduino Rotary encoder]]'''&lt;br /&gt;
* '''[[Lesson 44--Microduino Matrix keyboard]]'''&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;width: 800px;&amp;quot;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; |&lt;br /&gt;
&lt;br /&gt;
==Microduino Sensor Tutorial==&lt;br /&gt;
&lt;br /&gt;
* '''[[Microduino Digital tube thermometer(LM35, DS18b20)]]'''			&lt;br /&gt;
* '''[[Microduino OLED thermometer(LM35, DS18b20)]]'''&lt;br /&gt;
* '''[[Microduino Digital tube temperature and humidity meter(DHT11, SHT10, AM2321)]]'''&lt;br /&gt;
* '''[[Microduino OLED temperature and humidity meter(DHT11, SHT10, AM2321)]]'''&lt;br /&gt;
* '''[[Microduino Light indicator-Digital tube(TSL2561)]]'''&lt;br /&gt;
* '''[[Microduino Light indicator-OLED(TSL2561)]]'''&lt;br /&gt;
* '''[[Microduino Wireless node temperature acquisition-OLED(LM35, DS18b20, DHT11, SHT10, AM2321)]]'''&lt;br /&gt;
* '''[[Microduino Update temperature and humidity to Yeelink(LM35, DS18b20, DHT11, SHT10, AM2321)]]'''&lt;br /&gt;
* '''[[Microduino Update light intensity to Yeeklink(TSL2561)]]'''&lt;br /&gt;
* '''[[Microduino Update light intensity to Yeeklink and post tweet(LM35, DS18b20, DHT11, SHT10, AM2321)]]'''&lt;br /&gt;
* '''[[Microduino MPU6050 calculate angle(Microduino 10dof)]]'''&lt;br /&gt;
* '''[[Microduino Read the pressure(Microduino 10dof)]]'''&lt;br /&gt;
* '''[[Microduino Read magnetic field intensity(Microduino 10dof)/zh]]'''&lt;br /&gt;
* '''[[microduio  Single dimension PID adjustment]]'''&lt;br /&gt;
* '''[[Microduino Ultrasonic ranging-OLED display distance]]'''&lt;br /&gt;
* '''[[Microduino Ultrasonic anti-theft]]'''&lt;br /&gt;
* '''[[Microduino Heart rate sensor usage]]'''&lt;br /&gt;
* '''[[Microduino Hall sensor usage]]'''&lt;br /&gt;
* '''[[Microduino Hall sensor to measure DC motor RPM]]'''&lt;br /&gt;
* '''[[Microduino Rain sensor usage]]'''&lt;br /&gt;
* '''[[Microduino Dry reed pipe usage]]'''&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;width: 800px;&amp;quot;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; |&lt;br /&gt;
&lt;br /&gt;
==Microduino Advanced Tutorial==&lt;br /&gt;
&lt;br /&gt;
* '''[[Microduino Electronic welcome device]]'''&lt;br /&gt;
* '''[[Microduino Snake game]]'''&lt;br /&gt;
* '''[[Microduino Pulse measuring instrument]]'''&lt;br /&gt;
* '''[[Microduino nRF24 set up network and NFC unlock computer]]'''&lt;br /&gt;
* '''[[Microduino Rotary encoder chooses the mobile number and sends message]]'''&lt;br /&gt;
* '''[[Microduino Number Selecting and Text Messaging through the Key]]'''&lt;br /&gt;
* '''[[Microduino Rotary encoder controls computer]]'''&lt;br /&gt;
* '''[[Microduino RGB LED Matrix displayer]]'''&lt;br /&gt;
* '''[[Microduino Video output]]'''&lt;br /&gt;
* '''[[Microduino Lattice clock]]'''&lt;br /&gt;
* '''[[Microduino Mobile Bluetooth Controls RGB Lights]]'''&lt;br /&gt;
* '''[[Microduino LED shake stick]]'''&lt;br /&gt;
* '''[[Microduino NFC combination lock]]'''&lt;br /&gt;
* '''[[Microduino Keyboard matrixcombination lock]]'''&lt;br /&gt;
* '''[[Microduino Time-lapse photography and high-speed photography]]'''&lt;br /&gt;
* '''[[Microduino Smart garden]]'''&lt;br /&gt;
* '''[[Microduino Network game console]]'''&lt;br /&gt;
* '''[[Microduino Wireless mouse]]'''&lt;br /&gt;
* '''[[Microduino calculator]]'''&lt;br /&gt;
* '''[[Microduino Simulate the elevator]]'''&lt;br /&gt;
* '''[[Microduino Simulate traffic light]]'''&lt;br /&gt;
* '''[[Microduino Smart Dock for laptop]]'''&lt;br /&gt;
* '''[[Microduino Wireless answer device]]'''&lt;br /&gt;
* '''[[Microduino Ward call system]]'''&lt;br /&gt;
* '''[[Microduino Bank queuing station system]]'''&lt;br /&gt;
* '''[[Microduino Taximeter]]'''&lt;br /&gt;
* '''[[Microduino Electronic clock]]'''&lt;br /&gt;
* '''[[Microduino Flowmete]]'''&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;width: 800px;&amp;quot;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; |&lt;br /&gt;
&lt;br /&gt;
==Microduino Network==&lt;br /&gt;
* '''[[Microduino ENC Network (1)]]'''&lt;br /&gt;
* '''[[Microduino ENC Network (2)]]'''&lt;br /&gt;
* '''[[Microduino ENC Network (3)]]'''&lt;br /&gt;
* '''[[Microduino ENC Network (4)]]'''&lt;br /&gt;
* '''[[Microduino ENC Network (5)]]'''&lt;br /&gt;
* '''[[Microduino ENC Network (6)]]'''&lt;br /&gt;
* '''[[Microduino ENC Network (7)]]'''&lt;br /&gt;
* '''[[Microduino ENC Network (8)]]'''&lt;br /&gt;
* '''[[Microduino ENC Network (9)——Send a bigger image]]'''&lt;br /&gt;
* '''[[Microduino ENC Network (10)——How to Change the Listening Port of the Web Server]]'''&lt;br /&gt;
* '''[[Microduino ENC Network (11)——Connect the Microduino to the Wi-fi network using TL-WR702N]]'''&lt;br /&gt;
* '''[[Microduino ENC Network (12)——Use NTP to get Internet time]]'''&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;width: 800px;&amp;quot;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; |&lt;br /&gt;
&lt;br /&gt;
==Microduino KIT Example Tutorial==&lt;br /&gt;
&lt;br /&gt;
* '''[[Microduino NRF communication-201KIT]]'''&lt;br /&gt;
* '''[[Microduino BLE_IOS-202KIT]]'''&lt;br /&gt;
* '''[[Microduino BLE_Android-202KIT]]'''&lt;br /&gt;
* '''[[Microduino CC3000 get weather information by internet -203KIT]]'''&lt;br /&gt;
* '''[[Microduino LM4863 Music player -301KIT]]'''&lt;br /&gt;
* '''[[Microduino Enc Wired network experiment -302KIT]]'''&lt;br /&gt;
* '''[[Microduino NRF Wireless Gateway based on Enc Gateway -304 KIT]]'''&lt;br /&gt;
* '''[[Microduino GPS recorder-306KIT]]'''&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;width: 800px;&amp;quot;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; |&lt;br /&gt;
==Microduino  Processing Tutorial==&lt;br /&gt;
===Basic Tutorial===&lt;br /&gt;
*'''[[Setup Processing IDE]]'''&lt;br /&gt;
* '''[[Lighten Led]]'''&lt;br /&gt;
* '''[[Control Led Brightness]]'''&lt;br /&gt;
* '''[[Various Display of Led Lights]]'''&lt;br /&gt;
* '''[[RGB light]]'''&lt;br /&gt;
* '''[[Somatosensory interaction - Potentiometer]]'''&lt;br /&gt;
* '''[[Somatosensory interaction - Rotary encoder]]'''&lt;br /&gt;
* '''[[Somatosensory interaction - Microduino V1]]'''&lt;br /&gt;
* '''[[Somatosensory interaction - An arrow through a heart]]'''&lt;br /&gt;
* '''[[Somatosensory interaction - ultrasound]]'''&lt;br /&gt;
* '''[[Temperature and humidity data collection]]'''&lt;br /&gt;
* '''[[Light intensity data collection]]'''&lt;br /&gt;
* '''[[Soil moisture data collection]]'''&lt;br /&gt;
* '''[[Atmospheric pressure data collection]]'''&lt;br /&gt;
* '''[[Gyroscope]]'''&lt;br /&gt;
* '''[[Multimeter Simulation]]'''&lt;br /&gt;
* '''[[Resistance meter]]'''&lt;br /&gt;
&lt;br /&gt;
===Intermediate Tutorial===&lt;br /&gt;
* '''[[Compass]]'''&lt;br /&gt;
* '''[[DC Motor Control]]'''&lt;br /&gt;
* '''[[Stepper Motor Control]]'''&lt;br /&gt;
*'''[[Servo Control]]'''&lt;br /&gt;
* '''[[Digital Tube Control]]'''&lt;br /&gt;
* '''[[Clock]]'''&lt;br /&gt;
* '''[[8*8 Single-color Lattice Control]]'''&lt;br /&gt;
* '''[[8*8 Double-color Lattice Control]]'''&lt;br /&gt;
* '''[[8*8 RGB Lattice Control]]'''&lt;br /&gt;
* '''[[Music Player]]'''&lt;br /&gt;
* '''[[Dashboard]]'''&lt;br /&gt;
* '''[[To Obtain Network Time]]'''&lt;br /&gt;
&lt;br /&gt;
===Advanced Tutorial===&lt;br /&gt;
* '''[[心率监测]]'''&lt;br /&gt;
* '''[[温室大棚环境测控]]'''&lt;br /&gt;
* '''[[智能家居控制]]'''&lt;br /&gt;
* '''[[定位小车]]'''&lt;br /&gt;
* '''[[虚拟示波器的设计与实现]]'''&lt;br /&gt;
* '''[[PID水箱液位上位机源程序]]'''&lt;br /&gt;
* '''[[电能质量分析系统设计]]'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Pkj</name></author>	</entry>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=Microduino_CC3000_get_weather_information_by_internet_-203KIT&amp;diff=4101</id>
		<title>Microduino CC3000 get weather information by internet -203KIT</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=Microduino_CC3000_get_weather_information_by_internet_-203KIT&amp;diff=4101"/>
				<updated>2014-09-08T16:09:46Z</updated>
		
		<summary type="html">&lt;p&gt;Pkj：&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Language|通过Microduino_CC3000互联网获取天气-203KIT}}&lt;br /&gt;
{| style=&amp;quot;width: 800px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
==Outline==&lt;br /&gt;
Project：Microduino CC3000 get the weather information&lt;br /&gt;
&lt;br /&gt;
Objective：Use Microduino CC3000 module to get the specific position's weather information from internet. This experiment need Microduino core+ module. Microduino-core module only can be used for some simple example program, you can try it by yourself.&lt;br /&gt;
&lt;br /&gt;
Difficulty：Elementary&lt;br /&gt;
&lt;br /&gt;
Time-consuming：2 hours&lt;br /&gt;
&lt;br /&gt;
Maker：Microduino Studio-YLB&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
==Bill of Materials==&lt;br /&gt;
*Microduino module：（MICRODUINO 202KIT）&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|Module||Number||Function&lt;br /&gt;
|-&lt;br /&gt;
|Microduino-Core||1||Core module&lt;br /&gt;
|-&lt;br /&gt;
|Microduino-FT232R ||1||Download program&lt;br /&gt;
|-&lt;br /&gt;
|Microduino-CC3000||1||WiFi module&lt;br /&gt;
|-&lt;br /&gt;
|Microduino-OLED||1||Display information&lt;br /&gt;
|}&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
[[File:203KIT.jpg|600px|center|thumb|203KIT图片]]&lt;br /&gt;
&lt;br /&gt;
*Other equipment&lt;br /&gt;
mic USB data cable, OLED Cable connections, bread board and cable connections&lt;br /&gt;
*Software package&lt;br /&gt;
Arduino IDE(1.0 release or upper), Microduino test program (Arduino part), download the &amp;quot;TI WIFI SMARTCINFIG&amp;quot; from App Store.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
==Document==&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
==Debugging==&lt;br /&gt;
Setp 1：Set up hardware&lt;br /&gt;
*Install all module, use the Microduino extension board as the base which looks very beautiful overall.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
[[File:203KIT-ok.jpg|600px|center|thumb|203KIT图片]]&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
*If no extension board, use the jumper to connect the Microduino OLED.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Step 2：download program&lt;br /&gt;
Start Arduino IED, open the Microduino test program, board type choose &amp;quot;Microduino Core +(Atmega644P@16M,5V)&amp;quot;, download directly.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Step 3: Open the &amp;quot;SMARTCINFIG&amp;quot; application&lt;br /&gt;
Connect the IOS to router, turn on &amp;quot;TI WIFI SMARTCINFIG&amp;quot;, input the &amp;quot;Password&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
Step 4：Connect IOS device to Microduino&lt;br /&gt;
Observe the Microduino OLED, when text “Waiting for a SmartConfig connection (~60s) ...” appears，press the &amp;quot;Start&amp;quot;, then wait for OLED display the result.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
[[File:SMARTCINFIG-Connection.jpg|600px|center|thumb|SMARTCINFIG-Connection]]&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
==Result==&lt;br /&gt;
After connection success, following information will be display in Microduino OLED上.&lt;br /&gt;
*City&lt;br /&gt;
*Wind speed and direction&lt;br /&gt;
*Temperature, humidity&lt;br /&gt;
*Visibility&lt;br /&gt;
*Access time&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
[[File:cc3000-data.jpg|600px|center|thumb|cc3000-data]]&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
==Note==&lt;br /&gt;
*Use Microduino Core+ module。&lt;br /&gt;
*Connection process may timeout, not available, need to restart the connection again.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Pkj</name></author>	</entry>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=%E9%80%9A%E8%BF%87Microduino_CC3000%E4%BA%92%E8%81%94%E7%BD%91%E8%8E%B7%E5%8F%96%E5%A4%A9%E6%B0%94-203KIT/zh&amp;diff=4100</id>
		<title>通过Microduino CC3000互联网获取天气-203KIT/zh</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=%E9%80%9A%E8%BF%87Microduino_CC3000%E4%BA%92%E8%81%94%E7%BD%91%E8%8E%B7%E5%8F%96%E5%A4%A9%E6%B0%94-203KIT/zh&amp;diff=4100"/>
				<updated>2014-09-08T16:09:01Z</updated>
		
		<summary type="html">&lt;p&gt;Pkj：&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Language|Microduino_CC3000_get_weather_information_by_internet_-203KIT}}&lt;br /&gt;
{| style=&amp;quot;width: 800px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
==概述==&lt;br /&gt;
项目名称：Microduino CC3000互联网获取天气&lt;br /&gt;
&lt;br /&gt;
目的：采用Microduino CC3000模块联网，从网络获取指定地方的天气。该实验需要采用Microduino core+核心板、Microduino-core适用CC3000比较简单的示例程序，玩家可以自行研究。&lt;br /&gt;
&lt;br /&gt;
难度：初级&lt;br /&gt;
&lt;br /&gt;
耗时：2小时&lt;br /&gt;
&lt;br /&gt;
制作者：Microduino Studio-YLB&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
==材料清单==&lt;br /&gt;
*Microduino模块：（MICRODUINO 203KIT）&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|模块||数量||功能&lt;br /&gt;
|-&lt;br /&gt;
|Microduino-Core+||1||核心板&lt;br /&gt;
|-&lt;br /&gt;
|Microduino-FT232R ||1||下载程序&lt;br /&gt;
|-&lt;br /&gt;
|Microduino-CC3000||1||WiFi模块&lt;br /&gt;
|-&lt;br /&gt;
|Microduino-OLED||1||信息显示 &lt;br /&gt;
|}&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
[[File:203KIT.jpg|600px|center|thumb|203KIT图片]]&lt;br /&gt;
&lt;br /&gt;
*其他设备&lt;br /&gt;
mic USB数据线、OLED连接排线、面包板、面包板连接线&lt;br /&gt;
*软件设备&lt;br /&gt;
Arduino IDE（1.0版本以上）、Microduino提供的测试程序（Arduino端）、前往在App Store里下载TI WIFI SMARTCINFIG；&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;
*将所有模块叠加,本实验采用Microduino 扩展模块做底座，用于连接，整体看起来十分美观。&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
[[File:203KIT-ok.jpg|600px|center|thumb|203KIT图片]]&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
*如果没有扩展版，接入Microduino OLED可采用跳线。&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
步骤二：下载示例程序&lt;br /&gt;
启动Arduino IED，打开Microduino提供的测试程序，板卡选择Microduino Core +(Atmega644P@16M,5V)，直接下载即可；&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
步骤三:打开SMARTCINFIG应用程序&lt;br /&gt;
将IOS设备连接上路由器，打开TI WIFI SMARTCINFIG，在Password中填上路由器密匙；&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
步骤四：IOS设备与Microduino连接&lt;br /&gt;
观察Microduino OLED当出现“Waiting for a SmartConfig connection (~60s) ...”时候，按下TI WIFI SMARTCINFIG的Start，等待OLED显示结果。&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
[[File:SMARTCINFIG-Connection.jpg|600px|center|thumb|SMARTCINFIG-Connection]]&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
==结果==&lt;br /&gt;
连接成功之后可以在Microduino OLED上看到数据：&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:cc3000-data.jpg|600px|center|thumb|cc3000-data]]&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
==注意问题==&lt;br /&gt;
*本示例采用Microduino Core+调试。&lt;br /&gt;
*连接过程中可能超时，无法获取，重启再连接即可。&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Pkj</name></author>	</entry>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=%E6%96%87%E4%BB%B6:SMARTCINFIG-Connection.jpg&amp;diff=4099</id>
		<title>文件:SMARTCINFIG-Connection.jpg</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=%E6%96%87%E4%BB%B6:SMARTCINFIG-Connection.jpg&amp;diff=4099"/>
				<updated>2014-09-08T16:08:10Z</updated>
		
		<summary type="html">&lt;p&gt;Pkj：&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Pkj</name></author>	</entry>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=%E9%80%9A%E8%BF%87Microduino_CC3000%E4%BA%92%E8%81%94%E7%BD%91%E8%8E%B7%E5%8F%96%E5%A4%A9%E6%B0%94-203KIT/zh&amp;diff=4098</id>
		<title>通过Microduino CC3000互联网获取天气-203KIT/zh</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=%E9%80%9A%E8%BF%87Microduino_CC3000%E4%BA%92%E8%81%94%E7%BD%91%E8%8E%B7%E5%8F%96%E5%A4%A9%E6%B0%94-203KIT/zh&amp;diff=4098"/>
				<updated>2014-09-08T15:59:48Z</updated>
		
		<summary type="html">&lt;p&gt;Pkj：/* 调试 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Language|Microduino_CC3000_get_weather_information_by_internet_-203KIT}}&lt;br /&gt;
{| style=&amp;quot;width: 800px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
==概述==&lt;br /&gt;
项目名称：Microduino CC3000互联网获取天气&lt;br /&gt;
&lt;br /&gt;
目的：采用Microduino CC3000模块联网，从网络获取指定地方的天气。该实验需要采用Microduino core+核心板、Microduino-core适用CC3000比较简单的示例程序，玩家可以自行研究。&lt;br /&gt;
&lt;br /&gt;
难度：初级&lt;br /&gt;
&lt;br /&gt;
耗时：2小时&lt;br /&gt;
&lt;br /&gt;
制作者：Microduino Studio-YLB&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
==材料清单==&lt;br /&gt;
*Microduino模块：（MICRODUINO 203KIT）&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|模块||数量||功能&lt;br /&gt;
|-&lt;br /&gt;
|Microduino-Core+||1||核心板&lt;br /&gt;
|-&lt;br /&gt;
|Microduino-FT232R ||1||下载程序&lt;br /&gt;
|-&lt;br /&gt;
|Microduino-CC3000||1||WiFi模块&lt;br /&gt;
|-&lt;br /&gt;
|Microduino-OLED||1||信息显示 &lt;br /&gt;
|}&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
[[File:203KIT.jpg|600px|center|thumb|203KIT图片]]&lt;br /&gt;
&lt;br /&gt;
*其他设备&lt;br /&gt;
mic USB数据线、OLED连接排线、面包板、面包板连接线&lt;br /&gt;
*软件设备&lt;br /&gt;
Arduino IDE（1.0版本以上）、Microduino提供的测试程序（Arduino端）、前往在App Store里下载TI WIFI SMARTCINFIG；&lt;br /&gt;
|-&lt;br /&gt;
|[[File:SMARTCINFIG.jpg|600px|center|thumb|SMARTCINFIG]]&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;
*将所有模块叠加,本实验采用Microduino 扩展模块做底座，用于连接，整体看起来十分美观。&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
[[File:203KIT-ok.jpg|600px|center|thumb|203KIT图片]]&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
*如果没有扩展版，接入Microduino OLED可采用跳线。&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
步骤二：下载示例程序&lt;br /&gt;
启动Arduino IED，打开Microduino提供的测试程序，板卡选择Microduino Core +(Atmega644P@16M,5V)，直接下载即可；&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
步骤三:打开SMARTCINFIG应用程序&lt;br /&gt;
将IOS设备连接上路由器，打开TI WIFI SMARTCINFIG，在Password中填上路由器密匙；&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
[[File:SMARTCINFIG-Interface.jpg|600px|center|thumb|SMARTCINFIG-Interface]]&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
步骤四：IOS设备与Microduino连接&lt;br /&gt;
观察Microduino OLED当出现“Waiting for a SmartConfig connection (~60s) ...”时候，按下TI WIFI SMARTCINFIG的Start，等待OLED显示结果。&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
[[File:SMARTCINFIG-Connection.jpg|600px|center|thumb|SMARTCINFIG-Connection]]&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
==结果==&lt;br /&gt;
连接成功之后可以在Microduino OLED上看到数据：&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:cc3000-data.jpg|600px|center|thumb|cc3000-data]]&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
==注意问题==&lt;br /&gt;
*本示例采用Microduino Core+调试。&lt;br /&gt;
*连接过程中可能超时，无法获取，重启再连接即可。&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Pkj</name></author>	</entry>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=%E6%96%87%E4%BB%B6:203KIT-ok.jpg&amp;diff=4097</id>
		<title>文件:203KIT-ok.jpg</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=%E6%96%87%E4%BB%B6:203KIT-ok.jpg&amp;diff=4097"/>
				<updated>2014-09-08T15:59:30Z</updated>
		
		<summary type="html">&lt;p&gt;Pkj：&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Pkj</name></author>	</entry>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=%E9%80%9A%E8%BF%87Microduino_CC3000%E4%BA%92%E8%81%94%E7%BD%91%E8%8E%B7%E5%8F%96%E5%A4%A9%E6%B0%94-203KIT/zh&amp;diff=4096</id>
		<title>通过Microduino CC3000互联网获取天气-203KIT/zh</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=%E9%80%9A%E8%BF%87Microduino_CC3000%E4%BA%92%E8%81%94%E7%BD%91%E8%8E%B7%E5%8F%96%E5%A4%A9%E6%B0%94-203KIT/zh&amp;diff=4096"/>
				<updated>2014-09-08T15:58:38Z</updated>
		
		<summary type="html">&lt;p&gt;Pkj：/* 材料清单 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Language|Microduino_CC3000_get_weather_information_by_internet_-203KIT}}&lt;br /&gt;
{| style=&amp;quot;width: 800px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
==概述==&lt;br /&gt;
项目名称：Microduino CC3000互联网获取天气&lt;br /&gt;
&lt;br /&gt;
目的：采用Microduino CC3000模块联网，从网络获取指定地方的天气。该实验需要采用Microduino core+核心板、Microduino-core适用CC3000比较简单的示例程序，玩家可以自行研究。&lt;br /&gt;
&lt;br /&gt;
难度：初级&lt;br /&gt;
&lt;br /&gt;
耗时：2小时&lt;br /&gt;
&lt;br /&gt;
制作者：Microduino Studio-YLB&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
==材料清单==&lt;br /&gt;
*Microduino模块：（MICRODUINO 203KIT）&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|模块||数量||功能&lt;br /&gt;
|-&lt;br /&gt;
|Microduino-Core+||1||核心板&lt;br /&gt;
|-&lt;br /&gt;
|Microduino-FT232R ||1||下载程序&lt;br /&gt;
|-&lt;br /&gt;
|Microduino-CC3000||1||WiFi模块&lt;br /&gt;
|-&lt;br /&gt;
|Microduino-OLED||1||信息显示 &lt;br /&gt;
|}&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
[[File:203KIT.jpg|600px|center|thumb|203KIT图片]]&lt;br /&gt;
&lt;br /&gt;
*其他设备&lt;br /&gt;
mic USB数据线、OLED连接排线、面包板、面包板连接线&lt;br /&gt;
*软件设备&lt;br /&gt;
Arduino IDE（1.0版本以上）、Microduino提供的测试程序（Arduino端）、前往在App Store里下载TI WIFI SMARTCINFIG；&lt;br /&gt;
|-&lt;br /&gt;
|[[File:SMARTCINFIG.jpg|600px|center|thumb|SMARTCINFIG]]&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;
*将所有模块叠加,本实验采用Microduino 扩展模块做底座，用于连接，整体看起来十分美观。&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
[[File:203KIT-ok.jpg|600px|center|thumb|203KIT图片]]&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
*如果没有扩展版，接入Microduino OLED可采用跳线。&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
[[File:OLED-ok.jpg|600px|center|thumb|OLED]]&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
步骤二：下载示例程序&lt;br /&gt;
启动Arduino IED，打开Microduino提供的测试程序，板卡选择Microduino Core +(Atmega644P@16M,5V)，直接下载即可；&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
步骤三:打开SMARTCINFIG应用程序&lt;br /&gt;
将IOS设备连接上路由器，打开TI WIFI SMARTCINFIG，在Password中填上路由器密匙；&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
[[File:SMARTCINFIG-Interface.jpg|600px|center|thumb|SMARTCINFIG-Interface]]&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
步骤四：IOS设备与Microduino连接&lt;br /&gt;
观察Microduino OLED当出现“Waiting for a SmartConfig connection (~60s) ...”时候，按下TI WIFI SMARTCINFIG的Start，等待OLED显示结果。&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
[[File:SMARTCINFIG-Connection.jpg|600px|center|thumb|SMARTCINFIG-Connection]]&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
==结果==&lt;br /&gt;
连接成功之后可以在Microduino OLED上看到数据：&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:cc3000-data.jpg|600px|center|thumb|cc3000-data]]&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
==注意问题==&lt;br /&gt;
*本示例采用Microduino Core+调试。&lt;br /&gt;
*连接过程中可能超时，无法获取，重启再连接即可。&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Pkj</name></author>	</entry>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=%E6%96%87%E4%BB%B6:203KIT.jpg&amp;diff=4095</id>
		<title>文件:203KIT.jpg</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=%E6%96%87%E4%BB%B6:203KIT.jpg&amp;diff=4095"/>
				<updated>2014-09-08T15:57:05Z</updated>
		
		<summary type="html">&lt;p&gt;Pkj：&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Pkj</name></author>	</entry>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=%E6%96%87%E4%BB%B6:Cc3000-data.jpg&amp;diff=4094</id>
		<title>文件:Cc3000-data.jpg</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=%E6%96%87%E4%BB%B6:Cc3000-data.jpg&amp;diff=4094"/>
				<updated>2014-09-08T15:57:02Z</updated>
		
		<summary type="html">&lt;p&gt;Pkj：&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Pkj</name></author>	</entry>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=Microduino-USBTTL/zh&amp;diff=4093</id>
		<title>Microduino-USBTTL/zh</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=Microduino-USBTTL/zh&amp;diff=4093"/>
				<updated>2014-09-08T15:27:35Z</updated>
		
		<summary type="html">&lt;p&gt;Pkj：&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Language|Microduino-USB2TTL}}&lt;br /&gt;
{| style=&amp;quot;width: 800px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
[[File:Microduino-ft232-rect.jpg|400px|thumb|right|Microduino-FT232R]]&lt;br /&gt;
Microduino-USB2TTL 模块，基于 FTDI 公司的 FT232RL 芯片（Arduino软件自带驱动），可以直接与 [[Microduino-Core]] 或者 [[Microduino-Core+]] 相连，让他们与计算机通讯。&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;
USB2TTL是接口转换芯片，可以实现USB到串行UART接口的转换，也可转换到同步、异步Bit-Bang接口模式。FTDI提供各种操作系统（OS）下的驱动程序。设计简单，使用方便，兼容性好：&lt;br /&gt;
* USB2TTL整合了EEPROM，可用于IO的配置以及存储USB VID序列号和产品描述信息（PID）。&lt;br /&gt;
* USB2TTL整合了电平转换器，使得其I/O口电平支持5V—2.8V的宽范围；同时I/O管脚驱动能力强，可驱动多个设备或者较长的数据线；&lt;br /&gt;
* USB2TTL内部整合了上电复位电路，芯片能自行产生时钟，无需外挂晶振钟振，并且内部集成了电源去耦RC电路；节约成本。&lt;br /&gt;
* USB2TTL符合RoHS标准&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:[[file:Micromodule-FT232R-Pinout.jpg|800px|thumb|center|Microduino-FT232R-Pinout]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
==文档==&lt;br /&gt;
* Microduino-USB2TTL 原理图&lt;br /&gt;
* Microduino-USB2TTL Eagle源文件 【'''[[Media:Microduino-FT232R.zip|本地下载]]'''】&lt;br /&gt;
* Microduino-USB2TTL 中使用的主要元器件&lt;br /&gt;
** 芯片：'''[[Media:FT232R.pdf|FT232R]]'''&lt;br /&gt;
** 接口：'''[[Media:MicroUSB.jpg|MicroUSB]]'''&lt;br /&gt;
** 肖特基二极管：'''[[Media:MBR0520.pdf|MBR0520]]'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
==开发==&lt;br /&gt;
驱动程序下载：http://www.ftdichip.com/Drivers/VCP.htm&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
==应用==&lt;br /&gt;
The USB2TTL datasheet at http://www.ftdichip.com/Support/Documents/DataSheets/ICs/DS_FT232R.pdf says you can draw up to 50 mA from the FT232R 3.3V output.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
==问题解答==&lt;br /&gt;
*外部电源能和USBTTL一起给系统供电吗？&lt;br /&gt;
**'''因为目前版本的USBTTL的3.3供电电流过小（100ma内）'''，建议不这样使用，在测试阶段可以只用USBTTL，程序调试完成后，可以用外部电源直接供电。&lt;br /&gt;
&lt;br /&gt;
==购买==&lt;br /&gt;
* 购买'''[http://item.taobao.com/item.htm?spm=2013.1.w8247197-7971290439.66.itRvdW&amp;amp;id=36932845103 Microduino@淘宝]'''&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
==图库==&lt;br /&gt;
[[file:Micromodule-FT232R-t.jpg|thumb|600px|center|Micromodule FT232R Front]]&lt;br /&gt;
&lt;br /&gt;
[[file:Micromodule-FT232R-b.jpg|thumb|600px|center|Micromodule FT232R Back]]&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
==历史==&lt;br /&gt;
*2013年7月7日，上架新版Microduino-USB2TTL，主要解决识别问题，USB牢固性问题。&lt;br /&gt;
*2013年2月27日，取消自恢复保险丝版本。兼容性不好，容易造成计算机不识别串口。&lt;br /&gt;
*2013年1月15日，发布将D1替换为500mA自恢复保险丝版本，由玩家自己选择肖特基二极管还是自恢复保险丝。&lt;br /&gt;
*2012年11月17日，发布第一个对外版本，修正了上一版已发现问题。&lt;br /&gt;
*2012年11月5日，第一个样板出炉，主要问题为：&lt;br /&gt;
** 5V电源没连接到Microduino接口。&lt;br /&gt;
** Micro USB接口座不牢固，用久了会损坏。&lt;br /&gt;
** D1为一肖特基二极管，作用为防止电流回流及过流保护，额定电流500mA，会因为输入输出短路，或者输出电流过大烧毁。&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Pkj</name></author>	</entry>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=Microduino-USB2TTL&amp;diff=4092</id>
		<title>Microduino-USB2TTL</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=Microduino-USB2TTL&amp;diff=4092"/>
				<updated>2014-09-08T15:27:06Z</updated>
		
		<summary type="html">&lt;p&gt;Pkj：&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Language|Microduino-USBTTL}}&lt;br /&gt;
{| style=&amp;quot;width: 800px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
[[file:Microduino-ft232r-rect.jpg|400px|thumb|right|Microduino-FT232R]]&lt;br /&gt;
'''[[Microduino-USBTTL]]''' is a USB to serial UART interface module, it is based on FTDI FT232RL chip (Arduino embedded driver). '''[[Microduino-USBTTL]]''' can be stacked with  '''[[Microduino-Core]]''' or '''[[Microduino-Core+]]''', enable Microduino core modules communicating with PC.&lt;br /&gt;
&lt;br /&gt;
The USBTTL has optional clock generator output, and the new FTDIChip-ID? security dongle feature. In addition, asynchronous and synchronous bit bang interface modes are available. &lt;br /&gt;
&lt;br /&gt;
USB to serial designs using the USBTTL is simplified by fully integrating the external EEPROM, clock circuit and USB resistors onto the device.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
==Features==&lt;br /&gt;
* The '''[[Microduino-USBTTL]]''' is a USB to serial UART interface with optional clock generator output, asynchronous and synchronous bit bang interface modes are available. &lt;br /&gt;
* The '''[[Microduino-USBTTL]]''' adds two new functions compared with its predecessors, effectively making it a &amp;quot;3-in-1&amp;quot; chip for some application areas. The internally generated clock (6MHz, 12MHz, 24MHz, and 48MHz) can be brought out of the device and used to drive a microcontroller or external logic. A unique number (the FTDIChip-ID?) is burnt into the device during manufacture and is readable over USB, thus forming the basis of a security dongle which can be used to protect designers' application software from being copied.&lt;br /&gt;
* Using the U-Shape 27-pin interface (UPin-27), the standard interface of Microduino, all Microduino modules and sensors can be easily stacked and extended through it&lt;br /&gt;
* Delivered ready to plug in.&lt;br /&gt;
* 2.54mm (0.1 inch) pin pitch, compatible to bread board and hole board&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
==Specifications==&lt;br /&gt;
* Single chip USB to asynchronous serial data transfer interface.&lt;br /&gt;
* Entire USB protocol handled on the chip - No USB-specific firmware programming required.&lt;br /&gt;
* UART interface support for 7 or 8 data bits, 1 or 2 stop bits and odd/even/mark/space/no parity.&lt;br /&gt;
* Fully assisted hardware or X-On/X-Off software handshaking.&lt;br /&gt;
* Data transfer rates from 300 baud to 3 Megabaud (RS422/RS485 and at TTL levels) and 300 baud to 1 Megabaud (RS232).&lt;br /&gt;
* Auto transmit buffer control for RS485 applications.&lt;br /&gt;
* Transmit and receive LED drive signals.&lt;br /&gt;
* New 48MHz, 24MHz,12MHz, and 6MHz clock output signal Options for driving external MCU or FPGA.&lt;br /&gt;
* 256 Byte receive buffer and 128 Byte transmit buffer utilising buffer smoothing technology to allow for high data throughput.&lt;br /&gt;
* Synchronous and asynchronous bit bang mode interface options with RD# and WR# strobes.&lt;br /&gt;
* Integrated 1024 bit internal EEPROM for I/O configuration and storing USB VID, PID, serial number and product description strings.&lt;br /&gt;
* Device supplied preprogrammed with unique USB serial number.&lt;br /&gt;
* Support for USB suspend/resume.&lt;br /&gt;
* Support for bus powered, self powered, and high-power bus powered USB configurations.&lt;br /&gt;
* Integrated 3.3V level converter for USB I/O .&lt;br /&gt;
* Integrated level converter on UART and CBUS for interfacing to 5V - 1.8V Logic.&lt;br /&gt;
* True 5V/3.3V/2.8V/1.8V CMOS drive output and TTL input.&lt;br /&gt;
* High I/O pin output drive option.&lt;br /&gt;
* Integrated USB resistors.&lt;br /&gt;
* Integrated power-on-reset circuit.&lt;br /&gt;
* Fully integrated clock - no external crystal, oscillator, or resonator required.&lt;br /&gt;
* UART signal inversion option.&lt;br /&gt;
* USB bulk transfer mode.&lt;br /&gt;
* 3.3V to 5.25V Single Supply Operation.&lt;br /&gt;
* UHCI/OHCI/EHCI host controller compatible.&lt;br /&gt;
* USB 2.0 Full Speed compatible.&lt;br /&gt;
&lt;br /&gt;
:[[file:Micromodule-FT232R-Pinout.jpg|800px|thumb|center|Microduino-FT232R-Pinout]]&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
==Documents==&lt;br /&gt;
&lt;br /&gt;
* '''[[Microduino-USBTTL]]''' Eagle source file 【'''[[media:Microduino-FT232R.zip|download]]'''】&lt;br /&gt;
* '''[[Microduino-USBTTL]]''' main chips and devices&lt;br /&gt;
** Main chip: '''[[media:DS_FT232R.pdf|Datasheet of FT232R]]'''&lt;br /&gt;
** Micro USB: '''[[media:MicroUSB.doc|MicroUSB]]'''&lt;br /&gt;
** Diode: '''[[media:MBR0520.pdf|MBR0520]]'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
==Development==&lt;br /&gt;
Uploading Arduino program to Microduino-Core/Core+ with '''[[Microduino-USBTTL]]'''&lt;br /&gt;
* 1. Install Arduino IDE: Microduino use the same IDE as Arduino, please download Arduino IDE from 【'''[http://arduino.cc/en/Main/Software Arduino IDE official]'''】 and install it in your disk. (if you already have it, just skip this step). Please check Arduino IDE details from 【'''[http://arduino.cc/en/Reference/HomePage Reference]'''】 and 【'''[http://arduino.cc/en/Tutorial/HomePage Workshop]'''】. &lt;br /&gt;
* 2. Patch Microduino package: Please download Microduino package for Arduino IDE from 【'''[[media:Microduino.zip|download]]'''】, and unzip is to {Your Arduino Install Driectory}/hardware directory.&lt;br /&gt;
* Microduino Arduino IDE Reference workshop: 【'''[[Arduino IDE Microduino Configuration]]'''】. &lt;br /&gt;
* 3. Programming: Upload program to '''[[Microduino-Core]]''' or '''[[Microduino-Core+]]''' through Arduino IDE, with '''[[Microduino-USBTTL]]''' module.&lt;br /&gt;
* 4. Enjoy your Microduino journey!&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
==Applications==&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
==Buy==&lt;br /&gt;
* Buy '''[http://www.microduino.cc/Modules/Microdoino%20Core%20Modules/FT232R Microduino-FT232R]'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
==History==&lt;br /&gt;
*2013/02/27: the second formal release.&lt;br /&gt;
*2012/11/17: the first formal release, fix bugs in beta version.&lt;br /&gt;
*2012/11/05: beta release, problem shooting:&lt;br /&gt;
** 5V power was not connect to Microduino interface&lt;br /&gt;
** Micro USB socket was not stable, it might be broken after several times plug.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
==Pictures==&lt;br /&gt;
[[file:Micromodule-FT232R-t.jpg|thumb|600px|center|Micromodule FT232R Front]]&lt;br /&gt;
&lt;br /&gt;
[[file:Micromodule-FT232R-b.jpg|thumb|600px|center|Micromodule FT232R Back]]&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Pkj</name></author>	</entry>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=%E6%96%87%E4%BB%B6:Wind_fritz_ppt.jpg&amp;diff=4091</id>
		<title>文件:Wind fritz ppt.jpg</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=%E6%96%87%E4%BB%B6:Wind_fritz_ppt.jpg&amp;diff=4091"/>
				<updated>2014-09-08T00:40:22Z</updated>
		
		<summary type="html">&lt;p&gt;Pkj：&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Pkj</name></author>	</entry>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=%E7%AC%AC%E4%B8%89%E5%8D%81%E4%BA%8C%E8%AF%BE--Microduino%E4%B8%8E%E9%A3%8E%E9%80%9F%E4%BC%A0%E6%84%9F%E5%99%A8/zh&amp;diff=4090</id>
		<title>第三十二课--Microduino与风速传感器/zh</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=%E7%AC%AC%E4%B8%89%E5%8D%81%E4%BA%8C%E8%AF%BE--Microduino%E4%B8%8E%E9%A3%8E%E9%80%9F%E4%BC%A0%E6%84%9F%E5%99%A8/zh&amp;diff=4090"/>
				<updated>2014-09-08T00:39:23Z</updated>
		
		<summary type="html">&lt;p&gt;Pkj：&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Microduino与风速传感器&lt;br /&gt;
{| style=&amp;quot;width: 800px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
==目的==&lt;br /&gt;
本教程通过Microduino读取风速传感器（风速仪）的信息，使读者了解风速传感器，掌握Microduino使用模拟输入口的编程方法。&lt;br /&gt;
&lt;br /&gt;
==设备==&lt;br /&gt;
*'''[[Microduino-Core]]'''&lt;br /&gt;
Microduino-Core 是以 Atmel ATmega328P为核心的8位单片机开发核心板，是一个开源的、与 Arduino UNO 兼容的控制器模块。&lt;br /&gt;
&lt;br /&gt;
*'''[[Microduino-USBTTL]]'''&lt;br /&gt;
下载程序模块，可直接与 Microduino-Core 或者Microduino-Core+ 相连，让他们与计算机通讯。它的下载接口用的是MicUSB，这也是Microduino小巧的一部分。Microduino大小与一枚一元硬币差不多大。下载线与绝大多数智能手机usb数据线是一样的，方便实用。&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;
|风速传感器 ||1个 ||用于监测风速，本示例输出信号为0-5V。&lt;br /&gt;
|-&lt;br /&gt;
|24V 1A开关电源||1个 ||风速传感器供电用，本示例采用明纬牌开关电源。&lt;br /&gt;
|-&lt;br /&gt;
|USB数据连接线 ||1条||连通Microduino模块与计算机。&lt;br /&gt;
|-&lt;br /&gt;
|面包板 ||1块 ||各个元器件汇聚于此。&lt;br /&gt;
|-&lt;br /&gt;
|面包板跳线 ||1盒||电气连接线。&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===风速传感器===&lt;br /&gt;
风速传感器是一种专门用于监测风速的检测仪表。其输出形式可分为485输出（一般会选择modbus协议）、4-20mA电流、0-5V。该示例应用的风速传感器采用的0-5V输出的形式（买风速传感器时和卖家说清楚就0K了），可非常方便的被Microduino模拟口识别。该示例应用的风速传感器最高监测风速为30米每秒，也就是30米每秒的风到来的时候输出电压临近5V，在0米每秒到30米每秒之间的输出电压（0-5V）线性分布。其供电电压为直流12V到24V，所以还需外接一个电源。线缆的三根引出线我们需要搞清楚。&lt;br /&gt;
*1：地线，外接电源的地线与Microduino的地线与线缆引出的接地线连在一起。&lt;br /&gt;
*2：电源输入正极线，线缆引出电源线需要和外接电源的正极连在一起，该文外接直流电为24V。&lt;br /&gt;
*3：模拟量输出线，线缆引出的模拟量输出线可直接接入Microduino的A0引脚。&lt;br /&gt;
 [[File: windSpeedSensor.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
==实验原理图==&lt;br /&gt;
[[File:wind fritz  ppt.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
下图为实拍图，风速传感器在转动状态。风速传感器底座下面为24V开关电源。&lt;br /&gt;
[[File:windRealConnet.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
==程序==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
void  setup()&lt;br /&gt;
{&lt;br /&gt;
  Serial.begin(9600);&lt;br /&gt;
}&lt;br /&gt;
void loop()&lt;br /&gt;
{&lt;br /&gt;
  float myVoltage=analogRead(A0)/1023.0*5.0;&lt;br /&gt;
  delay(10);&lt;br /&gt;
  float windSpeed=myVoltage*30.0/5.0;//max detect windspeed 30m/s&lt;br /&gt;
  windSpeed=windSpeed*1.0;//change this value (1.0) to calibrate&lt;br /&gt;
  if(windSpeed&amp;lt;0.15) //debounce  &lt;br /&gt;
  {&lt;br /&gt;
    Serial.print(&amp;quot;Wind  speed   &amp;quot;);&lt;br /&gt;
    Serial.println(&amp;quot;0m/s&amp;quot;);&lt;br /&gt;
    delay(1000);&lt;br /&gt;
  }&lt;br /&gt;
  else&lt;br /&gt;
  {&lt;br /&gt;
    Serial.print(&amp;quot;Wind  speed   &amp;quot;);&lt;br /&gt;
    Serial.print(windSpeed,1 );// output (&amp;quot;0.0&amp;quot;) fraction&lt;br /&gt;
    Serial.println(&amp;quot;m/s&amp;quot;);&lt;br /&gt;
    delay(1000);&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==调试==&lt;br /&gt;
*用导线连接硬件并确认无误。&lt;br /&gt;
*把程序复制到ArduinoIDE中。&lt;br /&gt;
*编译程序，选择正确的板卡与相应串口。&lt;br /&gt;
*点击Upload，下载完毕后打开ArduinoIDE自带的串口监视器，用手拨动风速仪(或放到室外实际观察)观察结果。下图是手拨风速仪时显示的风速值。&lt;br /&gt;
*米每秒对应几级风读者可搜索下，相应的程序也可修改下，依读者所需。&lt;br /&gt;
*数据可上传至yeelink，相关内容请参考[http://www.microduino.cc/wiki/index.php?title=Microduino_%E9%A3%8E%E9%80%9F%E4%BC%A0%E6%84%9F%E5%99%A8%E2%80%94%E9%A3%8E%E9%80%9F%E5%80%BC%E4%B8%8A%E4%BC%A0%E5%88%B0yeelink/zh  风速值上传到yeelink]&lt;br /&gt;
*笔者曾测试该风速传感器与某品牌手持式风速传感器（带液晶屏显示），ArduinoIDE 串口输出数据与手持式液晶屏显示数据基本一致。&lt;br /&gt;
[[File:windComOutput.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
==结果==&lt;br /&gt;
按照原理图连接好电路。程序下载后，可在ArduinoIDE自带的串口监视器中观察风速值。&lt;br /&gt;
&lt;br /&gt;
==视频==&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Pkj</name></author>	</entry>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=%E7%AC%AC%E4%B8%89%E5%8D%81%E4%BA%8C%E8%AF%BE--Microduino%E4%B8%8E%E9%A3%8E%E9%80%9F%E4%BC%A0%E6%84%9F%E5%99%A8/zh&amp;diff=4089</id>
		<title>第三十二课--Microduino与风速传感器/zh</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=%E7%AC%AC%E4%B8%89%E5%8D%81%E4%BA%8C%E8%AF%BE--Microduino%E4%B8%8E%E9%A3%8E%E9%80%9F%E4%BC%A0%E6%84%9F%E5%99%A8/zh&amp;diff=4089"/>
				<updated>2014-09-07T14:56:47Z</updated>
		
		<summary type="html">&lt;p&gt;Pkj：&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Microduino与风速传感器&lt;br /&gt;
{| style=&amp;quot;width: 800px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
==目的==&lt;br /&gt;
本教程通过Microduino读取风速传感器（风速仪）的信息，使读者了解风速传感器，掌握Microduino使用模拟输入口的编程方法。&lt;br /&gt;
&lt;br /&gt;
==设备==&lt;br /&gt;
*'''[[Microduino-Core]]'''&lt;br /&gt;
Microduino-Core 是以 Atmel ATmega328P为核心的8位单片机开发核心板，是一个开源的、与 Arduino UNO 兼容的控制器模块。&lt;br /&gt;
&lt;br /&gt;
*'''[[Microduino-USBTTL]]'''&lt;br /&gt;
下载程序模块，可直接与 Microduino-Core 或者Microduino-Core+ 相连，让他们与计算机通讯。它的下载接口用的是MicUSB，这也是Microduino小巧的一部分。Microduino大小与一枚一元硬币差不多大。下载线与绝大多数智能手机usb数据线是一样的，方便实用。&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;
|风速传感器 ||1个 ||用于监测风速，本示例输出信号为0-5V。&lt;br /&gt;
|-&lt;br /&gt;
|24V 1A开关电源||1个 ||风速传感器供电用，本示例采用明纬牌开关电源。&lt;br /&gt;
|-&lt;br /&gt;
|USB数据连接线 ||1条||连通Microduino模块与计算机。&lt;br /&gt;
|-&lt;br /&gt;
|面包板 ||1块 ||各个元器件汇聚于此。&lt;br /&gt;
|-&lt;br /&gt;
|面包板跳线 ||1盒||电气连接线。&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===风速传感器===&lt;br /&gt;
风速传感器是一种专门用于监测风速的检测仪表。其输出形式可分为485输出（一般会选择modbus协议）、4-20mA电流、0-5V。该示例应用的风速传感器采用的0-5V输出的形式（买风速传感器时和卖家说清楚就0K了），可非常方便的被Microduino模拟口识别。该示例应用的风速传感器最高监测风速为30米每秒，也就是30米每秒的风到来的时候输出电压临近5V，在0米每秒到30米每秒之间的输出电压（0-5V）线性分布。其供电电压为直流12V到24V，所以还需外接一个电源。线缆的三根引出线我们需要搞清楚。&lt;br /&gt;
*1：地线，外接电源的地线与Microduino的地线与线缆引出的接地线连在一起。&lt;br /&gt;
*2：电源输入正极线，线缆引出电源线需要和外接电源的正极连在一起，该文外接直流电为24V。&lt;br /&gt;
*3：模拟量输出线，线缆引出的模拟量输出线可直接接入Microduino的A0引脚。&lt;br /&gt;
 [[File: windSpeedSensor.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
==实验原理图==&lt;br /&gt;
下图为实拍图，风速传感器在转动状态。风速传感器底座下面为24V开关电源。&lt;br /&gt;
[[File:windRealConnet.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
==程序==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
void  setup()&lt;br /&gt;
{&lt;br /&gt;
  Serial.begin(9600);&lt;br /&gt;
}&lt;br /&gt;
void loop()&lt;br /&gt;
{&lt;br /&gt;
  float myVoltage=analogRead(A0)/1023.0*5.0;&lt;br /&gt;
  delay(10);&lt;br /&gt;
  float windSpeed=myVoltage*30.0/5.0;//max detect windspeed 30m/s&lt;br /&gt;
  windSpeed=windSpeed*1.0;//change this value (1.0) to calibrate&lt;br /&gt;
  if(windSpeed&amp;lt;0.15) //debounce  &lt;br /&gt;
  {&lt;br /&gt;
    Serial.print(&amp;quot;Wind  speed   &amp;quot;);&lt;br /&gt;
    Serial.println(&amp;quot;0m/s&amp;quot;);&lt;br /&gt;
    delay(1000);&lt;br /&gt;
  }&lt;br /&gt;
  else&lt;br /&gt;
  {&lt;br /&gt;
    Serial.print(&amp;quot;Wind  speed   &amp;quot;);&lt;br /&gt;
    Serial.print(windSpeed,1 );// output (&amp;quot;0.0&amp;quot;) fraction&lt;br /&gt;
    Serial.println(&amp;quot;m/s&amp;quot;);&lt;br /&gt;
    delay(1000);&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==调试==&lt;br /&gt;
*用导线连接硬件并确认无误。&lt;br /&gt;
*把程序复制到ArduinoIDE中。&lt;br /&gt;
*编译程序，选择正确的板卡与相应串口。&lt;br /&gt;
*点击Upload，下载完毕后打开ArduinoIDE自带的串口监视器，用手拨动风速仪(或放到室外实际观察)观察结果。下图是手拨风速仪时显示的风速值。&lt;br /&gt;
*米每秒对应几级风读者可搜索下，相应的程序也可修改下，依读者所需。&lt;br /&gt;
*数据可上传至yeelink，相关内容请参考[http://www.microduino.cc/wiki/index.php?title=Microduino_%E9%A3%8E%E9%80%9F%E4%BC%A0%E6%84%9F%E5%99%A8%E2%80%94%E9%A3%8E%E9%80%9F%E5%80%BC%E4%B8%8A%E4%BC%A0%E5%88%B0yeelink/zh  风速值上传到yeelink]&lt;br /&gt;
*笔者曾测试该风速传感器与某品牌手持式风速传感器（带液晶屏显示），ArduinoIDE 串口输出数据与手持式液晶屏显示数据基本一致。&lt;br /&gt;
[[File:windComOutput.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
==结果==&lt;br /&gt;
按照原理图连接好电路。程序下载后，可在ArduinoIDE自带的串口监视器中观察风速值。&lt;br /&gt;
&lt;br /&gt;
==视频==&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Pkj</name></author>	</entry>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=%E7%AC%AC%E4%B8%89%E5%8D%81%E4%BA%8C%E8%AF%BE--Microduino%E4%B8%8E%E9%A3%8E%E9%80%9F%E4%BC%A0%E6%84%9F%E5%99%A8/zh&amp;diff=4088</id>
		<title>第三十二课--Microduino与风速传感器/zh</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=%E7%AC%AC%E4%B8%89%E5%8D%81%E4%BA%8C%E8%AF%BE--Microduino%E4%B8%8E%E9%A3%8E%E9%80%9F%E4%BC%A0%E6%84%9F%E5%99%A8/zh&amp;diff=4088"/>
				<updated>2014-09-07T14:34:01Z</updated>
		
		<summary type="html">&lt;p&gt;Pkj：&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Microduino与风速传感器&lt;br /&gt;
{| style=&amp;quot;width: 800px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
==目的==&lt;br /&gt;
本教程通过Microduino读取风速传感器（风速仪）的信息，使读者了解风速传感器，掌握Microduino使用模拟输入口的编程方法。&lt;br /&gt;
&lt;br /&gt;
==设备==&lt;br /&gt;
*'''[[Microduino-Core]]'''&lt;br /&gt;
Microduino-Core 是以 Atmel ATmega328P为核心的8位单片机开发核心板，是一个开源的、与 Arduino UNO 兼容的控制器模块。&lt;br /&gt;
&lt;br /&gt;
*'''[[Microduino-USBTTL]]'''&lt;br /&gt;
下载程序模块，可直接与 Microduino-Core 或者Microduino-Core+ 相连，让他们与计算机通讯。它的下载接口用的是MicUSB，这也是Microduino小巧的一部分。Microduino大小与一枚一元硬币差不多大。下载线与绝大多数智能手机usb数据线是一样的，方便实用。&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;
|风速传感器 ||1个 ||用于监测风速，本示例输出信号为0-5V。&lt;br /&gt;
|-&lt;br /&gt;
|24V 1A开关电源||1个 ||风速传感器供电用，本示例采用明纬牌开关电源。&lt;br /&gt;
|-&lt;br /&gt;
|USB数据连接线 ||1条||连通Microduino模块与计算机。&lt;br /&gt;
|-&lt;br /&gt;
|面包板 ||1块 ||各个元器件汇聚于此。&lt;br /&gt;
|-&lt;br /&gt;
|面包板跳线 ||1盒||电气连接线。&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===风速传感器===&lt;br /&gt;
风速传感器是一种专门用于监测风速的检测仪表。其输出形式可分为485输出（一般会选择modbus协议）、4-20mA电流、0-5V。该示例应用的风速传感器采用的0-5V输出的形式（买风速传感器时和卖家说清楚就0K了），可非常方便的被Microduino模拟口识别。该示例应用的风速传感器最高监测风速为30米每秒，也就是30米每秒的风到来的时候输出电压临近5V，在0米每秒到30米每秒之间的输出电压（0-5V）线性分布。其供电电压为直流12V到24V，所以还需外接一个电源。线缆的三根引出线我们需要搞清楚。&lt;br /&gt;
*1：地线，外接电源的地线与Microduino的地线与线缆引出的接地线连在一起。&lt;br /&gt;
*2：电源输入正极线，线缆引出电源线需要和外接电源的正极连在一起，该文外接直流电为24V。&lt;br /&gt;
*3：模拟量输出线，线缆引出的模拟量输出线可直接接入Microduino的A0引脚。&lt;br /&gt;
 [[File: windSpeedSensor.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
==实验原理图==&lt;br /&gt;
下图为实拍图，风速传感器在转动状态。风速传感器底座下面为24V开关电源。&lt;br /&gt;
[[File:windRealConnet.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
==程序==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
void  setup()&lt;br /&gt;
{&lt;br /&gt;
  Serial.begin(9600);&lt;br /&gt;
}&lt;br /&gt;
void loop()&lt;br /&gt;
{&lt;br /&gt;
  float myVoltage=analogRead(A0)/1023.0*5.0;&lt;br /&gt;
  delay(10);&lt;br /&gt;
  float windSpeed=myVoltage*30.0/5.0;//max detect windspeed 30m/s&lt;br /&gt;
  windSpeed=windSpeed*1.0;//change this value (1.0) to calibrate&lt;br /&gt;
  if(windSpeed&amp;lt;0.15) //debounce  &lt;br /&gt;
  {&lt;br /&gt;
    Serial.print(&amp;quot;Wind  speed   &amp;quot;);&lt;br /&gt;
    Serial.println(&amp;quot;0m/s&amp;quot;);&lt;br /&gt;
    delay(1000);&lt;br /&gt;
  }&lt;br /&gt;
  else&lt;br /&gt;
  {&lt;br /&gt;
    Serial.print(&amp;quot;Wind  speed   &amp;quot;);&lt;br /&gt;
    Serial.print(windSpeed,1 );// output (&amp;quot;0.0&amp;quot;) fraction&lt;br /&gt;
    Serial.println(&amp;quot;m/s&amp;quot;);&lt;br /&gt;
    delay(1000);&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==调试==&lt;br /&gt;
*用导线连接硬件并确认无误。&lt;br /&gt;
*把程序复制到ArduinoIDE中。&lt;br /&gt;
*编译程序，选择正确的板卡与相应串口。&lt;br /&gt;
*点击Upload，下载完毕后打开ArduinoIDE自带的串口监视器，用手拨动风速仪(或放到室外实际观察)观察结果。下图是手拨风速仪时显示的风速值。&lt;br /&gt;
*米每秒对应几级风读者可搜索下，相应的程序也可修改下，依读者所需。&lt;br /&gt;
*数据可上传至yeelink，相关内容请参考[http://www.microduino.cc/wiki/index.php?title=Microduino_%E9%A3%8E%E9%80%9F%E4%BC%A0%E6%84%9F%E5%99%A8%E2%80%94%E9%A3%8E%E9%80%9F%E5%80%BC%E4%B8%8A%E4%BC%A0%E5%88%B0yeelink/zh  风速值上传至yeelink]&lt;br /&gt;
*笔者曾测试该风速传感器与某品牌手持式风速传感器（带液晶屏显示），ArduinoIDE 串口输出数据与手持式液晶屏显示数据基本一致。&lt;br /&gt;
[[File:windComOutput.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
==结果==&lt;br /&gt;
按照原理图连接好电路。程序下载后，可在ArduinoIDE自带的串口监视器中观察风速值。&lt;br /&gt;
&lt;br /&gt;
==视频==&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Pkj</name></author>	</entry>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=%E7%AC%AC%E4%B8%89%E5%8D%81%E4%BA%8C%E8%AF%BE--Microduino%E4%B8%8E%E9%A3%8E%E9%80%9F%E4%BC%A0%E6%84%9F%E5%99%A8/zh&amp;diff=4087</id>
		<title>第三十二课--Microduino与风速传感器/zh</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=%E7%AC%AC%E4%B8%89%E5%8D%81%E4%BA%8C%E8%AF%BE--Microduino%E4%B8%8E%E9%A3%8E%E9%80%9F%E4%BC%A0%E6%84%9F%E5%99%A8/zh&amp;diff=4087"/>
				<updated>2014-09-07T14:32:44Z</updated>
		
		<summary type="html">&lt;p&gt;Pkj：&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Microduino与风速传感器&lt;br /&gt;
{| style=&amp;quot;width: 800px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
==目的==&lt;br /&gt;
本教程通过Microduino读取风速传感器（风速仪）的信息，使读者了解风速传感器，掌握Microduino使用模拟输入口的编程方法。&lt;br /&gt;
&lt;br /&gt;
==设备==&lt;br /&gt;
*'''[[Microduino-Core]]'''&lt;br /&gt;
Microduino-Core 是以 Atmel ATmega328P为核心的8位单片机开发核心板，是一个开源的、与 Arduino UNO 兼容的控制器模块。&lt;br /&gt;
&lt;br /&gt;
*'''[[Microduino-USBTTL]]'''&lt;br /&gt;
下载程序模块，可直接与 Microduino-Core 或者Microduino-Core+ 相连，让他们与计算机通讯。它的下载接口用的是MicUSB，这也是Microduino小巧的一部分。Microduino大小与一枚一元硬币差不多大。下载线与绝大多数智能手机usb数据线是一样的，方便实用。&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;
|风速传感器 ||1个 ||用于监测风速，本示例输出信号为0-5V。&lt;br /&gt;
|-&lt;br /&gt;
|24V 1A开关电源||1个 ||风速传感器供电用，本示例采用明纬牌开关电源。&lt;br /&gt;
|-&lt;br /&gt;
|USB数据连接线 ||1条||连通Microduino模块与计算机。&lt;br /&gt;
|-&lt;br /&gt;
|面包板 ||1块 ||各个元器件汇聚于此。&lt;br /&gt;
|-&lt;br /&gt;
|面包板跳线 ||1盒||电气连接线。&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===风速传感器===&lt;br /&gt;
风速传感器是一种专门用于监测风速的检测仪表。其输出形式可分为485输出（一般会选择modbus协议）、4-20mA电流、0-5V。该示例应用的风速传感器采用的0-5V输出的形式（买风速传感器时和卖家说清楚就0K了），可非常方便的被Microduino模拟口识别。该示例应用的风速传感器最高监测风速为30米每秒，也就是30米每秒的风到来的时候输出电压临近5V，在0米每秒到30米每秒之间的输出电压（0-5V）线性分布。其供电电压为直流12V到24V，所以还需外接一个电源。线缆的三根引出线我们需要搞清楚。&lt;br /&gt;
*1：地线，外接电源的地线与Microduino的地线与线缆引出的接地线连在一起。&lt;br /&gt;
*2：电源输入正极线，线缆引出电源线需要和外接电源的正极连在一起，该文外接直流电为24V。&lt;br /&gt;
*3：模拟量输出线，线缆引出的模拟量输出线可直接接入Microduino的A0引脚。&lt;br /&gt;
 [[File: windSpeedSensor.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
==实验原理图==&lt;br /&gt;
下图为实拍图，风速传感器在转动状态。风速传感器底座下面为24V开关电源。&lt;br /&gt;
[[File:windRealConnet.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
==程序==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
void  setup()&lt;br /&gt;
{&lt;br /&gt;
  Serial.begin(9600);&lt;br /&gt;
}&lt;br /&gt;
void loop()&lt;br /&gt;
{&lt;br /&gt;
  float myVoltage=analogRead(A0)/1023.0*5.0;&lt;br /&gt;
  delay(10);&lt;br /&gt;
  float windSpeed=myVoltage*30.0/5.0;//max detect windspeed 30m/s&lt;br /&gt;
  windSpeed=windSpeed*1.0;//change this value (1.0) to calibrate&lt;br /&gt;
  if(windSpeed&amp;lt;0.15) //debounce  &lt;br /&gt;
  {&lt;br /&gt;
    Serial.print(&amp;quot;Wind  speed   &amp;quot;);&lt;br /&gt;
    Serial.println(&amp;quot;0m/s&amp;quot;);&lt;br /&gt;
    delay(1000);&lt;br /&gt;
  }&lt;br /&gt;
  else&lt;br /&gt;
  {&lt;br /&gt;
    Serial.print(&amp;quot;Wind  speed   &amp;quot;);&lt;br /&gt;
    Serial.print(windSpeed,1 );// output (&amp;quot;0.0&amp;quot;) fraction&lt;br /&gt;
    Serial.println(&amp;quot;m/s&amp;quot;);&lt;br /&gt;
    delay(1000);&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==调试==&lt;br /&gt;
*用导线连接硬件并确认无误。&lt;br /&gt;
*把程序复制到ArduinoIDE中。&lt;br /&gt;
*编译程序，选择正确的板卡与相应串口。&lt;br /&gt;
*点击Upload，下载完毕后打开ArduinoIDE自带的串口监视器，用手拨动风速仪(或放到室外实际观察)观察结果。下图是手拨风速仪时显示的风速值。&lt;br /&gt;
*米每秒对应几级风读者可搜索下，相应的程序也可修改下，依读者所需。&lt;br /&gt;
*数据可上传至yeelink，相关内容请参考[http://www.microduino.cc/wiki/index.php?title=Microduino_%E9%A3%8E%E9%80%9F%E4%BC%A0%E6%84%9F%E5%99%A8%E2%80%94%E9%A3%8E%E9%80%9F%E5%80%BC%E4%B8%8A%E4%BC%A0%E5%88%B0yeelink/zh  wiki-- Microduino  传感器教程]&lt;br /&gt;
*笔者曾测试该风速传感器与某品牌手持式风速传感器（带液晶屏显示），ArduinoIDE 串口输出数据与手持式液晶屏显示数据基本一致。&lt;br /&gt;
[[File:windComOutput.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
==结果==&lt;br /&gt;
按照原理图连接好电路。程序下载后，可在ArduinoIDE自带的串口监视器中观察风速值。&lt;br /&gt;
&lt;br /&gt;
==视频==&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Pkj</name></author>	</entry>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=Microduino_%E9%A3%8E%E9%80%9F%E4%BC%A0%E6%84%9F%E5%99%A8%E2%80%94%E9%A3%8E%E9%80%9F%E5%80%BC%E4%B8%8A%E4%BC%A0%E5%88%B0yeelink/zh&amp;diff=4074</id>
		<title>Microduino 风速传感器—风速值上传到yeelink/zh</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=Microduino_%E9%A3%8E%E9%80%9F%E4%BC%A0%E6%84%9F%E5%99%A8%E2%80%94%E9%A3%8E%E9%80%9F%E5%80%BC%E4%B8%8A%E4%BC%A0%E5%88%B0yeelink/zh&amp;diff=4074"/>
				<updated>2014-09-04T13:25:11Z</updated>
		
		<summary type="html">&lt;p&gt;Pkj：&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Microduino与风速传感器—风速值上传到yeelink&lt;br /&gt;
{| style=&amp;quot;width: 800px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
==目的==&lt;br /&gt;
本教程通过Microduino读取风速传感器的信息，使读者了解风速传感器，掌握Microduino使用模拟输入口的编程方法。&lt;br /&gt;
==设备==&lt;br /&gt;
*'''[[Microduino-Core]]'''&lt;br /&gt;
*'''[[Microduino-USBTTL]]'''&lt;br /&gt;
*'''[[Microduino-RJ45]]'''&lt;br /&gt;
*'''[[Microduino-ENC28J60]]'''&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;
|风速传感器 ||1个 ||用于监测风速，输出信号为0-5V。&lt;br /&gt;
|-&lt;br /&gt;
|24V 1A开关电源||1个 ||风速传感器供电用，本示例采用明纬牌开关电源。&lt;br /&gt;
|-&lt;br /&gt;
|USB数据连接线 ||1条||连通Microduino模块与计算机。&lt;br /&gt;
|-&lt;br /&gt;
|面包板 ||1块 ||各个元器件汇聚于此。&lt;br /&gt;
|-&lt;br /&gt;
|面包板跳线 ||1盒||电气连接线。&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==实验原理图==&lt;br /&gt;
 [[File:windFritz.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
==程序==&lt;br /&gt;
&lt;br /&gt;
https://github.com/Microduino/Microduino_Tutorials/tree/master/Microduino_Advanced/Microduino_wind_yeelink&lt;br /&gt;
&lt;br /&gt;
==调试==&lt;br /&gt;
*把风速仪的模拟量输出端与Microduino的A0连接在一起，地连接在一起。&lt;br /&gt;
*把程序刷写到Microduino-core中。&lt;br /&gt;
*把Microduino-RJ45通过网线接入路由器LAN口。&lt;br /&gt;
*登录yeelink网站，进入首页（见下图），首页会有yeelink公司出品的灯光产品(yeelight)资讯，自然而然，yeelight的灯光产品是可以通过yeelink远程控制的(笔者测试过zigbee控制的yeelight)。   http://www.yeelink.net/&lt;br /&gt;
[[File:firstPage.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*在yeelink首页单击登录，输入已注册的用户名与密码，（没注册的朋友需要先注册下，注册后需邮箱激活，很简单的）。登录界面见下图。&lt;br /&gt;
[[File: login pic.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*登录后点击用户中心，可进入自己账户的管理首页。API Key文本框中数据是我们注册用户时yeelink服务器分配给用户的ID，也是在Microduino程序中需要用到的。由下图可以看到，笔者已添加一个名为windSpeed的设备，设备ID号为13892（该数值也是microduino程序中需要用到滴）。还可以点击添加新设备继续添加设备。由此可以看出，一个API Key也就是对应一个账户，一个账户下面可以有N多个设备，区别是哪一个设备需要根据设备号（Device ID）。&lt;br /&gt;
[[File: userCenter.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*点击已添加的设备名字，可进入设备管理页面。见下图。点击编辑可对该设备名字以及描述等信息进行编辑。&lt;br /&gt;
[[File: device manage.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*点击添加传感器，可在该DeviceID下面添加传感器。见下图。笔者添加了一个名为windSensor，类型为数值型的传感器。&lt;br /&gt;
[[File: add sensor.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*保存后获得的传感器号（SensorID）为23058（该数值也是Microduino程序中需要用到滴）。&lt;br /&gt;
[[File: add sensor finish.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*如果这时点击我的设备。会发现传感器状态：的后面多出了一个小方块，每个小方块都代表了该设备下面的一个传感器。也就是说一个设备下面可以有N多个传感器，区别是哪一个传感器需要根据传感器号（Sensor ID）。&lt;br /&gt;
[[File: find sensor.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*在已添加好的传感器页面下，可观察风速传感器传过来的风速值。点击打开图表可观察由时间（横轴）与数值（纵轴）绘制而成的折线图。见下图。（图表中三个台阶分别是对应3.3V，单节干电池，GND 接入A0，用于模拟风速传感器，实测风速传感器的输出可参考[http://www.microduino.cc/wiki/index.php?title=%E7%AC%AC%E4%B8%89%E5%8D%81%E4%BA%8C%E8%AF%BE--Microduino%E4%B8%8E%E9%A3%8E%E9%80%9F%E4%BC%A0%E6%84%9F%E5%99%A8/zh  基础教程 Microduino与风速传感器 ]&lt;br /&gt;
[[File: windFinish.jpg|600px|center|thumb]]&lt;br /&gt;
*在yeelink网站首页可下载安卓与苹果的客户端程序，手机客户端程序也可非常方便的获取数据，手机只需输入一次用户名密码，以后再登录时直接点击我的Yeelink便可方便的进入了。试试吧……&lt;br /&gt;
&lt;br /&gt;
==结果==&lt;br /&gt;
Yeelink中的数据与相关图表有变化，说明上传成功。反向控制程序读者可参考[https://github.com/Microduino/Microduino_Tutorials/blob/master/Microduino_Sensor/yeelink_TSL2561/yeelink_TSL2561.ino  cb_debug函数]仿写。该文档笔者写作时间为2014年9月3日，yeelink的界面对比以前版本来说更加美观，数据图表显示也更加实用。&lt;br /&gt;
&lt;br /&gt;
==视频==&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Pkj</name></author>	</entry>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=Lesson_26--Microduino_%26_Operational_Amplifier--Differential_Ratio_Operation&amp;diff=4073</id>
		<title>Lesson 26--Microduino &amp; Operational Amplifier--Differential Ratio Operation</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=Lesson_26--Microduino_%26_Operational_Amplifier--Differential_Ratio_Operation&amp;diff=4073"/>
				<updated>2014-09-04T03:29:31Z</updated>
		
		<summary type="html">&lt;p&gt;Pkj：Created page with &amp;quot;Microduino &amp;amp; Operational Amplifier--Differential Ratio Operation  {| style=&amp;quot;width: 800px;&amp;quot; |- | ==Purpose== This tutorial offers the basic knowledge of the operational amplifi...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Microduino &amp;amp; Operational Amplifier--Differential Ratio Operation &lt;br /&gt;
{| style=&amp;quot;width: 800px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
==Purpose==&lt;br /&gt;
This tutorial offers the basic knowledge of the operational amplifier, adopting differential ratio operation circuit. By changing the input voltage and watch the output result, you can have a better understanding of the usage of the differential ratio operation circuit.   &lt;br /&gt;
==Equipment==&lt;br /&gt;
*'''[[Microduino-Core]]'''&lt;br /&gt;
Microduino-Core is the 8-bit single-chip development core board with Atmel ATmega328P as the core, which is an open and Arduino Uno compatible controller. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*'''[[Microduino-USBTTL]]'''&lt;br /&gt;
Microduino-USBTTL is the program download module, capable of connecting with Microduino-Core or Microduino-Core+ and making the modules communicate with the computer. It uses MicUSB as the download interface, which is also the smallest part of Microduino.  Microduino is just as small as a quarter. Besides, the downlaod cable is just like the USB cable of most smart phones, easy to use.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Other hardware equipment&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|Related hardware||Number||Function &lt;br /&gt;
|-&lt;br /&gt;
|LM358||One||As a dual operational amplifier, easy to achieve the mathematical operation circuit.  &lt;br /&gt;
|-&lt;br /&gt;
|30K Ω resistor ||Two||For differential ratio operation.  &lt;br /&gt;
|-&lt;br /&gt;
|3K Ω resistor||Two||For differential ratio operation.&lt;br /&gt;
|-             &lt;br /&gt;
|adjustable DC power supply ||One||By adjusting the button, you can change the output voltage. In this example, we adopts 0-60V adjustable DC power supply. (Below the 36V safe voltage.)  &lt;br /&gt;
|-&lt;br /&gt;
|USB cable ||One||For connecting Microduino modules and PC. &lt;br /&gt;
|-&lt;br /&gt;
|Breadboard ||One ||All components gather here.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|Jumper ||One box||Connector&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
===Adjustable DC power supply===&lt;br /&gt;
We often see the adjustable DC power supply in the lab. By adjusting the button of the potentiometer, the output voltage will change along with the adjustment of the button, which will often be shown on the LED display screen. The maximum voltage and current value allowed by the adjustable DC power supply will be different according to various needs. &lt;br /&gt;
The most common adjustable DC power supply can be classified into two: One is the switching power supply, which has high output efficiency but has turbulence. The other is the linear power supply, which has a stable output and lower efficiency. This example adopts the 0-60V adjustable DC power supply with the maximum current output of 20A. (Switching power supply)&lt;br /&gt;
&lt;br /&gt;
[[File: 可调直流电源实物.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
==Schematic==&lt;br /&gt;
[[File: diff358Protel.jpg|600px|center|thumb]]&lt;br /&gt;
[[File: diff358Fritz.jpg|600px|center|thumb]]	 &lt;br /&gt;
What will you do if you want to measure the voltage of a 24V-battery and output the voltage value via Microduino? The first thing you think of may be lowering the voltage to one-tenth by resistive subdivision. (That is 2.4V, which can be recognized by Microduino analog interface.)  Yes, that works! By the resistive subdivision, the measured negative voltage terminal needs to be connected with Microduino’s GND end. &lt;br /&gt;
By LM358 differential ratio operation circuit, this example can also achieve the measurement of the voltage(24V) without connecting the negative end of the voltage and Microduino’s GND end. In the example, Vout=Vin*（R2/R1） provided that R1=R3, R2=R4. If R1=R3=3M, R2=R4=30K, you can detect a relatively higher voltage in the circuit. (The editor has used the parameter testing 400v DC voltage.)&lt;br /&gt;
(Notes: The 3M resistor is cascaded by 1M and 2M resistors. Mind your safety when testing the high voltage.) &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==program==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
///A0  connect  amp358  output&lt;br /&gt;
int  anaValueAmp;  //amp  value   map(0--1023)&lt;br /&gt;
float anaVoltageAmp;  //amp  output  voltage&lt;br /&gt;
void  setup()&lt;br /&gt;
{&lt;br /&gt;
  Serial.begin(9600);&lt;br /&gt;
}&lt;br /&gt;
void loop()&lt;br /&gt;
{&lt;br /&gt;
  anaValueAmp=analogRead(A0);&lt;br /&gt;
  anaVoltageAmp=anaValueAmp/1023.0*5;&lt;br /&gt;
  Serial.print(&amp;quot;Amp358  output  voltage  is  &amp;quot;);&lt;br /&gt;
  Serial.print(anaVoltageAmp);&lt;br /&gt;
  Serial.println(&amp;quot;V&amp;quot;);&lt;br /&gt;
  delay(1000);&lt;br /&gt;
  Serial.print(&amp;quot;The actual voltage  is  &amp;quot;);&lt;br /&gt;
  Serial.print(anaVoltageAmp*10);&lt;br /&gt;
  Serial.println(&amp;quot;V&amp;quot;);&lt;br /&gt;
  delay(1000);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Debugging==&lt;br /&gt;
[[File: 差分比例运算实物.jpg|600px|center|thumb]]&lt;br /&gt;
*You can refer to the wire connection above and make sure it is all right.  &lt;br /&gt;
*You can refer to the wire connection above and make sure it is all right. &lt;br /&gt;
*Compile the program and choose the right board and the related serial port.  &lt;br /&gt;
&lt;br /&gt;
*Click Upload, open the serial monitor of Arduino IDE and watch the result.  &lt;br /&gt;
[[File: diffComOutput.jpg|600px|center|thumb]]&lt;br /&gt;
*Adjust the DC power supply and you can watch the change of the output voltage in the serial port. The picture above shows the actual output value in the serial monitor when the output voltage is 12V or 24V.  &lt;br /&gt;
&lt;br /&gt;
*You can refer to the wire connection above and make sure it is all right.  &lt;br /&gt;
*Copy the program to Arduino IDE. &lt;br /&gt;
*Compile the program and choose the right board and the related serial port.  &lt;br /&gt;
*Click Upload, open the serial monitor of Arduino IDE and watch the result. The output voltage of Vout-pin 1 can be measured by the multimeter.  &lt;br /&gt;
[[File: 358invertComOutput.jpg|600px|center|thumb]]&lt;br /&gt;
*Change the resistance value and watch the change of the output voltage value in the serial monitor. Eg. R3=2K and the other resistance keeps unchanged. Watch the output voltage and compare it with the formula.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Result==&lt;br /&gt;
Build the circuit according to the schematic. After the download, you can watch the output voltage in the serial monitor of Arduino IDE. By analyzing the output data in the serial monitor, you can see the differential ratio operation circuit can measure the input voltage. &lt;br /&gt;
Although the actual serial output voltage exists some errors and Microduino’s 5V end is lower than 5V., there is anaVoltageAmp=anaValueAmp/1023.0*5 statement in the program. If you connect Microduino’s 3V3 end to the analog quantity REF end and then modify the program, you can reduce the error. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Video==&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Pkj</name></author>	</entry>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=%E7%AC%AC%E4%BA%8C%E5%8D%81%E5%85%AD%E8%AF%BE--Microduino%E4%B8%8E%E8%BF%90%E7%AE%97%E6%94%BE%E5%A4%A7%E5%99%A8--%E5%B7%AE%E5%88%86%E6%AF%94%E4%BE%8B%E8%BF%90%E7%AE%97/zh&amp;diff=4072</id>
		<title>第二十六课--Microduino与运算放大器--差分比例运算/zh</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=%E7%AC%AC%E4%BA%8C%E5%8D%81%E5%85%AD%E8%AF%BE--Microduino%E4%B8%8E%E8%BF%90%E7%AE%97%E6%94%BE%E5%A4%A7%E5%99%A8--%E5%B7%AE%E5%88%86%E6%AF%94%E4%BE%8B%E8%BF%90%E7%AE%97/zh&amp;diff=4072"/>
				<updated>2014-09-04T03:29:14Z</updated>
		
		<summary type="html">&lt;p&gt;Pkj：&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Language|Lesson_26--Microduino &amp;amp; Operational Amplifier--Differential Ratio Operation}}&lt;br /&gt;
Microduino与运算放大器—差分比例运算&lt;br /&gt;
{| style=&amp;quot;width: 800px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
==目的==&lt;br /&gt;
本教程提供了运算放大器的基础知识，该示例为差分比例运算电路。通过更改输入电压，观察输出结果，理解差分比例运算电路的使用方法。&lt;br /&gt;
==设备==&lt;br /&gt;
*'''[[Microduino-Core]]'''&lt;br /&gt;
Microduino-Core 是以 Atmel ATmega328P为核心的8位单片机开发核心板，是一个开源的、与 Arduino UNO 兼容的控制器模块。&lt;br /&gt;
&lt;br /&gt;
*'''[[Microduino-USBTTL]]'''&lt;br /&gt;
下载程序模块，可直接与 Microduino-Core 或者Microduino-Core+ 相连，让他们与计算机通讯。它的下载接口用的是MicUSB，这也是Microduino小巧的一部分。Microduino大小与一枚一元硬币差不多大。下载线与绝大多数智能手机usb数据线是一样的，方便实用。&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;
|LM358||1个||常用双路运算放大器，可方便实现数学运算电路。&lt;br /&gt;
|-&lt;br /&gt;
|30K电阻 ||2个||用于差分比例运算。&lt;br /&gt;
|-&lt;br /&gt;
|3K电阻||2个||用于差分比例运算。&lt;br /&gt;
|-             &lt;br /&gt;
|可调直流电源 ||1个||通过调节旋钮，可以改变直流输出电压。本示例采用的是0-60V可调直流电源。调试时未超过36V安全电压。&lt;br /&gt;
|-&lt;br /&gt;
|USB数据连接线 ||1条||连通Microduino模块与计算机。&lt;br /&gt;
|-&lt;br /&gt;
|面包板 ||1块 ||各个元器件汇聚于此。&lt;br /&gt;
|-&lt;br /&gt;
|面包板跳线 ||1盒||电气连接线。&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
===可调直流电源===&lt;br /&gt;
直流可调电源在我们实验时会经常用到。通过调节电位器旋钮，输出电压值会随着旋钮的调节而改变，输出电压值会显示在LED显示屏上（也有指针指示的）。可调直流电源允许输出的最高电压值与电流值依需求而定。&lt;br /&gt;
常见的可调直流电源分两种，一种是开关电源形式，输出效率高，但是输出会有些毛刺。一种是线性调整管形式，输出纹波系数好，效率相比开关电源形式低，线性调整管形式的可调直流电源外观最明显的地方&lt;br /&gt;
是电源的散热片上会有金属封装的调整管（一般为铁封的三极管）。该示例采用的是输出0-60V可调的直流电源，电流最高输出20A，开关电源形式。&lt;br /&gt;
[[File: 可调直流电源实物.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
==实验原理图==&lt;br /&gt;
[[File: diff358Protel.jpg|600px|center|thumb]]&lt;br /&gt;
[[File: diff358Fritz.jpg|600px|center|thumb]]&lt;br /&gt;
如果需要测量一个24V左右蓄电池的电压，然后由Microduino输出该电压值，你会怎么试验?最先想到的可能是通过电阻分压的方法，把24V电压降低为原来的十分之一，2.4V电压再由Microduino的模拟口识别。&lt;br /&gt;
通过电阻分压的这种方法是可行的。电阻分压的这种方式被测量的电压负极端需要和Microduino的GND连接在一起。&lt;br /&gt;
本示例通过LM358差分比例运算电路也可以实现测量24V电压值，并且蓄电池的负极端没有&lt;br /&gt;
和Microduino的GND连接在一起。该示例中Vout=Vin*（R2/R1），前提是R1=R3，R2=R4。如果R1=R3=3M，R2=R4=30K该电路还可以测试相对更高电压，笔者曾用该参数测试过400V的直流电压&lt;br /&gt;
(备注：3M的电阻由1M与2M的电阻串联而得，1M与2M的电阻功率均为1/4W)。测试高电压时需注意安全。&lt;br /&gt;
&lt;br /&gt;
==程序==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
///A0  connect  amp358  output&lt;br /&gt;
int  anaValueAmp;  //amp  value   map(0--1023)&lt;br /&gt;
float anaVoltageAmp;  //amp  output  voltage&lt;br /&gt;
void  setup()&lt;br /&gt;
{&lt;br /&gt;
  Serial.begin(9600);&lt;br /&gt;
}&lt;br /&gt;
void loop()&lt;br /&gt;
{&lt;br /&gt;
  anaValueAmp=analogRead(A0);&lt;br /&gt;
  anaVoltageAmp=anaValueAmp/1023.0*5;&lt;br /&gt;
  Serial.print(&amp;quot;Amp358  output  voltage  is  &amp;quot;);&lt;br /&gt;
  Serial.print(anaVoltageAmp);&lt;br /&gt;
  Serial.println(&amp;quot;V&amp;quot;);&lt;br /&gt;
  delay(1000);&lt;br /&gt;
  Serial.print(&amp;quot;The actual voltage  is  &amp;quot;);&lt;br /&gt;
  Serial.print(anaVoltageAmp*10);&lt;br /&gt;
  Serial.println(&amp;quot;V&amp;quot;);&lt;br /&gt;
  delay(1000);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==调试==&lt;br /&gt;
[[File: 差分比例运算实物.jpg|600px|center|thumb]]&lt;br /&gt;
*参考上图用导线连接完毕并确认无误。&lt;br /&gt;
*把程序复制到arduinoIDE中。&lt;br /&gt;
*编译程序，选择正确的板卡与相应串口。&lt;br /&gt;
*点击Upload，下载完毕后打开arduinoIDE自带的串口监视器，观察结果。&lt;br /&gt;
[[File: diffComOutput.jpg|600px|center|thumb]]&lt;br /&gt;
*调节直流可调电源，可观察到串口监视器输出电压值的变化。上图为输入12V（电源LED显示值）与24V（电源LED显示值）时串口监视器的实际输出值。&lt;br /&gt;
&lt;br /&gt;
==结果==&lt;br /&gt;
按照原理图连接好电路。程序下载后，可在arduinoIDE自带的串口监视器中观察输出电压。分析串口监视器输出数据，可以看出该差分比例运算电路可以测量输入电压值。&lt;br /&gt;
串口实际输出电压与输入有些误差， Microduino的5V端实际电压值略低于5V，而程序中有anaVoltageAmp=anaValueAmp/1023.0*5;语句。如果把Microduino的3V3端接入模拟量参考输入REF端，然后修改程序，会减小该误差。&lt;br /&gt;
&lt;br /&gt;
==视频==&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Pkj</name></author>	</entry>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=%E7%AC%AC%E4%B8%89%E5%8D%81%E4%BA%8C%E8%AF%BE--Microduino%E4%B8%8E%E9%A3%8E%E9%80%9F%E4%BC%A0%E6%84%9F%E5%99%A8/zh&amp;diff=4071</id>
		<title>第三十二课--Microduino与风速传感器/zh</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=%E7%AC%AC%E4%B8%89%E5%8D%81%E4%BA%8C%E8%AF%BE--Microduino%E4%B8%8E%E9%A3%8E%E9%80%9F%E4%BC%A0%E6%84%9F%E5%99%A8/zh&amp;diff=4071"/>
				<updated>2014-09-03T16:17:00Z</updated>
		
		<summary type="html">&lt;p&gt;Pkj：&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Microduino与风速传感器&lt;br /&gt;
{| style=&amp;quot;width: 800px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
==目的==&lt;br /&gt;
本教程通过Microduino读取风速传感器（风速仪）的信息，使读者了解风速传感器，掌握Microduino使用模拟输入口的编程方法。&lt;br /&gt;
&lt;br /&gt;
==设备==&lt;br /&gt;
*'''[[Microduino-Core]]'''&lt;br /&gt;
Microduino-Core 是以 Atmel ATmega328P为核心的8位单片机开发核心板，是一个开源的、与 Arduino UNO 兼容的控制器模块。&lt;br /&gt;
&lt;br /&gt;
*'''[[Microduino-USBTTL]]'''&lt;br /&gt;
下载程序模块，可直接与 Microduino-Core 或者Microduino-Core+ 相连，让他们与计算机通讯。它的下载接口用的是MicUSB，这也是Microduino小巧的一部分。Microduino大小与一枚一元硬币差不多大。下载线与绝大多数智能手机usb数据线是一样的，方便实用。&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;
|风速传感器 ||1个 ||用于监测风速，本示例输出信号为0-5V。&lt;br /&gt;
|-&lt;br /&gt;
|24V 1A开关电源||1个 ||风速传感器供电用，本示例采用明纬牌开关电源。&lt;br /&gt;
|-&lt;br /&gt;
|USB数据连接线 ||1条||连通Microduino模块与计算机。&lt;br /&gt;
|-&lt;br /&gt;
|面包板 ||1块 ||各个元器件汇聚于此。&lt;br /&gt;
|-&lt;br /&gt;
|面包板跳线 ||1盒||电气连接线。&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===风速传感器===&lt;br /&gt;
风速传感器是一种专门用于监测风速的检测仪表。其输出形式可分为485输出（一般会选择modbus协议）、4-20mA电流、0-5V。该示例应用的风速传感器采用的0-5V输出的形式（买风速传感器时和卖家说清楚就0K了），可非常方便的被Microduino模拟口识别。该示例应用的风速传感器最高监测风速为30米每秒，也就是30米每秒的风到来的时候输出电压临近5V，在0米每秒到30米每秒之间的输出电压（0-5V）线性分布。其供电电压为直流12V到24V，所以还需外接一个电源。线缆的三根引出线我们需要搞清楚。&lt;br /&gt;
*1：地线，外接电源的地线与Microduino的地线与线缆引出的接地线连在一起。&lt;br /&gt;
*2：电源输入正极线，线缆引出电源线需要和外接电源的正极连在一起，该文外接直流电为24V。&lt;br /&gt;
*3：模拟量输出线，线缆引出的模拟量输出线可直接接入Microduino的A0引脚。&lt;br /&gt;
 [[File: windSpeedSensor.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
==实验原理图==&lt;br /&gt;
下图为实拍图，风速传感器在转动状态。风速传感器底座下面为24V开关电源。&lt;br /&gt;
[[File:windRealConnet.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
==程序==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
void  setup()&lt;br /&gt;
{&lt;br /&gt;
  Serial.begin(9600);&lt;br /&gt;
}&lt;br /&gt;
void loop()&lt;br /&gt;
{&lt;br /&gt;
  float myVoltage=analogRead(A0)/1023.0*5.0;&lt;br /&gt;
  delay(10);&lt;br /&gt;
  float windSpeed=myVoltage*30.0/5.0;//max detect windspeed 30m/s&lt;br /&gt;
  windSpeed=windSpeed*1.0;//change this value (1.0) to calibrate&lt;br /&gt;
  if(windSpeed&amp;lt;0.15) //debounce  &lt;br /&gt;
  {&lt;br /&gt;
    Serial.print(&amp;quot;Wind  speed   &amp;quot;);&lt;br /&gt;
    Serial.println(&amp;quot;0m/s&amp;quot;);&lt;br /&gt;
    delay(1000);&lt;br /&gt;
  }&lt;br /&gt;
  else&lt;br /&gt;
  {&lt;br /&gt;
    Serial.print(&amp;quot;Wind  speed   &amp;quot;);&lt;br /&gt;
    Serial.print(windSpeed,1 );// output (&amp;quot;0.0&amp;quot;) fraction&lt;br /&gt;
    Serial.println(&amp;quot;m/s&amp;quot;);&lt;br /&gt;
    delay(1000);&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==调试==&lt;br /&gt;
*用导线连接硬件并确认无误。&lt;br /&gt;
*把程序复制到ArduinoIDE中。&lt;br /&gt;
*编译程序，选择正确的板卡与相应串口。&lt;br /&gt;
*点击Upload，下载完毕后打开ArduinoIDE自带的串口监视器，用手拨动风速仪(或放到室外实际观察)观察结果。下图是手拨风速仪时显示的风速值。&lt;br /&gt;
*米每秒对应几级风读者可搜索下，相应的程序也可修改下，依读者所需。&lt;br /&gt;
*数据可上传至yeelink，相关内容请参考wiki-- Microduino  传感器教程。&lt;br /&gt;
*笔者曾测试该风速传感器与某品牌手持式风速传感器（带液晶屏显示），ArduinoIDE 串口输出数据与手持式液晶屏显示数据基本一致。&lt;br /&gt;
[[File:windComOutput.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
==结果==&lt;br /&gt;
按照原理图连接好电路。程序下载后，可在ArduinoIDE自带的串口监视器中观察风速值。&lt;br /&gt;
&lt;br /&gt;
==视频==&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Pkj</name></author>	</entry>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=Microduino_%E9%A3%8E%E9%80%9F%E4%BC%A0%E6%84%9F%E5%99%A8%E2%80%94%E9%A3%8E%E9%80%9F%E5%80%BC%E4%B8%8A%E4%BC%A0%E5%88%B0yeelink/zh&amp;diff=4070</id>
		<title>Microduino 风速传感器—风速值上传到yeelink/zh</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=Microduino_%E9%A3%8E%E9%80%9F%E4%BC%A0%E6%84%9F%E5%99%A8%E2%80%94%E9%A3%8E%E9%80%9F%E5%80%BC%E4%B8%8A%E4%BC%A0%E5%88%B0yeelink/zh&amp;diff=4070"/>
				<updated>2014-09-03T16:09:28Z</updated>
		
		<summary type="html">&lt;p&gt;Pkj：&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Microduino与风速传感器—风速值上传到yeelink&lt;br /&gt;
{| style=&amp;quot;width: 800px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
==目的==&lt;br /&gt;
本教程通过Microduino读取风速传感器的信息，使读者了解风速传感器，掌握Microduino使用模拟输入口的编程方法。&lt;br /&gt;
==设备==&lt;br /&gt;
*'''[[Microduino-Core]]'''&lt;br /&gt;
*'''[[Microduino-USBTTL]]'''&lt;br /&gt;
*'''[[Microduino-RJ45]]'''&lt;br /&gt;
*'''[[Microduino-ENC28J60]]'''&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;
|风速传感器 ||1个 ||用于监测风速，输出信号为0-5V。&lt;br /&gt;
|-&lt;br /&gt;
|24V 1A开关电源||1个 ||风速传感器供电用，本示例采用明纬牌开关电源。&lt;br /&gt;
|-&lt;br /&gt;
|USB数据连接线 ||1条||连通Microduino模块与计算机。&lt;br /&gt;
|-&lt;br /&gt;
|面包板 ||1块 ||各个元器件汇聚于此。&lt;br /&gt;
|-&lt;br /&gt;
|面包板跳线 ||1盒||电气连接线。&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==实验原理图==&lt;br /&gt;
 [[File:windFritz.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
==程序==&lt;br /&gt;
&lt;br /&gt;
https://github.com/Microduino/Microduino_Tutorials/tree/master/Microduino_Advanced/Microduino_wind_yeelink&lt;br /&gt;
&lt;br /&gt;
==调试==&lt;br /&gt;
*把风速仪的模拟量输出端与Microduino的A0连接在一起，地连接在一起。&lt;br /&gt;
*把程序刷写到Microduino-core中。&lt;br /&gt;
*把Microduino-RJ45通过网线接入路由器LAN口。&lt;br /&gt;
*登录yeelink网站，进入首页（见下图），首页会有yeelink公司出品的灯光产品(yeelight)资讯，自然而然，yeelight的灯光产品是可以通过yeelink远程控制的(笔者测试过zigbee控制的yeelight)。   http://www.yeelink.net/&lt;br /&gt;
[[File:firstPage.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*在yeelink首页单击登录，输入已注册的用户名与密码，（没注册的朋友需要先注册下，注册后需邮箱激活，很简单的）。登录界面见下图。&lt;br /&gt;
[[File: login pic.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*登录后点击用户中心，可进入自己账户的管理首页。API Key文本框中数据是我们注册用户时yeelink服务器分配给用户的ID，也是在Microduino程序中需要用到的。由下图可以看到，笔者已添加一个名为windSpeed的设备，设备ID号为13892（该数值也是microduino程序中需要用到滴）。还可以点击添加新设备继续添加设备。由此可以看出，一个API Key也就是对应一个账户，一个账户下面可以有N多个设备，区别是哪一个设备需要根据设备号（Device ID）。&lt;br /&gt;
[[File: userCenter.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*点击已添加的设备名字，可进入设备管理页面。见下图。点击编辑可对该设备名字以及描述等信息进行编辑。&lt;br /&gt;
[[File: device manage.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*点击添加传感器，可在该DeviceID下面添加传感器。见下图。笔者添加了一个名为windSensor，类型为数值型的传感器。&lt;br /&gt;
[[File: add sensor.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*保存后获得的传感器号（SensorID）为23058（该数值也是Microduino程序中需要用到滴）。&lt;br /&gt;
[[File: add sensor finish.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*如果这时点击我的设备。会发现传感器状态：的后面多出了一个小方块，每个小方块都代表了该设备下面的一个传感器。也就是说一个设备下面可以有N多个传感器，区别是哪一个传感器需要根据传感器号（Sensor ID）。&lt;br /&gt;
[[File: find sensor.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*在已添加好的传感器页面下，可观察风速传感器传过来的风速值。点击打开图表可观察由时间与数值组成的二维表。见下图。（图表中三个台阶分别是对应3.3V，单节干电池，GND 接入A0，用于模拟风速传感器，实测风速传感器的输出可参考[http://www.microduino.cc/wiki/index.php?title=%E7%AC%AC%E4%B8%89%E5%8D%81%E4%BA%8C%E8%AF%BE--Microduino%E4%B8%8E%E9%A3%8E%E9%80%9F%E4%BC%A0%E6%84%9F%E5%99%A8/zh  基础教程 Microduino与风速传感器 ]&lt;br /&gt;
[[File: windFinish.jpg|600px|center|thumb]]&lt;br /&gt;
*在yeelink网站首页可下载安卓与苹果的客户端程序，手机客户端程序也可非常方便的获取数据，手机只需输入一次用户名密码，以后再登录时直接点击我的Yeelink便可方便的进入了。试试吧……&lt;br /&gt;
&lt;br /&gt;
==结果==&lt;br /&gt;
Yeelink中的数据与相关图表有变化，说明上传成功。反向控制程序读者可参考[https://github.com/Microduino/Microduino_Tutorials/blob/master/Microduino_Sensor/yeelink_TSL2561/yeelink_TSL2561.ino  cb_debug函数]仿写。该文档笔者写作时间为2014年9月3日，yeelink的界面对比以前版本来说更加美观，数据图表显示也更加实用。&lt;br /&gt;
&lt;br /&gt;
==视频==&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Pkj</name></author>	</entry>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=Microduino_%E9%A3%8E%E9%80%9F%E4%BC%A0%E6%84%9F%E5%99%A8%E2%80%94%E9%A3%8E%E9%80%9F%E5%80%BC%E4%B8%8A%E4%BC%A0%E5%88%B0yeelink/zh&amp;diff=4069</id>
		<title>Microduino 风速传感器—风速值上传到yeelink/zh</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=Microduino_%E9%A3%8E%E9%80%9F%E4%BC%A0%E6%84%9F%E5%99%A8%E2%80%94%E9%A3%8E%E9%80%9F%E5%80%BC%E4%B8%8A%E4%BC%A0%E5%88%B0yeelink/zh&amp;diff=4069"/>
				<updated>2014-09-03T16:07:44Z</updated>
		
		<summary type="html">&lt;p&gt;Pkj：/* 调试 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Microduino与风速传感器—风速值上传到yeelink&lt;br /&gt;
{| style=&amp;quot;width: 800px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
==目的==&lt;br /&gt;
本教程通过Microduino读取风速传感器的信息，使读者了解风速传感器，掌握Microduino使用模拟输入口的编程方法。&lt;br /&gt;
==设备==&lt;br /&gt;
*'''[[Microduino-Core]]'''&lt;br /&gt;
*'''[[Microduino-USBTTL]]'''&lt;br /&gt;
*'''[[Microduino-RJ45]]'''&lt;br /&gt;
*'''[[Microduino-ENC28J60]]'''&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;
|风速传感器 ||1个 ||用于监测风速，输出信号为0-5V。&lt;br /&gt;
|-&lt;br /&gt;
|24V 1A开关电源||1个 ||风速传感器供电用，本示例采用明纬牌开关电源。&lt;br /&gt;
|-&lt;br /&gt;
|USB数据连接线 ||1条||连通Microduino模块与计算机。&lt;br /&gt;
|-&lt;br /&gt;
|面包板 ||1块 ||各个元器件汇聚于此。&lt;br /&gt;
|-&lt;br /&gt;
|面包板跳线 ||1盒||电气连接线。&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==实验原理图==&lt;br /&gt;
 [[File:windFritz.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
==程序==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
https://github.com/Microduino/Microduino_Tutorials/tree/master/Microduino_Advanced/Microduino_wind_yeelink&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==调试==&lt;br /&gt;
*把风速仪的模拟量输出端与Microduino的A0连接在一起，地连接在一起。&lt;br /&gt;
*把程序刷写到Microduino-core中。&lt;br /&gt;
*把Microduino-RJ45通过网线接入路由器LAN口。&lt;br /&gt;
*登录yeelink网站，进入首页（见下图），首页会有yeelink公司出品的灯光产品(yeelight)资讯，自然而然，yeelight的灯光产品是可以通过yeelink远程控制的(笔者测试过zigbee控制的yeelight)。   http://www.yeelink.net/&lt;br /&gt;
[[File:firstPage.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*在yeelink首页单击登录，输入已注册的用户名与密码，（没注册的朋友需要先注册下，注册后需邮箱激活，很简单的）。登录界面见下图。&lt;br /&gt;
[[File: login pic.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*登录后点击用户中心，可进入自己账户的管理首页。API Key文本框中数据是我们注册用户时yeelink服务器分配给用户的ID，也是在Microduino程序中需要用到的。由下图可以看到，笔者已添加一个名为windSpeed的设备，设备ID号为13892（该数值也是microduino程序中需要用到滴）。还可以点击添加新设备继续添加设备。由此可以看出，一个API Key也就是对应一个账户，一个账户下面可以有N多个设备，区别是哪一个设备需要根据设备号（Device ID）。&lt;br /&gt;
[[File: userCenter.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*点击已添加的设备名字，可进入设备管理页面。见下图。点击编辑可对该设备名字以及描述等信息进行编辑。&lt;br /&gt;
[[File: device manage.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*点击添加传感器，可在该DeviceID下面添加传感器。见下图。笔者添加了一个名为windSensor，类型为数值型的传感器。&lt;br /&gt;
[[File: add sensor.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*保存后获得的传感器号（SensorID）为23058（该数值也是Microduino程序中需要用到滴）。&lt;br /&gt;
[[File: add sensor finish.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*如果这时点击我的设备。会发现传感器状态：的后面多出了一个小方块，每个小方块都代表了该设备下面的一个传感器。也就是说一个设备下面可以有N多个传感器，区别是哪一个传感器需要根据传感器号（Sensor ID）。&lt;br /&gt;
[[File: find sensor.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*在已添加好的传感器页面下，可观察风速传感器传过来的风速值。点击打开图表可观察由时间与数值组成的二维表。见下图。（图表中三个台阶分别是对应3.3V，单节干电池，GND 接入A0，用于模拟风速传感器，实测风速传感器的输出可参考[http://www.microduino.cc/wiki/index.php?title=%E7%AC%AC%E4%B8%89%E5%8D%81%E4%BA%8C%E8%AF%BE--Microduino%E4%B8%8E%E9%A3%8E%E9%80%9F%E4%BC%A0%E6%84%9F%E5%99%A8/zh  基础教程 Microduino与风速传感器 ]&lt;br /&gt;
[[File: windFinish.jpg|600px|center|thumb]]&lt;br /&gt;
*在yeelink网站首页可下载安卓与苹果的客户端程序，手机客户端程序也可非常方便的获取数据，手机只需输入一次用户名密码，以后再登录时直接点击我的Yeelink便可方便的进入了。试试吧……&lt;br /&gt;
&lt;br /&gt;
==结果==&lt;br /&gt;
Yeelink中的数据与相关图表有变化，说明上传成功。反向控制程序读者可参考[https://github.com/Microduino/Microduino_Tutorials/blob/master/Microduino_Sensor/yeelink_TSL2561/yeelink_TSL2561.ino  cb_debug函数]仿写。该文档笔者写作时间为2014年9月3日，yeelink的界面对比以前版本来说更加美观，数据图表显示也更加实用。&lt;br /&gt;
&lt;br /&gt;
==视频==&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Pkj</name></author>	</entry>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=Microduino_%E9%A3%8E%E9%80%9F%E4%BC%A0%E6%84%9F%E5%99%A8%E2%80%94%E9%A3%8E%E9%80%9F%E5%80%BC%E4%B8%8A%E4%BC%A0%E5%88%B0yeelink/zh&amp;diff=4068</id>
		<title>Microduino 风速传感器—风速值上传到yeelink/zh</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=Microduino_%E9%A3%8E%E9%80%9F%E4%BC%A0%E6%84%9F%E5%99%A8%E2%80%94%E9%A3%8E%E9%80%9F%E5%80%BC%E4%B8%8A%E4%BC%A0%E5%88%B0yeelink/zh&amp;diff=4068"/>
				<updated>2014-09-03T16:05:29Z</updated>
		
		<summary type="html">&lt;p&gt;Pkj：&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Microduino与风速传感器—风速值上传到yeelink&lt;br /&gt;
{| style=&amp;quot;width: 800px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
==目的==&lt;br /&gt;
本教程通过Microduino读取风速传感器的信息，使读者了解风速传感器，掌握Microduino使用模拟输入口的编程方法。&lt;br /&gt;
==设备==&lt;br /&gt;
*'''[[Microduino-Core]]'''&lt;br /&gt;
*'''[[Microduino-USBTTL]]'''&lt;br /&gt;
*'''[[Microduino-RJ45]]'''&lt;br /&gt;
*'''[[Microduino-ENC28J60]]'''&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;
|风速传感器 ||1个 ||用于监测风速，输出信号为0-5V。&lt;br /&gt;
|-&lt;br /&gt;
|24V 1A开关电源||1个 ||风速传感器供电用，本示例采用明纬牌开关电源。&lt;br /&gt;
|-&lt;br /&gt;
|USB数据连接线 ||1条||连通Microduino模块与计算机。&lt;br /&gt;
|-&lt;br /&gt;
|面包板 ||1块 ||各个元器件汇聚于此。&lt;br /&gt;
|-&lt;br /&gt;
|面包板跳线 ||1盒||电气连接线。&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==实验原理图==&lt;br /&gt;
 [[File:windFritz.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
==程序==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
https://github.com/Microduino/Microduino_Tutorials/tree/master/Microduino_Advanced/Microduino_wind_yeelink&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==调试==&lt;br /&gt;
*把风速仪的模拟量输出端与Microduino的A0连接在一起，地连接在一起。&lt;br /&gt;
*把程序刷写到Microduino-core中。&lt;br /&gt;
*把Microduino-RJ45通过网线接入路由器LAN口。&lt;br /&gt;
*登录yeelink网站，进入首页（见下图），首页会有yeelink公司出品的灯光产品(yeelight)资讯，自然而然，yeelight的灯光产品是可以通过yeelink远程控制的(笔者测试过zigbee控制的yeelight)。   http://www.yeelink.net/&lt;br /&gt;
[[File:firstPage.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*在yeelink首页单击登录，输入已注册的用户名与密码，（没注册的朋友需要先注册下，注册后需邮箱激活，很简单的）。登录界面见下图。&lt;br /&gt;
[[File: login pic.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*登录后点击用户中心，可进入自己账户的管理首页。API Key文本框中数据是我们注册用户时yeelink服务器分配给用户的ID，也是在Microduino程序中需要用到的。由下图可以看到，笔者已添加一个名为windSpeed的设备，设备ID号为13892（该数值也是microduino程序中需要用到滴）。还可以点击添加新设备继续添加设备。由此可以看出，一个API Key也就是对应一个账户，一个账户下面可以有N多个设备，区别是哪一个设备需要根据设备号（Device ID）。&lt;br /&gt;
[[File: userCenter.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*点击已添加的设备名字，可进入设备管理页面。见下图。点击编辑可对该设备名字以及描述等信息进行编辑。&lt;br /&gt;
[[File: device manage.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*点击添加传感器，可在该DeviceID下面添加传感器。见下图。笔者添加了一个名为windSensor，类型为数值型的传感器。&lt;br /&gt;
[[File: add sensor.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*保存后获得的传感器号（SensorID）为23058（该数值也是Microduino程序中需要用到滴）。&lt;br /&gt;
[[File: add sensor finish.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*如果这时点击我的设备。会发现传感器状态：的后面多出了一个小方块，每个小方块都代表了该设备下面的一个传感器。也就是说一个设备下面可以有N多个传感器，区别是哪一个传感器需要根据传感器号（Sensor ID）。&lt;br /&gt;
[[File: find sensor.jpg|600px|center|thumb]]&lt;br /&gt;
 *在已添加好的传感器页面下，可观察风速传感器传过来的风速值。点击打开图表可观察由时间与数值组成的二维表。见下图。（图表中三个台阶分别是对应3.3V，单节干电池，GND 接入A0，用于模拟风速传感器，实测风速传感器的输出可参考[http://www.microduino.cc/wiki/index.php?title=%E7%AC%AC%E4%B8%89%E5%8D%81%E4%BA%8C%E8%AF%BE--Microduino%E4%B8%8E%E9%A3%8E%E9%80%9F%E4%BC%A0%E6%84%9F%E5%99%A8/zh  基础教程 Microduino与风速传感器 ]&lt;br /&gt;
[[File: windFinish.jpg|600px|center|thumb]]&lt;br /&gt;
*在yeelink网站首页可下载安卓与苹果的客户端程序，手机客户端程序也可非常方便的获取数据，手机只需输入一次用户名密码，以后再登录时直接点击我的Yeelink便可方便的进入了。试试吧……&lt;br /&gt;
&lt;br /&gt;
==结果==&lt;br /&gt;
Yeelink中的数据与相关图表有变化，说明上传成功。反向控制程序读者可参考[https://github.com/Microduino/Microduino_Tutorials/blob/master/Microduino_Sensor/yeelink_TSL2561/yeelink_TSL2561.ino  cb_debug函数]仿写。该文档笔者写作时间为2014年9月3日，yeelink的界面对比以前版本来说更加美观，数据图表显示也更加实用。&lt;br /&gt;
&lt;br /&gt;
==视频==&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Pkj</name></author>	</entry>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=Microduino_%E9%A3%8E%E9%80%9F%E4%BC%A0%E6%84%9F%E5%99%A8%E2%80%94%E9%A3%8E%E9%80%9F%E5%80%BC%E4%B8%8A%E4%BC%A0%E5%88%B0yeelink/zh&amp;diff=4067</id>
		<title>Microduino 风速传感器—风速值上传到yeelink/zh</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=Microduino_%E9%A3%8E%E9%80%9F%E4%BC%A0%E6%84%9F%E5%99%A8%E2%80%94%E9%A3%8E%E9%80%9F%E5%80%BC%E4%B8%8A%E4%BC%A0%E5%88%B0yeelink/zh&amp;diff=4067"/>
				<updated>2014-09-03T16:03:14Z</updated>
		
		<summary type="html">&lt;p&gt;Pkj：/* 调试 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Microduino与风速传感器—风速值上传到yeelink&lt;br /&gt;
{| style=&amp;quot;width: 800px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
==目的==&lt;br /&gt;
本教程通过Microduino读取风速传感器的信息，使读者了解风速传感器，掌握Microduino使用模拟输入口的编程方法。&lt;br /&gt;
==设备==&lt;br /&gt;
*'''[[Microduino-Core]]'''&lt;br /&gt;
*'''[[Microduino-USBTTL]]'''&lt;br /&gt;
*'''[[Microduino-RJ45]]'''&lt;br /&gt;
*'''[[Microduino-ENC28J60]]'''&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;
|风速传感器 ||1个 ||用于监测风速，输出信号为0-5V。&lt;br /&gt;
|-&lt;br /&gt;
|24V 1A开关电源||1个 ||风速传感器供电用，本示例采用明纬牌开关电源。&lt;br /&gt;
|-&lt;br /&gt;
|USB数据连接线 ||1条||连通Microduino模块与计算机。&lt;br /&gt;
|-&lt;br /&gt;
|面包板 ||1块 ||各个元器件汇聚于此。&lt;br /&gt;
|-&lt;br /&gt;
|面包板跳线 ||1盒||电气连接线。&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==实验原理图==&lt;br /&gt;
 [[File:windFritz.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
==程序==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
https://github.com/Microduino/Microduino_Tutorials/tree/master/Microduino_Advanced/Microduino_wind_yeelink&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==调试==&lt;br /&gt;
*把风速仪的模拟量输出端与Microduino的A0连接在一起，地连接在一起。&lt;br /&gt;
*把程序刷写到Microduino-core中。&lt;br /&gt;
*把Microduino-RJ45通过网线接入路由器LAN口。&lt;br /&gt;
*登录yeelink网站，进入首页（见下图），首页会有yeelink公司出品的灯光产品(yeelight)资讯，自然而然，yeelight的灯光产品是可以通过yeelink远程控制的(笔者测试过zigbee控制的yeelight)。   http://www.yeelink.net/&lt;br /&gt;
[[File:firstPage.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*在yeelink首页单击登录，输入已注册的用户名与密码，（没注册的朋友需要先注册下，注册后需邮箱激活，很简单的）。登录界面见下图。&lt;br /&gt;
[[File: login pic.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*登录后点击用户中心，可进入自己账户的管理首页。API Key文本框中数据是我们注册用户时yeelink服务器分配给用户的ID，也是在Microduino程序中需要用到的。由下图可以看到，笔者已添加一个名为windSpeed的设备，设备ID号为13892（该数值也是microduino程序中需要用到滴）。还可以点击添加新设备继续添加设备。由此可以看出，一个API Key也就是对应一个账户，一个账户下面可以有N多个设备，区别是哪一个设备需要根据设备号（Device ID）。&lt;br /&gt;
[[File: userCenter.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*点击已添加的设备名字，可进入设备管理页面。见下图。点击编辑可对该设备名字以及描述等信息进行编辑。&lt;br /&gt;
[[File: device manage.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*点击添加传感器，可在该DeviceID下面添加传感器。见下图。笔者添加了一个名为windSensor，类型为数值型的传感器。&lt;br /&gt;
[[File: add sensor.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*保存后获得的传感器号（SensorID）为23058（该数值也是Microduino程序中需要用到滴）。&lt;br /&gt;
[[File: add sensor finish.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*如果这时点击我的设备。会发现传感器状态：的后面多出了一个小方块，每个小方块都代表了该设备下面的一个传感器。也就是说一个设备下面可以有N多个传感器，区别是哪一个传感器需要根据传感器号（Sensor ID）。&lt;br /&gt;
[[File: find sensor.jpg|600px|center|thumb]]&lt;br /&gt;
 *在已添加好的传感器页面下，可观察风速传感器传过来的风速值。点击打开图表可观察由时间与数值组成的二维表。见下图。（图表中三个台阶分别是对应3.3V，单节干电池，GND 接入A0，用于模拟风速传感器，实测风速传感器的输出可参考[http://www.microduino.cc/wiki/index.php?title=%E7%AC%AC%E4%B8%89%E5%8D%81%E4%BA%8C%E8%AF%BE--Microduino%E4%B8%8E%E9%A3%8E%E9%80%9F%E4%BC%A0%E6%84%9F%E5%99%A8/zh  基础教程 Microduino与风速传感器 ]&lt;br /&gt;
[[File: windFinish.jpg|600px|center|thumb]]&lt;br /&gt;
*在yeelink网站首页可下载安卓与苹果的客户端程序，手机客户端程序也可非常方便的获取数据，手机只需输入一次用户名密码，以后再登录时直接点击我的Yeelink便可方便的进入了。试试吧……&lt;br /&gt;
&lt;br /&gt;
==结果==&lt;br /&gt;
Yeelink中的数据与相关图表有变化，说明上传成功。反向控制程序读者可参考[https://github.com/Microduino/Microduino_Tutorials/blob/master/Microduino_Sensor/yeelink_TSL2561/yeelink_TSL2561.ino  cb_debug函数]。该文档笔者写作时间为2014年9月3日，yeelink的界面对比以前版本来说更加美观，数据图表显示也更加实用。&lt;br /&gt;
&lt;br /&gt;
==视频==&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Pkj</name></author>	</entry>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=Microduino_%E9%A3%8E%E9%80%9F%E4%BC%A0%E6%84%9F%E5%99%A8%E2%80%94%E9%A3%8E%E9%80%9F%E5%80%BC%E4%B8%8A%E4%BC%A0%E5%88%B0yeelink/zh&amp;diff=4066</id>
		<title>Microduino 风速传感器—风速值上传到yeelink/zh</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=Microduino_%E9%A3%8E%E9%80%9F%E4%BC%A0%E6%84%9F%E5%99%A8%E2%80%94%E9%A3%8E%E9%80%9F%E5%80%BC%E4%B8%8A%E4%BC%A0%E5%88%B0yeelink/zh&amp;diff=4066"/>
				<updated>2014-09-03T16:00:51Z</updated>
		
		<summary type="html">&lt;p&gt;Pkj：&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Microduino与风速传感器—风速值上传到yeelink&lt;br /&gt;
{| style=&amp;quot;width: 800px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
==目的==&lt;br /&gt;
本教程通过Microduino读取风速传感器的信息，使读者了解风速传感器，掌握Microduino使用模拟输入口的编程方法。&lt;br /&gt;
==设备==&lt;br /&gt;
*'''[[Microduino-Core]]'''&lt;br /&gt;
*'''[[Microduino-USBTTL]]'''&lt;br /&gt;
*'''[[Microduino-RJ45]]'''&lt;br /&gt;
*'''[[Microduino-ENC28J60]]'''&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;
|风速传感器 ||1个 ||用于监测风速，输出信号为0-5V。&lt;br /&gt;
|-&lt;br /&gt;
|24V 1A开关电源||1个 ||风速传感器供电用，本示例采用明纬牌开关电源。&lt;br /&gt;
|-&lt;br /&gt;
|USB数据连接线 ||1条||连通Microduino模块与计算机。&lt;br /&gt;
|-&lt;br /&gt;
|面包板 ||1块 ||各个元器件汇聚于此。&lt;br /&gt;
|-&lt;br /&gt;
|面包板跳线 ||1盒||电气连接线。&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==实验原理图==&lt;br /&gt;
 [[File:windFritz.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
==程序==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
https://github.com/Microduino/Microduino_Tutorials/tree/master/Microduino_Advanced/Microduino_wind_yeelink&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==调试==&lt;br /&gt;
*把风速仪的模拟量输出端与Microduino的A0连接在一起，地连接在一起。&lt;br /&gt;
*把程序刷写到Microduino-core中。&lt;br /&gt;
*把Microduino-RJ45通过网线接入路由器LAN口。&lt;br /&gt;
*登录yeelink网站，进入首页（见下图），首页会有yeelink公司出品的灯光产品(yeelight)资讯，自然而然，yeelight的灯光产品是可以通过yeelink远程控制的(笔者测试过zigbee控制的yeelight)。   http://www.yeelink.net/&lt;br /&gt;
[[File:firstPage.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*在yeelink首页单击登录，输入已注册的用户名与密码，（没注册的朋友需要先注册下，注册后需邮箱激活，很简单的）。登录界面见下图。&lt;br /&gt;
[[File: login pic.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*登录后点击用户中心，可进入自己账户的管理首页。API Key文本框中数据是我们注册用户时yeelink服务器分配给用户的ID，也是在Microduino程序中需要用到的。由下图可以看到，笔者已添加一个名为windSpeed的设备，设备ID号为13892（该数值也是microduino程序中需要用到滴）。还可以点击添加新设备继续添加设备。由此可以看出，一个API Key也就是对应一个账户，一个账户下面可以有N多个设备，区别是哪一个设备需要根据设备号（Device ID）。&lt;br /&gt;
[[File: userCenter.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*点击已添加的设备名字，可进入设备管理页面。见下图。点击编辑可对该设备名字以及描述等信息进行编辑。&lt;br /&gt;
[[File: device manage.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*点击添加传感器，可在该DeviceID下面添加传感器。见下图。笔者添加了一个名为windSensor，类型为数值型的传感器。&lt;br /&gt;
[[File: add sensor.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*保存后获得的传感器号（SensorID）为23058（该数值也是Microduino程序中需要用到滴）。&lt;br /&gt;
[[File: add sensor finish.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*如果这时点击我的设备。会发现传感器状态：的后面多出了一个小方块，每个小方块都代表了该设备下面的一个传感器。也就是说一个设备下面可以有N多个传感器，区别是哪一个传感器需要根据传感器号（Sensor ID）。&lt;br /&gt;
[[File: find sensor.jpg|600px|center|thumb]]&lt;br /&gt;
 *在已添加好的传感器页面下，可观察风速传感器传过来的风速值。点击打开图表可观察由时间与数值组成的二维表。见下图。（图表中三个台阶分别是对应3.3V，单节干电池，GND 接入A0，用于模拟风速传感器，实测风速传感器的输出可参考[http://www.microduino.cc/wiki/index.php?title=%E7%AC%AC%E4%B8%89%E5%8D%81%E4%BA%8C%E8%AF%BE--Microduino%E4%B8%8E%E9%A3%8E%E9%80%9F%E4%BC%A0%E6%84%9F%E5%99%A8/zh  基础教程 Microduino与风速传感器 ]&lt;br /&gt;
[[File: windFinish.jpg|600px|center|thumb]]&lt;br /&gt;
*在yeelink网站首页可下载安卓与苹果的客户端程序，手机客户端程序也可非常方便的数据，手机只需输入一次用户名密码，以后再登录时直接点击我的Yeelink便可方便的进入了。试试吧……&lt;br /&gt;
&lt;br /&gt;
==结果==&lt;br /&gt;
Yeelink中的数据与相关图表有变化，说明上传成功。反向控制程序读者可参考[https://github.com/Microduino/Microduino_Tutorials/blob/master/Microduino_Sensor/yeelink_TSL2561/yeelink_TSL2561.ino  cb_debug函数]。该文档笔者写作时间为2014年9月3日，yeelink的界面对比以前版本来说更加美观，数据图表显示也更加实用。&lt;br /&gt;
&lt;br /&gt;
==视频==&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Pkj</name></author>	</entry>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=Microduino_%E9%A3%8E%E9%80%9F%E4%BC%A0%E6%84%9F%E5%99%A8%E2%80%94%E9%A3%8E%E9%80%9F%E5%80%BC%E4%B8%8A%E4%BC%A0%E5%88%B0yeelink/zh&amp;diff=4065</id>
		<title>Microduino 风速传感器—风速值上传到yeelink/zh</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=Microduino_%E9%A3%8E%E9%80%9F%E4%BC%A0%E6%84%9F%E5%99%A8%E2%80%94%E9%A3%8E%E9%80%9F%E5%80%BC%E4%B8%8A%E4%BC%A0%E5%88%B0yeelink/zh&amp;diff=4065"/>
				<updated>2014-09-03T15:59:03Z</updated>
		
		<summary type="html">&lt;p&gt;Pkj：&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Microduino与风速传感器—风速值上传到yeelink&lt;br /&gt;
{| style=&amp;quot;width: 800px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
==目的==&lt;br /&gt;
本教程通过Microduino读取风速传感器的信息，使读者了解风速传感器，掌握Microduino使用模拟输入口的编程方法。&lt;br /&gt;
==设备==&lt;br /&gt;
*'''[[Microduino-Core]]'''&lt;br /&gt;
*'''[[Microduino-USBTTL]]'''&lt;br /&gt;
*'''[[Microduino-RJ45]]'''&lt;br /&gt;
*'''[[Microduino-ENC28J60]]'''&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;
|风速传感器 ||1个 ||用于监测风速，输出信号为0-5V。&lt;br /&gt;
|-&lt;br /&gt;
|24V 1A开关电源||1个 ||风速传感器供电用，本示例采用明纬牌开关电源。&lt;br /&gt;
|-&lt;br /&gt;
|USB数据连接线 ||1条||连通Microduino模块与计算机。&lt;br /&gt;
|-&lt;br /&gt;
|面包板 ||1块 ||各个元器件汇聚于此。&lt;br /&gt;
|-&lt;br /&gt;
|面包板跳线 ||1盒||电气连接线。&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==实验原理图==&lt;br /&gt;
 [[File:windFritz.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
==程序==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
https://github.com/Microduino/Microduino_Tutorials/tree/master/Microduino_Advanced/Microduino_wind_yeelink&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==调试==&lt;br /&gt;
*把风速仪的模拟量输出端与Microduino的A0连接在一起，地连接在一起。&lt;br /&gt;
*把程序刷写到Microduino-core中。&lt;br /&gt;
*把Microduino-RJ45通过网线接入路由器LAN口。&lt;br /&gt;
*登录yeelink网站，进入首页（见下图），首页会有yeelink公司出品的灯光产品(yeelight)资讯，自然而然，yeelight的灯光产品是可以通过yeelink远程控制的(笔者测试过zigbee控制的yeelight)。   http://www.yeelink.net/&lt;br /&gt;
[[File:firstPage.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*在yeelink首页单击登录，输入已注册的用户名与密码，（没注册的朋友需要先注册下，注册后需邮箱激活，很简单的）。登录界面见下图。&lt;br /&gt;
[[File: login pic.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*登录后点击用户中心，可进入自己账户的管理首页。API Key文本框中数据是我们注册用户时yeelink服务器分配给用户的ID，也是在Microduino程序中需要用到的。由下图可以看到，笔者已添加一个名为windSpeed的设备，设备ID号为13892（该数值也是microduino程序中需要用到滴）。还可以点击添加新设备继续添加设备。由此可以看出，一个API Key也就是对应一个账户，一个账户下面可以有N多个设备，区别是哪一个设备需要根据设备号（Device ID）。&lt;br /&gt;
[[File: userCenter.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*点击已添加的设备名字，可进入设备管理页面。见下图。点击编辑可对该设备名字以及描述等信息进行编辑。&lt;br /&gt;
[[File: device manage.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*点击添加传感器，可在该DeviceID下面添加传感器。见下图。笔者添加了一个名为windSensor，类型为数值型的传感器。&lt;br /&gt;
[[File: add sensor.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*保存后获得的传感器号（SensorID）为23058（该数值也是Microduino程序中需要用到滴）。&lt;br /&gt;
[[File: add sensor finish.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*如果这时点击我的设备。会发现传感器状态：的后面多出了一个小方块，每个小方块都代表了该设备下面的一个传感器。也就是说一个设备下面可以有N多个传感器，区别是哪一个传感器需要根据传感器号（Sensor ID）。&lt;br /&gt;
[[File: find sensor.jpg|600px|center|thumb]]&lt;br /&gt;
 *在已添加好的传感器页面下，可观察风速传感器传过来的风速值，点击打开图表可观察由时间与数值组成的二维表。见下图。（图表中三个台阶分别是对应3.3V，单节干电池，GND 接入A0，用于模拟风速传感器，实测风速传感器的输出可参考[http://www.microduino.cc/wiki/index.php?title=%E7%AC%AC%E4%B8%89%E5%8D%81%E4%BA%8C%E8%AF%BE--Microduino%E4%B8%8E%E9%A3%8E%E9%80%9F%E4%BC%A0%E6%84%9F%E5%99%A8/zh  基础教程 Microduino与风速传感器 ]&lt;br /&gt;
[[File: windFinish.jpg|600px|center|thumb]]&lt;br /&gt;
*在yeelink网站首页可下载安卓与苹果的客户端程序，手机客户端程序也可非常方便的数据，手机只需输入一次用户名密码，以后再登录时直接点击我的Yeelink便可方便的进入了。试试吧……&lt;br /&gt;
&lt;br /&gt;
==结果==&lt;br /&gt;
Yeelink中的数据与相关图表有变化，说明上传成功。反向控制程序读者可参考[https://github.com/Microduino/Microduino_Tutorials/blob/master/Microduino_Sensor/yeelink_TSL2561/yeelink_TSL2561.ino  cb_debug函数]。该文档笔者写作时间为2014年9月3日，yeelink的界面对比以前版本来说更加美观，数据图表显示也更加实用。&lt;br /&gt;
&lt;br /&gt;
==视频==&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Pkj</name></author>	</entry>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=Microduino_%E9%A3%8E%E9%80%9F%E4%BC%A0%E6%84%9F%E5%99%A8%E2%80%94%E9%A3%8E%E9%80%9F%E5%80%BC%E4%B8%8A%E4%BC%A0%E5%88%B0yeelink/zh&amp;diff=4064</id>
		<title>Microduino 风速传感器—风速值上传到yeelink/zh</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=Microduino_%E9%A3%8E%E9%80%9F%E4%BC%A0%E6%84%9F%E5%99%A8%E2%80%94%E9%A3%8E%E9%80%9F%E5%80%BC%E4%B8%8A%E4%BC%A0%E5%88%B0yeelink/zh&amp;diff=4064"/>
				<updated>2014-09-03T15:55:59Z</updated>
		
		<summary type="html">&lt;p&gt;Pkj：&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Microduino与风速传感器—风速值上传到yeelink&lt;br /&gt;
{| style=&amp;quot;width: 800px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
==目的==&lt;br /&gt;
本教程通过Microduino读取风速传感器的信息，使读者了解风速传感器，掌握Microduino使用模拟输入口的编程方法。&lt;br /&gt;
==设备==&lt;br /&gt;
*'''[[Microduino-Core]]'''&lt;br /&gt;
*'''[[Microduino-USBTTL]]'''&lt;br /&gt;
*'''[[Microduino-RJ45]]'''&lt;br /&gt;
*'''[[Microduino-ENC28J60]]'''&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;
|风速传感器 ||1个 ||用于监测风速，输出信号为0-5V。&lt;br /&gt;
|-&lt;br /&gt;
|24V 1A开关电源||1个 ||风速传感器供电用，本示例采用明纬牌开关电源。&lt;br /&gt;
|-&lt;br /&gt;
|USB数据连接线 ||1条||连通Microduino模块与计算机。&lt;br /&gt;
|-&lt;br /&gt;
|面包板 ||1块 ||各个元器件汇聚于此。&lt;br /&gt;
|-&lt;br /&gt;
|面包板跳线 ||1盒||电气连接线。&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==实验原理图==&lt;br /&gt;
 [[File:windFritz.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
==程序==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
https://github.com/Microduino/Microduino_Tutorials/tree/master/Microduino_Advanced/Microduino_wind_yeelink&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==调试==&lt;br /&gt;
*把风速仪的模拟量输出端与Microduino的A0连接在一起，地连接在一起。&lt;br /&gt;
*把程序刷写到Microduino-core中。&lt;br /&gt;
*把Microduino-RJ45通过网线接入路由器LAN口。&lt;br /&gt;
*登录yeelink网站，进入首页（见下图），首页会有yeelink公司出品的灯光产品(yeelight)资讯，自然而然，yeelight的灯光产品是可以通过yeelink远程控制的(笔者测试过zigbee控制的yeelight)。   http://www.yeelink.net/&lt;br /&gt;
[[File:firstPage.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*在yeelink首页单击登录，输入已注册的用户名与密码，（没注册的朋友需要先注册下，注册后需邮箱激活，很简单的）。登录界面见下图。&lt;br /&gt;
[[File: login pic.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*登录后点击用户中心，可进入自己账户的管理首页。API Key文本框中数据是我们注册用户时yeelink服务器分配给用户的ID，也是在Microduino程序中需要用到的。由下图可以看到，笔者已添加一个名为windSpeed的设备，设备ID号为13892（该数值也是microduino程序中需要用到滴）。还可以点击添加新设备继续添加设备。由此可以看出，一个API Key也就是对应一个账户，一个账户下面可以有N多个设备，区别是哪一个设备需要根据设备号（Device ID）。&lt;br /&gt;
[[File: userCenter.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*点击已添加的设备名字，可进入设备管理页面。见下图。点击编辑可对该设备名字以及描述等信息进行编辑。&lt;br /&gt;
[[File: device manage.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*点击添加传感器，可在该DeviceID下面添加传感器。见下图。笔者添加了一个名为windSensor，类型为数值型的传感器。&lt;br /&gt;
[[File: add sensor.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*保存后获得的传感器号（SensorID）为23058（该数值也是Microduino程序中需要用到滴）。&lt;br /&gt;
[[File: add sensor finish.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*如果这时点击我的设备。会发现传感器状态的后面多出了一个小方块，每个小方块都代表了该设备下面的一个传感器。也就是说一个设备下面可以有N多个传感器，区别是哪一个传感器需要根据传感器号（Sensor ID）。&lt;br /&gt;
[[File: find sensor.jpg|600px|center|thumb]]&lt;br /&gt;
 *在已添加好的传感器页面下，可观察风速传感器传过来的风速值，点击打开图表可观察由时间与数值组成的二维表。见下图。（图表中三个台阶分别是对应3.3V，单节干电池，GND 接入A0，用于模拟风速传感器，实测风速传感器的输出可参考[http://www.microduino.cc/wiki/index.php?title=%E7%AC%AC%E4%B8%89%E5%8D%81%E4%BA%8C%E8%AF%BE--Microduino%E4%B8%8E%E9%A3%8E%E9%80%9F%E4%BC%A0%E6%84%9F%E5%99%A8/zh  基础教程 Microduino与风速传感器 ]&lt;br /&gt;
[[File: windFinish.jpg|600px|center|thumb]]&lt;br /&gt;
*在yeelink网站首页可下载安卓与苹果的客户端程序，手机客户端程序也可非常方便的数据，手机只需输入一次用户名密码，以后再登录时直接点击我的Yeelink便可方便的进入了。试试吧……&lt;br /&gt;
&lt;br /&gt;
==结果==&lt;br /&gt;
Yeelink中的数据与相关图表有变化，说明上传成功。反向控制程序读者可参考[https://github.com/Microduino/Microduino_Tutorials/blob/master/Microduino_Sensor/yeelink_TSL2561/yeelink_TSL2561.ino  cb_debug函数]。该文档笔者写作时间为2014年9月3日，yeelink的界面对比以前版本来说更加美观，数据图表显示也更加实用。&lt;br /&gt;
&lt;br /&gt;
==视频==&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Pkj</name></author>	</entry>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=Microduino_%E9%A3%8E%E9%80%9F%E4%BC%A0%E6%84%9F%E5%99%A8%E2%80%94%E9%A3%8E%E9%80%9F%E5%80%BC%E4%B8%8A%E4%BC%A0%E5%88%B0yeelink/zh&amp;diff=4063</id>
		<title>Microduino 风速传感器—风速值上传到yeelink/zh</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=Microduino_%E9%A3%8E%E9%80%9F%E4%BC%A0%E6%84%9F%E5%99%A8%E2%80%94%E9%A3%8E%E9%80%9F%E5%80%BC%E4%B8%8A%E4%BC%A0%E5%88%B0yeelink/zh&amp;diff=4063"/>
				<updated>2014-09-03T15:54:06Z</updated>
		
		<summary type="html">&lt;p&gt;Pkj：&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Microduino与风速传感器—风速值上传到yeelink&lt;br /&gt;
{| style=&amp;quot;width: 800px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
==目的==&lt;br /&gt;
本教程通过Microduino读取风速传感器的信息，使读者了解风速传感器，掌握Microduino使用模拟输入口的编程方法。&lt;br /&gt;
==设备==&lt;br /&gt;
*'''[[Microduino-Core]]'''&lt;br /&gt;
*'''[[Microduino-USBTTL]]'''&lt;br /&gt;
*'''[[Microduino-RJ45]]'''&lt;br /&gt;
*'''[[Microduino-ENC28J60]]'''&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;
|风速传感器 ||1个 ||用于监测风速，输出信号为0-5V。&lt;br /&gt;
|-&lt;br /&gt;
|24V 1A开关电源||1个 ||风速传感器供电用，本示例采用明纬牌开关电源。&lt;br /&gt;
|-&lt;br /&gt;
|USB数据连接线 ||1条||连通Microduino模块与计算机。&lt;br /&gt;
|-&lt;br /&gt;
|面包板 ||1块 ||各个元器件汇聚于此。&lt;br /&gt;
|-&lt;br /&gt;
|面包板跳线 ||1盒||电气连接线。&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==实验原理图==&lt;br /&gt;
 [[File:windFritz.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
==程序==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
https://github.com/Microduino/Microduino_Tutorials/tree/master/Microduino_Advanced/Microduino_wind_yeelink&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==调试==&lt;br /&gt;
*把风速仪的模拟量输出端与Microduino的A0连接在一起，地连接在一起。&lt;br /&gt;
*把程序刷写到Microduino-core中。&lt;br /&gt;
*把Microduino-RJ45通过网线接入路由器LAN口。&lt;br /&gt;
*登录yeelink网站，进入首页（见下图），首页会有yeelink公司出品的灯光产品(yeelight)资讯，自然而然，yeelight的灯光产品是可以通过yeelink远程控制的(笔者测试过zigbee控制的yeelight)。   http://www.yeelink.net/&lt;br /&gt;
[[File:firstPage.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*在yeelink首页单击登录，输入已注册的用户名与密码，（没注册的朋友需要先注册下，注册后需邮箱激活，很简单的）。登录界面见下图。&lt;br /&gt;
[[File: login pic.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*登录后点击用户中心，可进入自己的账户的管理首页。API Key文本框中数据是我们注册用户时yeelink服务器分配给用户的ID，也是在Microduino程序中需要用到的。由下图可以看到，笔者已添加一个名为windSpeed的设备，设备ID号为13892（该数值也是microduino程序中需要用到滴）。还可以点击添加新设备继续添加设备。由此可以看出，一个API Key也就是对应一个账户，一个账户下面可以有N多个设备，区别是哪一个设备需要根据设备号（Device ID）。&lt;br /&gt;
[[File: userCenter.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*点击已添加的设备名字，可进入设备管理页面。见下图。点击编辑可对该设备名字以及描述等信息进行编辑。&lt;br /&gt;
[[File: device manage.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*点击添加传感器，可在该DeviceID下面添加传感器。见下图。笔者添加了一个名为windSensor，类型为数值型的传感器。&lt;br /&gt;
[[File: add sensor.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*保存后获得的传感器号（SensorID）为23058（该数值也是Microduino程序中需要用到滴）。&lt;br /&gt;
[[File: add sensor finish.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*如果这时点击我的设备。会发现传感器状态的后面多出了一个小方块，每个小方块都代表了该设备下面的一个传感器。也就是说一个设备下面可以有N多个传感器，区别是哪一个传感器需要根据传感器号（Sensor ID）。&lt;br /&gt;
[[File: find sensor.jpg|600px|center|thumb]]&lt;br /&gt;
 *在已添加好的传感器页面下，可观察风速传感器传过来的风速值，点击打开图表可观察由时间与数值组成的二维表。见下图。（图表中三个台阶分别是对应3.3V，单节干电池，GND 接入A0，用于模拟风速传感器，实测风速传感器的输出可参考[http://www.microduino.cc/wiki/index.php?title=%E7%AC%AC%E4%B8%89%E5%8D%81%E4%BA%8C%E8%AF%BE--Microduino%E4%B8%8E%E9%A3%8E%E9%80%9F%E4%BC%A0%E6%84%9F%E5%99%A8/zh  基础教程 Microduino与风速传感器 ]&lt;br /&gt;
[[File: windFinish.jpg|600px|center|thumb]]&lt;br /&gt;
*在yeelink网站首页可下载安卓与苹果的客户端程序，手机客户端程序也可非常方便的数据，手机只需输入一次用户名密码，以后再登录时直接点击我的Yeelink便可方便的进入了。试试吧……&lt;br /&gt;
&lt;br /&gt;
==结果==&lt;br /&gt;
Yeelink中的数据与相关图表有变化，说明上传成功。反向控制程序读者可参考[https://github.com/Microduino/Microduino_Tutorials/blob/master/Microduino_Sensor/yeelink_TSL2561/yeelink_TSL2561.ino  cb_debug函数]。该文档笔者写作时间为2014年9月3日，yeelink的界面对比以前版本来说更加美观，数据图表显示也更加实用。&lt;br /&gt;
&lt;br /&gt;
==视频==&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Pkj</name></author>	</entry>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=Microduino_%E9%A3%8E%E9%80%9F%E4%BC%A0%E6%84%9F%E5%99%A8%E2%80%94%E9%A3%8E%E9%80%9F%E5%80%BC%E4%B8%8A%E4%BC%A0%E5%88%B0yeelink/zh&amp;diff=4062</id>
		<title>Microduino 风速传感器—风速值上传到yeelink/zh</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=Microduino_%E9%A3%8E%E9%80%9F%E4%BC%A0%E6%84%9F%E5%99%A8%E2%80%94%E9%A3%8E%E9%80%9F%E5%80%BC%E4%B8%8A%E4%BC%A0%E5%88%B0yeelink/zh&amp;diff=4062"/>
				<updated>2014-09-03T15:53:24Z</updated>
		
		<summary type="html">&lt;p&gt;Pkj：&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Microduino与风速传感器—风速值上传到yeelink&lt;br /&gt;
{| style=&amp;quot;width: 800px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
==目的==&lt;br /&gt;
本教程通过Microduino读取风速传感器的信息，使读者了解风速传感器，掌握Microduino使用模拟输入口的编程方法。&lt;br /&gt;
==设备==&lt;br /&gt;
*'''[[Microduino-Core]]'''&lt;br /&gt;
*'''[[Microduino-USBTTL]]'''&lt;br /&gt;
*'''[[Microduino-RJ45]]'''&lt;br /&gt;
*'''[[Microduino-ENC28J60]]'''&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;
|风速传感器 ||1个 ||用于监测风速，输出信号为0-5V。&lt;br /&gt;
|-&lt;br /&gt;
|24V 1A开关电源||1个 ||风速传感器供电用，本示例采用明纬牌开关电源。&lt;br /&gt;
|-&lt;br /&gt;
|USB数据连接线 ||1条||连通Microduino模块与计算机。&lt;br /&gt;
|-&lt;br /&gt;
|面包板 ||1块 ||各个元器件汇聚于此。&lt;br /&gt;
|-&lt;br /&gt;
|面包板跳线 ||1盒||电气连接线。&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==实验原理图==&lt;br /&gt;
 [[File:windFritz.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
==程序==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
[https://github.com/Microduino/Microduino_Tutorials/tree/master/Microduino_Advanced/Microduino_wind_yeelink]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==调试==&lt;br /&gt;
*把风速仪的模拟量输出端与Microduino的A0连接在一起，地连接在一起。&lt;br /&gt;
*把程序刷写到Microduino-core中。&lt;br /&gt;
*把Microduino-RJ45通过网线接入路由器LAN口。&lt;br /&gt;
*登录yeelink网站，进入首页（见下图），首页会有yeelink公司出品的灯光产品(yeelight)资讯，自然而然，yeelight的灯光产品是可以通过yeelink远程控制的(笔者测试过zigbee控制的yeelight)。   http://www.yeelink.net/&lt;br /&gt;
[[File:firstPage.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*在yeelink首页单击登录，输入已注册的用户名与密码，（没注册的朋友需要先注册下，注册后需邮箱激活，很简单的）。登录界面见下图。&lt;br /&gt;
[[File: login pic.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*登录后点击用户中心，可进入自己的账户的管理首页。API Key文本框中数据是我们注册用户时yeelink服务器分配给用户的ID，也是在Microduino程序中需要用到的。由下图可以看到，笔者已添加一个名为windSpeed的设备，设备ID号为13892（该数值也是microduino程序中需要用到滴）。还可以点击添加新设备继续添加设备。由此可以看出，一个API Key也就是对应一个账户，一个账户下面可以有N多个设备，区别是哪一个设备需要根据设备号（Device ID）。&lt;br /&gt;
[[File: userCenter.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*点击已添加的设备名字，可进入设备管理页面。见下图。点击编辑可对该设备名字以及描述等信息进行编辑。&lt;br /&gt;
[[File: device manage.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*点击添加传感器，可在该DeviceID下面添加传感器。见下图。笔者添加了一个名为windSensor，类型为数值型的传感器。&lt;br /&gt;
[[File: add sensor.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*保存后获得的传感器号（SensorID）为23058（该数值也是Microduino程序中需要用到滴）。&lt;br /&gt;
[[File: add sensor finish.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*如果这时点击我的设备。会发现传感器状态的后面多出了一个小方块，每个小方块都代表了该设备下面的一个传感器。也就是说一个设备下面可以有N多个传感器，区别是哪一个传感器需要根据传感器号（Sensor ID）。&lt;br /&gt;
[[File: find sensor.jpg|600px|center|thumb]]&lt;br /&gt;
 *在已添加好的传感器页面下，可观察风速传感器传过来的风速值，点击打开图表可观察由时间与数值组成的二维表。见下图。（图表中三个台阶分别是对应3.3V，单节干电池，GND 接入A0，用于模拟风速传感器，实测风速传感器的输出可参考[http://www.microduino.cc/wiki/index.php?title=%E7%AC%AC%E4%B8%89%E5%8D%81%E4%BA%8C%E8%AF%BE--Microduino%E4%B8%8E%E9%A3%8E%E9%80%9F%E4%BC%A0%E6%84%9F%E5%99%A8/zh  基础教程 Microduino与风速传感器 ]&lt;br /&gt;
[[File: windFinish.jpg|600px|center|thumb]]&lt;br /&gt;
*在yeelink网站首页可下载安卓与苹果的客户端程序，手机客户端程序也可非常方便的数据，手机只需输入一次用户名密码，以后再登录时直接点击我的Yeelink便可方便的进入了。试试吧……&lt;br /&gt;
&lt;br /&gt;
==结果==&lt;br /&gt;
Yeelink中的数据与相关图表有变化，说明上传成功。反向控制程序读者可参考[https://github.com/Microduino/Microduino_Tutorials/blob/master/Microduino_Sensor/yeelink_TSL2561/yeelink_TSL2561.ino  cb_debug函数]。该文档笔者写作时间为2014年9月3日，yeelink的界面对比以前版本来说更加美观，数据图表显示也更加实用。&lt;br /&gt;
&lt;br /&gt;
==视频==&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Pkj</name></author>	</entry>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=Microduino_%E9%A3%8E%E9%80%9F%E4%BC%A0%E6%84%9F%E5%99%A8%E2%80%94%E9%A3%8E%E9%80%9F%E5%80%BC%E4%B8%8A%E4%BC%A0%E5%88%B0yeelink/zh&amp;diff=4061</id>
		<title>Microduino 风速传感器—风速值上传到yeelink/zh</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=Microduino_%E9%A3%8E%E9%80%9F%E4%BC%A0%E6%84%9F%E5%99%A8%E2%80%94%E9%A3%8E%E9%80%9F%E5%80%BC%E4%B8%8A%E4%BC%A0%E5%88%B0yeelink/zh&amp;diff=4061"/>
				<updated>2014-09-03T15:53:01Z</updated>
		
		<summary type="html">&lt;p&gt;Pkj：&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Microduino与风速传感器—风速值上传到yeelink&lt;br /&gt;
{| style=&amp;quot;width: 800px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
==目的==&lt;br /&gt;
本教程通过Microduino读取风速传感器的信息，使读者了解风速传感器，掌握Microduino使用模拟输入口的编程方法。&lt;br /&gt;
==设备==&lt;br /&gt;
*'''[[Microduino-Core]]'''&lt;br /&gt;
*'''[[Microduino-USBTTL]]'''&lt;br /&gt;
*'''[[Microduino-RJ45]]'''&lt;br /&gt;
*'''[[Microduino-ENC28J60]]'''&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;
|风速传感器 ||1个 ||用于监测风速，输出信号为0-5V。&lt;br /&gt;
|-&lt;br /&gt;
|24V 1A开关电源||1个 ||风速传感器供电用，本示例采用明纬牌开关电源。&lt;br /&gt;
|-&lt;br /&gt;
|USB数据连接线 ||1条||连通Microduino模块与计算机。&lt;br /&gt;
|-&lt;br /&gt;
|面包板 ||1块 ||各个元器件汇聚于此。&lt;br /&gt;
|-&lt;br /&gt;
|面包板跳线 ||1盒||电气连接线。&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==实验原理图==&lt;br /&gt;
 [[File:windFritz.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
==程序==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
[https://github.com/Microduino/Microduino_Tutorials/tree/master/Microduino_Advanced/Microduino_wind_yeelink]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==调试==&lt;br /&gt;
*把风速仪的模拟量输出端与Microduino的A0连接在一起，地连接在一起。&lt;br /&gt;
*把程序刷写到Microduino-core中。&lt;br /&gt;
*把Microduino-RJ45通过网线接入路由器LAN口。&lt;br /&gt;
*登录yeelink网站，进入首页 http://www.yeelink.net/（见下图），首页会有yeelink公司出品的灯光产品(yeelight)资讯，自然而然，yeelight的灯光产品是可以通过yeelink远程控制的(笔者测试过zigbee控制的yeelight)。  &lt;br /&gt;
[[File:firstPage.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*在yeelink首页单击登录，输入已注册的用户名与密码，（没注册的朋友需要先注册下，注册后需邮箱激活，很简单的）。登录界面见下图。&lt;br /&gt;
[[File: login pic.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*登录后点击用户中心，可进入自己的账户的管理首页。API Key文本框中数据是我们注册用户时yeelink服务器分配给用户的ID，也是在Microduino程序中需要用到的。由下图可以看到，笔者已添加一个名为windSpeed的设备，设备ID号为13892（该数值也是microduino程序中需要用到滴）。还可以点击添加新设备继续添加设备。由此可以看出，一个API Key也就是对应一个账户，一个账户下面可以有N多个设备，区别是哪一个设备需要根据设备号（Device ID）。&lt;br /&gt;
[[File: userCenter.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*点击已添加的设备名字，可进入设备管理页面。见下图。点击编辑可对该设备名字以及描述等信息进行编辑。&lt;br /&gt;
[[File: device manage.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*点击添加传感器，可在该DeviceID下面添加传感器。见下图。笔者添加了一个名为windSensor，类型为数值型的传感器。&lt;br /&gt;
[[File: add sensor.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*保存后获得的传感器号（SensorID）为23058（该数值也是Microduino程序中需要用到滴）。&lt;br /&gt;
[[File: add sensor finish.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*如果这时点击我的设备。会发现传感器状态的后面多出了一个小方块，每个小方块都代表了该设备下面的一个传感器。也就是说一个设备下面可以有N多个传感器，区别是哪一个传感器需要根据传感器号（Sensor ID）。&lt;br /&gt;
[[File: find sensor.jpg|600px|center|thumb]]&lt;br /&gt;
 *在已添加好的传感器页面下，可观察风速传感器传过来的风速值，点击打开图表可观察由时间与数值组成的二维表。见下图。（图表中三个台阶分别是对应3.3V，单节干电池，GND 接入A0，用于模拟风速传感器，实测风速传感器的输出可参考[http://www.microduino.cc/wiki/index.php?title=%E7%AC%AC%E4%B8%89%E5%8D%81%E4%BA%8C%E8%AF%BE--Microduino%E4%B8%8E%E9%A3%8E%E9%80%9F%E4%BC%A0%E6%84%9F%E5%99%A8/zh  基础教程 Microduino与风速传感器 ]&lt;br /&gt;
[[File: windFinish.jpg|600px|center|thumb]]&lt;br /&gt;
*在yeelink网站首页可下载安卓与苹果的客户端程序，手机客户端程序也可非常方便的数据，手机只需输入一次用户名密码，以后再登录时直接点击我的Yeelink便可方便的进入了。试试吧……&lt;br /&gt;
&lt;br /&gt;
==结果==&lt;br /&gt;
Yeelink中的数据与相关图表有变化，说明上传成功。反向控制程序读者可参考[https://github.com/Microduino/Microduino_Tutorials/blob/master/Microduino_Sensor/yeelink_TSL2561/yeelink_TSL2561.ino  cb_debug函数]。该文档笔者写作时间为2014年9月3日，yeelink的界面对比以前版本来说更加美观，数据图表显示也更加实用。&lt;br /&gt;
&lt;br /&gt;
==视频==&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Pkj</name></author>	</entry>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=%E6%96%87%E4%BB%B6:WindFinish.jpg&amp;diff=4060</id>
		<title>文件:WindFinish.jpg</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=%E6%96%87%E4%BB%B6:WindFinish.jpg&amp;diff=4060"/>
				<updated>2014-09-03T15:48:20Z</updated>
		
		<summary type="html">&lt;p&gt;Pkj：&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Pkj</name></author>	</entry>

	</feed>