<?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=%E6%B0%94%E5%8E%8B%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=%E6%B0%94%E5%8E%8B%E4%BC%A0%E6%84%9F%E5%99%A8"/>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=%E6%B0%94%E5%8E%8B%E4%BC%A0%E6%84%9F%E5%99%A8&amp;action=history"/>
		<updated>2026-04-30T05:35:21Z</updated>
		<subtitle>本wiki的该页面的版本历史</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=%E6%B0%94%E5%8E%8B%E4%BC%A0%E6%84%9F%E5%99%A8&amp;diff=7755&amp;oldid=prev</id>
		<title>1183296105@qq.com：/* 目的 */</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=%E6%B0%94%E5%8E%8B%E4%BC%A0%E6%84%9F%E5%99%A8&amp;diff=7755&amp;oldid=prev"/>
				<updated>2015-02-08T06:29:13Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;目的&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;zh-CN&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;2015年2月8日 (日) 06:29的版本&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-l1&quot; &gt;第1行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第1行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== 目的 ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== 目的 ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;前面两讲我们学习了'''[[Microduino-Weather/zh|Microduino-Weather扩展板]] '''&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;上的光照传感器和温湿度传感器，今天我们就&lt;/del&gt;'''[[Microduino-Weather/zh|Microduino-Weather扩展板]] '''上的另一个传感器---气压传感器。&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;上的光照传感器和温湿度传感器，今天我们学习&lt;/ins&gt;'''[[Microduino-Weather/zh|Microduino-Weather扩展板]] '''上的另一个传感器---气压传感器。&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;&amp;#160;&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;*'''[[Microduino-CoreSTM32/zh]]''' ：Microduino-CoreSTM32小巧精悍，其内核来自于ARM公司具有突破性的Cortex-M3内核的32位闪存微控制器。该内核是专门设计于满足集高性能、低功耗、实时应用、具有竞争性价格于一体的嵌入式领域的要求。&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;*'''[[Microduino-CoreSTM32/zh]]''' ：Microduino-CoreSTM32小巧精悍，其内核来自于ARM公司具有突破性的Cortex-M3内核的32位闪存微控制器。该内核是专门设计于满足集高性能、低功耗、实时应用、具有竞争性价格于一体的嵌入式领域的要求。&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=%E6%B0%94%E5%8E%8B%E4%BC%A0%E6%84%9F%E5%99%A8&amp;diff=7754&amp;oldid=prev</id>
		<title>1183296105@qq.com：Created page with &quot;== 目的 == 前面两讲我们学习了'''Microduino-Weather扩展板 '''上的光照传感器和温湿度传感器，今天我们就'''Microduino...&quot;</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=%E6%B0%94%E5%8E%8B%E4%BC%A0%E6%84%9F%E5%99%A8&amp;diff=7754&amp;oldid=prev"/>
				<updated>2015-02-08T06:28:46Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;== 目的 == 前面两讲我们学习了&amp;#039;&amp;#039;&amp;#039;&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; &amp;#039;&amp;#039;&amp;#039;上的光照传感器和温湿度传感器，今天我们就&amp;#039;&amp;#039;&amp;#039;Microduino...&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扩展板]] '''上的光照传感器和温湿度传感器，今天我们就'''[[Microduino-Weather/zh|Microduino-Weather扩展板]] '''上的另一个传感器---气压传感器。&lt;br /&gt;
