{"id":6749,"date":"2022-07-22T21:05:48","date_gmt":"2022-07-22T13:05:48","guid":{"rendered":"https:\/\/blog.iyatt.com\/?p=6749"},"modified":"2024-05-05T14:18:54","modified_gmt":"2024-05-05T06:18:54","slug":"%e6%a0%91%e8%8e%93%e6%b4%be%e4%bd%bf%e7%94%a8-bmp180-%e6%b0%94%e5%8e%8b%e4%bc%a0%e6%84%9f%e5%99%a8","status":"publish","type":"post","link":"https:\/\/blog.iyatt.com\/?p=6749","title":{"rendered":"\u6811\u8393\u6d3e\u4f7f\u7528 BMP180 \u4f20\u611f\u5668"},"content":{"rendered":"\n<p>\u672c\u6587\u8d44\u6e90\u6587\u4ef6\u4e0b\u8f7d\uff1a<a href=\"https:\/\/pan.baidu.com\/s\/1EIT3kflUP4UF_Cp96SC0BQ?pwd=0j1a\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/pan.baidu.com\/s\/1EIT3kflUP4UF_Cp96SC0BQ?pwd=0j1a<\/a><\/p>\n\n\n<p>BMP180 \u4f20\u611f\u5668<\/p>\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"156\" height=\"144\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/07\/image-12.png\" alt=\"\" class=\"wp-image-6751 lazyload\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 156px; --smush-placeholder-aspect-ratio: 156\/144;\"><\/figure>\n\n\n<p>\u8be5\u6b3e\u4f20\u611f\u5668\u53ef\u4ee5\u540c\u65f6\u6d4b\u91cf\u6c14\u538b\u548c\u6e29\u5ea6\u3002<\/p>\n\n\n<p>\u6211\u8fd9\u91cc\u4f7f\u7528\u7684\u6811\u8393\u6d3e\u4e3a cm4 (\u5b98\u65b9\u7cfb\u7edf2022.1 &#8211; Debian 11)\uff0c\u4f9d\u8d56\u4e8e I2C\uff0c\u9700\u8981\u5148\u5728\u6811\u8393\u6d3e\u8bbe\u7f6e\u91cc\u6253\u5f00 I2C<\/p>\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"652\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/07\/image-13-1024x652.png\" alt=\"\" class=\"wp-image-6752 lazyload\" data-srcset=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/07\/image-13-1024x652.png 1024w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/07\/image-13-300x191.png 300w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/07\/image-13-768x489.png 768w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/07\/image-13.png 1195w\" data-sizes=\"(max-width: 1024px) 100vw, 1024px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1024px; --smush-placeholder-aspect-ratio: 1024\/652;\" \/><\/figure>\n\n\n<p>\u7136\u540e\u5b89\u88c5\u4e00\u4e0b I2C \u5f00\u53d1\u5e93\uff08\u6211\u5b89\u88c5\u7684\u7248\u672c\u4e3a 4.2\uff09<\/p>\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"bash\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo apt install -y libi2c-dev<\/pre>\n\n\n<p>\u63a5\u7ebf\u7684\u8bdd\uff0c\u53ea\u63a5 3.3\u3001SDA\u3001SCL\u3001GND\uff0c\u5206\u522b\u5bf9\u5e94\u5230\u6811\u8393\u6d3e\u7684 3.3v\u3001SDA\u3001SCL\u3001GND\uff0cVCC \u5f15\u811a\u4e0d\u7ba1\u3002<\/p>\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"559\" height=\"499\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/07\/image-14.png\" alt=\"\" class=\"wp-image-6753 lazyload\" data-srcset=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/07\/image-14.png 559w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/07\/image-14-300x268.png 300w\" data-sizes=\"(max-width: 559px) 100vw, 559px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 559px; --smush-placeholder-aspect-ratio: 559\/499;\" \/><\/figure>\n\n\n<p>\u4e0b\u8f7d\u6211\u63d0\u4f9b\u7684\u6e90\u7801\u6587\u4ef6\uff0c\u4e0b\u8f7d\u5b8c\u4ee5\u540e\uff0c\u6253\u5f00\u7ec8\u7aef\uff0c\u5c06\u8def\u5f84\u5207\u6362\u5230\u6e90\u7801\u6240\u5728\u8def\u5f84<\/p>\n\n\n<p>\u521b\u5efa\u7f16\u8bd1\u76ee\u5f55<\/p>\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"bash\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">mkdir -p build &amp;&amp; cd build<\/pre>\n\n\n<p>\u751f\u6210\u7f16\u8bd1\u811a\u672c\uff08cmake \u7248\u672c &gt;= 3.18.4\uff09<\/p>\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"bash\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">cmake ..<\/pre>\n\n\n<p>\u7f16\u8bd1<\/p>\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"bash\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">make -j$(nproc)<\/pre>\n\n\n<p>\u8fd0\u884c\u793a\u8303<\/p>\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"bash\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">.\/bmp180<\/pre>\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"372\" height=\"106\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/07\/image-15.png\" alt=\"\" class=\"wp-image-6755 lazyload\" data-srcset=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/07\/image-15.png 372w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/07\/image-15-300x85.png 300w\" data-sizes=\"(max-width: 372px) 100vw, 372px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 372px; --smush-placeholder-aspect-ratio: 372\/106;\" \/><\/figure>\n\n\n<p>\u5176\u4e2d\u4f7f\u7528\u7684 BMP180 \u9a71\u52a8\u6e90\u7801\u6765\u81ea\u4e8e<a href=\"https:\/\/github.com\/lexruee\/bmp180\" data-type=\"URL\" data-id=\"https:\/\/github.com\/lexruee\/bmp180\" target=\"_blank\" rel=\"noreferrer noopener\">lexruee\/bmp180<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u6587\u8d44\u6e90\u6587\u4ef6\u4e0b\u8f7d\uff1ahttps:\/\/pan.baidu.com\/s\/1EIT3kflUP4UF_Cp96SC0B [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"zakra_page_container_layout":"customizer","zakra_page_sidebar_layout":"customizer","zakra_remove_content_margin":false,"zakra_sidebar":"customizer","zakra_transparent_header":"customizer","zakra_logo":0,"zakra_main_header_style":"default","zakra_menu_item_color":"","zakra_menu_item_hover_color":"","zakra_menu_item_active_color":"","zakra_menu_active_style":"","zakra_page_header":true,"_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"categories":[1,600],"tags":[],"class_list":["post-6749","post","type-post","status-publish","format-standard","hentry","category-all","category-600"],"modified_by":"IYATT-yx","_links":{"self":[{"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/posts\/6749","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6749"}],"version-history":[{"count":0,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/posts\/6749\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6749"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6749"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6749"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}