<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-CN">
		<id>http:///https//wiki.microduino.cn/index.php?action=history&amp;feed=atom&amp;title=%E5%85%89%E7%85%A7%E4%BC%A0%E6%84%9F%E5%99%A8</id>
		<title>光照传感器 - 版本历史</title>
		<link rel="self" type="application/atom+xml" href="http:///https//wiki.microduino.cn/index.php?action=history&amp;feed=atom&amp;title=%E5%85%89%E7%85%A7%E4%BC%A0%E6%84%9F%E5%99%A8"/>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=%E5%85%89%E7%85%A7%E4%BC%A0%E6%84%9F%E5%99%A8&amp;action=history"/>
		<updated>2026-04-21T05:16:41Z</updated>
		<subtitle>本wiki的该页面的版本历史</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=%E5%85%89%E7%85%A7%E4%BC%A0%E6%84%9F%E5%99%A8&amp;diff=7745&amp;oldid=prev</id>
		<title>1183296105@qq.com：/* TSL2561传感器 */</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=%E5%85%89%E7%85%A7%E4%BC%A0%E6%84%9F%E5%99%A8&amp;diff=7745&amp;oldid=prev"/>
				<updated>2015-02-07T07:51:57Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;TSL2561传感器&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;zh-CN&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;2015年2月7日 (六) 07:51的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l34&quot; &gt;第34行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第34行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;器件地址选择引脚状态：&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;器件地址选择引脚状态：&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[File:sensor3_4.jpg|600px|center|thumb]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[File:sensor3_4.jpg|600px|center|thumb]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;'''注意：[[Microduino-Weather/zh|Microduino-Weather扩展板]]&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;上的TSL2561的器件访问地址选择引脚接地了，所以期间地址为0x29。 &lt;/del&gt;'''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;'''注意：[[Microduino-Weather/zh|Microduino-Weather扩展板]]&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;上的TSL2561的器件访问地址选择引脚接地了，所以器件地址为0x29。 &lt;/ins&gt;'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;''' 内部结构和工作原理 '''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;''' 内部结构和工作原理 '''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>1183296105@qq.com</name></author>	</entry>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=%E5%85%89%E7%85%A7%E4%BC%A0%E6%84%9F%E5%99%A8&amp;diff=7742&amp;oldid=prev</id>
		<title>1183296105@qq.com：/* TSL2561传感器 */</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=%E5%85%89%E7%85%A7%E4%BC%A0%E6%84%9F%E5%99%A8&amp;diff=7742&amp;oldid=prev"/>
				<updated>2015-02-07T07:50:36Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;TSL2561传感器&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;zh-CN&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;2015年2月7日 (六) 07:50的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l16&quot; &gt;第16行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第16行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== 原理 ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== 原理 ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== TSL2561传感器 ===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== TSL2561传感器 ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;TSL2561是TAOS公司推出的第二代光强数字转换芯片，具有高速、低功耗、宽量程、可编程灵活配置等优点。TSL2561具有直接I2C接口，用于将光照强度转换成数字信号输出。&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;TSL2561是TAOS公司推出的第二代光强数字转换芯片，具有高速、低功耗、宽量程、可编程灵活配置等优点。TSL2561具有I2C接口，用于将光照强度转换成数字信号输出。&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[File:sensor3_1.jpg|600px|center|thumb]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[File:sensor3_1.jpg|600px|center|thumb]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;''' 主要特点: '''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;''' 主要特点: '''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l43&quot; &gt;第43行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第43行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;内部16个寄存器的功能如下所示：&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;内部16个寄存器的功能如下所示：&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[File:sensor3_6.jpg|600px|center|thumb]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[File:sensor3_6.jpg|600px|center|thumb]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== 原理图 ===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== 原理图 ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[File:sensor3_7.jpg|600px|center|thumb]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[File:sensor3_7.jpg|600px|center|thumb]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>1183296105@qq.com</name></author>	</entry>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=%E5%85%89%E7%85%A7%E4%BC%A0%E6%84%9F%E5%99%A8&amp;diff=7739&amp;oldid=prev</id>
		<title>1183296105@qq.com：Created page with &quot;== 目的 == 本教程将教大家使用Microduino-Weather扩展板上集成的TSL2561光照传感器，结果将在Microduino OLED中显示。 == ...&quot;</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=%E5%85%89%E7%85%A7%E4%BC%A0%E6%84%9F%E5%99%A8&amp;diff=7739&amp;oldid=prev"/>
				<updated>2015-02-07T07:39:48Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;== 目的 == 本教程将教大家使用&lt;a href=&quot;/index.php/Microduino-Weather/zh&quot; class=&quot;mw-redirect&quot; title=&quot;Microduino-Weather/zh&quot;&gt;Microduino-Weather扩展板&lt;/a&gt;上集成的TSL2561光照传感器，结果将在Microduino OLED中显示。 == ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== 目的 ==&lt;br /&gt;
本教程将教大家使用[[Microduino-Weather/zh|Microduino-Weather扩展板]]上集成的TSL2561光照传感器，结果将在Microduino OLED中显示。&lt;br /&gt;
== 设备 ==&lt;br /&gt;
*'''[[Microduino-CoreSTM32/zh]]'''&lt;br /&gt;
Microduino-CoreSTM32小巧精悍，其内核来自于ARM公司具有突破性的Cortex-M3内核的32位闪存微控制器。该内核是专门设计于满足集高性能、低功耗、实时应用、具有竞争性价格于一体的嵌入式领域的要求。&lt;br /&gt;
*'''[[Microduino-Weather/zh|Microduino-Weather扩展板]] '''&lt;br /&gt;
Microduino Weather模块集成了三种传感器，分别是光照强度传感器（TSL2561），数字气压传感器（BMP180），数字温湿度传感器（AM2321）。采用I2C接口与核心相连。广泛用于气象监测。&lt;br /&gt;
*'''[[Microduino-OLED/zh]]'''&lt;br /&gt;
Microduino-Oled是基于SSD1306的0.96吋128x64 OLED显示模块。采用I2C接口，3.3V 电源供电。像素为128*64（128列*64行）。&lt;br /&gt;
&lt;br /&gt;
* 其他硬件设备&lt;br /&gt;
:*OLED转接线 一根&lt;br /&gt;
:*USB数据线 一根&lt;br /&gt;
== 文档 ==&lt;br /&gt;
*TSL2561光照传感器数据手册： '''[[File:TSL2561.pdf]]'''&lt;br /&gt;
== 原理 ==&lt;br /&gt;
=== TSL2561传感器 ===&lt;br /&gt;
TSL2561是TAOS公司推出的第二代光强数字转换芯片，具有高速、低功耗、宽量程、可编程灵活配置等优点。TSL2561具有直接I2C接口，用于将光照强度转换成数字信号输出。&lt;br /&gt;
[[File:sensor3_1.jpg|600px|center|thumb]]&lt;br /&gt;
''' 主要特点: '''&lt;br /&gt;
&lt;br /&gt;
*可编程配置许可的光强度上下阈值，当实际光照度超过该阈值时给出中断信号；&lt;br /&gt;
*数字输出符合标准的I2C(TSL2561)总线协议；&lt;br /&gt;
*模拟增益和数字输出时间可编程控制；&lt;br /&gt;
*1.25 mm×1.75 mm 超小封装， 在低功耗模式下， 功耗仅为 0.75 mW；&lt;br /&gt;
*自动抑制 50 Hz/60 Hz 的光照波动。&lt;br /&gt;
&lt;br /&gt;
'''TSL2561引脚功能:'''&lt;br /&gt;
&lt;br /&gt;
TSL2561传感器引脚如下图所示：&lt;br /&gt;
[[File:sensor3_2.jpg|600px|center|thumb]]&lt;br /&gt;
各个引脚的功能：&lt;br /&gt;
[[File:sensor3_3.jpg|600px|center|thumb]]&lt;br /&gt;
器件地址选择引脚状态：&lt;br /&gt;
[[File:sensor3_4.jpg|600px|center|thumb]]&lt;br /&gt;
'''注意：[[Microduino-Weather/zh|Microduino-Weather扩展板]]上的TSL2561的器件访问地址选择引脚接地了，所以期间地址为0x29。 '''&lt;br /&gt;
&lt;br /&gt;
''' 内部结构和工作原理 '''&lt;br /&gt;
&lt;br /&gt;
其内部结构如下图所示。通道 0 和通道 1 是两个光敏二极管，其中通道 0 对可见光和红外线都敏感，而通道 1 仅对红外线敏感。积分式 A/D 转换器对流过光敏二极管的电流进行积分，并转换为数字量，在转换结束后将转换结果存入芯片内部通道 0 和通道 1 各自的寄存器中。 当一个积分周期完成之后，积分式 A/D 转换器将自动开始下一个积分转换过程。&lt;br /&gt;
[[File:sensor3_5.jpg|600px|center|thumb]]&lt;br /&gt;
微控制器可通过 I2C 总线协议访问。对 TSL2561的控制是通过对其内部的 16 个寄存器的读写来实现的。&lt;br /&gt;
内部16个寄存器的功能如下所示：&lt;br /&gt;
[[File:sensor3_6.jpg|600px|center|thumb]]&lt;br /&gt;
=== 原理图 ===&lt;br /&gt;
[[File:sensor3_7.jpg|600px|center|thumb]]&lt;br /&gt;
TSL2561光照传感器模块集成在了[[Microduino-Weather/zh|Microduino-Weather扩展板]] 上，所以无需外部接线，直接通过I2C与其通信即可。&lt;br /&gt;
&lt;br /&gt;
[[Microduino-CoreSTM32/zh]]叠加在[[Microduino-Weather/zh|Microduino-Weather扩展板]]上，OLED屏通过转接线与[[Microduino-Weather/zh|Microduino-Weather扩展板]]连接。&lt;br /&gt;
&lt;br /&gt;
''' 注意：数据线需插在[[Microduino-CoreSTM32/zh]]上，不能插在扩展板上，不然会无法下载程序。 '''&lt;br /&gt;
== 程序 ==&lt;br /&gt;
需要用到的库：&lt;br /&gt;
&lt;br /&gt;
测试程序：&lt;br /&gt;
&lt;br /&gt;
程序说明：&lt;br /&gt;
&lt;br /&gt;
程序在初始化OLED和TSL2561后通过getLuminosity (&amp;amp;Channel0,&amp;amp;Channel1)函数读取TSL2561传感器通道0和通道1的数据。根据读取到的通道0和通道1的数据计算出光照度的大小，光照度的单位lux。&lt;br /&gt;
此外传感器的积分时间和增益都采取默认设置，即积分时间为402ms，增益为low gain (1×),具体请参见数据手册“Timing Register”寄存器。&lt;br /&gt;
== 调试 ==&lt;br /&gt;
步骤一：数据线连接到[[Microduino-CoreSTM32/zh]]，OLED显示屏通过传接线连接到[[Microduino-Weather/zh|Microduino-Weather扩展板]]。&lt;br /&gt;
&lt;br /&gt;
步骤二：下载TSL2561库，把TSL2561文件夹拷贝到Maple IDE安装文件下的libraries中，打开测试程序sensor3_illuminationSensor。&lt;br /&gt;
&lt;br /&gt;
步骤三：编译程序，下载程序。&lt;br /&gt;
&lt;br /&gt;
步骤四：打开串口监视界面，观察串口监视界面和OLED显示屏上光照度的变化。&lt;br /&gt;
== 结果 ==&lt;br /&gt;
较暗环境下光照度几乎为0，开白炽灯后光照度增加，用手机强光LED照射后光照度变为1000多。&lt;br /&gt;
[[File:sensor3_8.jpg|600px|center|thumb]]&lt;br /&gt;
[[File:sensor3_9.jpg|600px|center|thumb]]&lt;br /&gt;
[[File:sensor3_10.jpg|600px|center|thumb]]&lt;br /&gt;
[[File:sensor3_11.jpg|600px|center|thumb]]&lt;br /&gt;
[[File:sensor3_12.jpg|600px|center|thumb]]&lt;br /&gt;
== 视频 ==&lt;/div&gt;</summary>
		<author><name>1183296105@qq.com</name></author>	</entry>

	</feed>