== 设备 ==&lt;br /&gt;
*'''[[Microduino-CoreSTM32/zh]]''' ：Microduino-CoreSTM32小巧精悍，其内核来自于ARM公司具有突破性的Cortex-M3内核的32位闪存微控制器。该内核是专门设计于满足集高性能、低功耗、实时应用、具有竞争性价格于一体的嵌入式领域的要求。&lt;br /&gt;
*'''[[Microduino-Weather/zh|Microduino-Weather扩展板]] '''：Microduino Weather模块集成了三种传感器，分别是光照强度传感器（TSL2561），数字气压传感器（BMP180），数字温湿度传感器（AM2321）。采用I2C接口与核心相连。广泛用于气象监测。&lt;br /&gt;
* 其他硬件设备&lt;br /&gt;
:*USB数据线 一根&lt;br /&gt;
== 文档 ==&lt;br /&gt;
*BMP180气压传感器数据手册： '''[[File:BMP180.pdf]]'''&lt;br /&gt;
== 原理 ==&lt;br /&gt;
=== BMP2561 ===&lt;br /&gt;
[[File:sensor4_1.jpg|600px|center|thumb]]&lt;br /&gt;
'''参数：'''&lt;br /&gt;
*压力范围：300-1100hPa（海拔9000米...-500米）&lt;br /&gt;
*电源电压：1.62V-3.6V（VDDIO）；1.8-3.6V (VDD)&lt;br /&gt;
*LCC8封装：LGA &lt;br /&gt;
*尺 寸：3.6mmx3.8*0.93mm&lt;br /&gt;
*低功耗：5μA 在标准模式&lt;br /&gt;
*高精度：低功耗模式下，分辨率为0.06hPa（0.5米）&lt;br /&gt;
*:高线性模式下，分辨率为0.03hPa（0.25米）&lt;br /&gt;
*反应时间：7.5ms&lt;br /&gt;
*待机电流：0.1uA&lt;br /&gt;
*接口：I2C&lt;br /&gt;
&lt;br /&gt;
'''引脚及功能：'''&lt;br /&gt;
[[File:sensor4_2.jpg|600px|center|thumb]]&lt;br /&gt;
[[File:sensor4_3.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
'''操作步骤：'''&lt;br /&gt;
*发出压力（或温度）转换命令；&lt;br /&gt;
*经过一段时间从UP（UT）寄存器读取原始数据；&lt;br /&gt;
*要得到摄氏温度和hPa 压力需要用到校正数据，这些数据放在BMP085的EEPROM里，通过IIC可以在初始化时读出。&lt;br /&gt;
流程如下所示：&lt;br /&gt;
[[File:sensor4_4.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
'''工作模式：'''&lt;br /&gt;
&lt;br /&gt;
BMP180有4种工作模式，每种工作模式下的转换时间和精度都不一样。如下图所示：&lt;br /&gt;
[[File:sensor4_5.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
其它内容请参见数据手册。&lt;br /&gt;
=== 原理图 ===&lt;br /&gt;
[[File:sensor4_6.jpg|600px|center|thumb]]&lt;br /&gt;
BMP180光照传感器模块集成在了[[Microduino-Weather/zh|Microduino-Weather扩展板]] 上，所以无需外部接线，直接通过I2C与其通信即可。&lt;br /&gt;
&lt;br /&gt;
[[Microduino-CoreSTM32/zh]]叠加在[[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;
*readTemperature()函数读取温度值；&lt;br /&gt;
*readPressure()通过读取未处理的原始数据计算后得出相对于标准大气压的大气压大小；&lt;br /&gt;
*readSealevelPressure(float altitude_meters = 0)通过气压计算出标准大气压的大小；&lt;br /&gt;
*readAltitude(float sealevelPressure = 101325)计算海拔高度。&lt;br /&gt;
== 调试 ==&lt;br /&gt;
步骤一：数据线连接到[[Microduino-CoreSTM32/zh]]。&lt;br /&gt;
&lt;br /&gt;
步骤二：下载BMP180库，把BMP180文件夹拷贝到Maple IDE安装目录下的libraries中，打开测试程序sensor4_baroceptorSensor。&lt;br /&gt;
&lt;br /&gt;
步骤三：编译程序，下载程序。&lt;br /&gt;
&lt;br /&gt;
步骤四：打开串口监视界面，观察串口监视界面。&lt;br /&gt;
== 结果 ==&lt;br /&gt;
读取的温度、大气压和海拔高度如下图所示：&lt;br /&gt;
[[File:sensor4_7.jpg|600px|center|thumb]]&lt;br /&gt;
== 视频 ==&lt;/div&gt;</summary>
		<author><name>1183296105@qq.com</name></author>	</entry>

	</feed>