{"id":374,"date":"2016-11-20T13:21:01","date_gmt":"2016-11-20T05:21:01","guid":{"rendered":"https:\/\/hpcgoblog.wordpress.com\/?p=374"},"modified":"2026-01-13T09:46:54","modified_gmt":"2026-01-13T01:46:54","slug":"%e6%ba%ab%e5%ba%a6%e6%84%9f%e6%b8%ac%e5%99%a8-ds18b20","status":"publish","type":"post","link":"https:\/\/cfnavi.org\/aitech\/%e6%ba%ab%e5%ba%a6%e6%84%9f%e6%b8%ac%e5%99%a8-ds18b20\/","title":{"rendered":"S32-Temperature-DS18B20 (\u6eab\u5ea6\u611f\u6e2c\u5668)"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">\u3010\u8aaa\u660e\u3011<\/h3>\n\n\n\n<p>\u4f7f\u7528\u6eab\u5ea6\u611f\u6e2c\u5668 (DS18B20) \u6e2c\u91cf\u5468\u906d\u74b0\u5883\u7684\u6eab\u5ea6\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong><span style=\"text-decoration:underline;\"><em>\u7522\u54c1\u4ecb\u7d39<\/em><\/span><\/strong><\/h4>\n\n\n\n<p>\u76f8\u4fe1\u8981\u662f\u6211\u5011\u63a5\u89f8\u904e&nbsp; Arduino \u90a3\u9ebc\u5c0d&nbsp; DS18B20 \u9019\u6b3e\u795e\u5947\u7684\u6578\u5b57\u6e2c\u6eab\u6676\u7247\u4e00\u822c\u90fd\u4e0d\u6703\u964c\u751f\u5427\uff0c\u5b83\u80fd\u8b93\u4f60\u96a8\u6642\u77ad\u89e3\u4f60\u5468\u908a\u7684\u74b0\u5883\u6eab\u5ea6\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"900\" height=\"900\" src=\"https:\/\/hpcgoblog.wordpress.com\/wp-content\/uploads\/2016\/11\/ds18b201.jpg\" alt=\"ds18b20\" class=\"wp-image-426\" style=\"width:154px;height:153px\" srcset=\"https:\/\/cfnavi.org\/aitech\/wp-content\/uploads\/2016\/11\/ds18b201.jpg 900w, https:\/\/cfnavi.org\/aitech\/wp-content\/uploads\/2016\/11\/ds18b201-300x300.jpg 300w, https:\/\/cfnavi.org\/aitech\/wp-content\/uploads\/2016\/11\/ds18b201-150x150.jpg 150w, https:\/\/cfnavi.org\/aitech\/wp-content\/uploads\/2016\/11\/ds18b201-768x768.jpg 768w\" sizes=\"auto, (max-width: 900px) 100vw, 900px\" \/><figcaption class=\"wp-element-caption\">DS18B20<br>Temperture Sensor<\/figcaption><\/figure>\n\n\n\n<p>\u7531\u65bc\u4ee5\u5f80\u7684\u6eab\u5ea6\u611f\u6e2c\u5668\u8f38\u51fa\u7684\u662f\u985e\u6bd4\u91cf\uff0c\u6211\u5011\u9084\u8981\u589e\u52a0\u984d\u5916\u7684&nbsp; A\/D \u548c D\/A \u6676\u7247\u9032\u884c\u8f49\u63db\uff0c\u90a3\u9ebc\u5c0d\u65bc&nbsp; Arduino&nbsp; \u5916\u90e8\u4ecb\u9762\u8cc7\u6e90\u4e26\u4e0d\u8c50\u5bcc\u662f\u4e00\u5927\u6311\u6230\u540c\u6642\u5229\u7528\u7387\u4e0d\u9ad8\uff0c\u90a3\u9ebc\u6211\u5011\u65b0\u63a8\u51fa\u7684&nbsp; DS18B20 Temperature Sensor Module&nbsp; \u5c31\u5f88\u597d\u7684\u89e3\u6c7a\u4e86\u9019\u500b\u554f\u984c\uff0c\u4e00\u7dda\u532f\u6d41\u6392\u7368\u7279\u800c\u4e14\u7d93\u6fdf\u7684\u7279\u9ede\uff0c\u5b8c\u5168\u9069\u7528&nbsp; Arduino&nbsp; \u5e73\u81fa\uff0c\u4f7f\u7528\u6236\u53ef\u8f15\u9b06\u5730\u7d44\u5efa\u50b3\u611f\u5668\u7db2\u8def\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong><em><span style=\"text-decoration:underline;\">\u6280\u8853\u53c3\u6578<\/span><\/em><\/strong><\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u8a72\u6a21\u7d44\u4f7f\u7528\u7684\u662f\u55ae\u532f\u6d41\u6392\u6578\u4f4d\u6eab\u5ea6\u611f\u6e2c\u5668 DS18B20\uff0c\u5916\u754c\u4f9b\u96fb\u96fb\u58d3\u7bc4\u570d\u70ba0 V \u81f3 5.5 V\uff0c\u7121\u9700\u5099\u7528\u96fb\u6e90\u3002 \u6e2c\u91cf\u6eab\u5ea6\u7bc4\u570d\u70ba-55 \u00b0 C \u81f3+125 \u2103 \uff0c \u83ef\u6c0f\u76f8\u7576\u65bc\u662f67 \u00b0 F \u5230 257\u00b0 F\uff0c -10 \u00b0 C \u81f3+85 \u00b0 C \u7bc4\u570d\u5167\u7cbe\u5ea6\u70ba\u00b10.5 \u00b0 C\u00a0 \u3002<\/li>\n\n\n\n<li>\u6eab\u5ea6\u611f\u6e2c\u5668\u53ef\u7a0b\u5f0f\u8a2d\u8a08\u7684\u89e3\u6790\u5ea6\u70ba 9~12 \u4f4d\u5143\u00a0 \u6eab\u5ea6\u8f49\u63db\u70ba\u00a0 12 \u4f4d\u5143\u6578\u4f4d\u683c\u5f0f\u6700\u5927\u503c\u70ba 750 \u6beb\u79d2 \uff0c\u7528\u6236\u53ef\u5b9a\u7fa9\u7684\u975e\u6613\u5931\u6027\u6eab\u5ea6\u5831\u8b66\u8a2d\u7f6e\u3002<\/li>\n\n\n\n<li>\u6bcf\u4e00\u500b DS18B20\u00a0 \u5305\u542b\u4e00\u500b\u7368\u7279\u7684\u5e8f\u865f\uff0c\u591a\u500b\u00a0 DS18b20 \u53ef\u4ee5\u540c\u6642\u5b58\u5728\u65bc\u4e00\u689d\u532f\u6d41\u6392\u3002\u6eab\u5ea6\u611f\u6e2c\u5668\u53ef\u540c\u6642\u653e\u7f6e\u5728\u591a\u500b\u4e0d\u540c\u7684\u5730\u65b9\u6aa2\u6e2c\u6eab\u5ea6\u3002<\/li>\n<\/ol>\n\n\n\n<h4 class=\"wp-block-heading\"><span style=\"text-decoration:underline;\"><strong><em>\u6ce8\u610f\u4e8b\u9805<\/em><\/strong><\/span><\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u7531\u65bc DS18B20 \u548c\u666e\u901a\u7684\u4e09\u6975\u7ba1\u9577\u76f8\u76f8\u4f3c\uff0c\u6211\u5011\u518d\u4f7f\u7528\u6642\u5343\u842c\u8981\u6ce8\u610f\u4e0d\u8981\u628a\u5b83\u7576\u6210\u4e86\u666e\u901a\u4e09\u6975\u7ba1\u4f7f\u7528\uff0c\u4ee5\u514d\u9020\u6210\u640d\u5bb3\uff1b<\/li>\n\n\n\n<li>\u70ba\u4e86\u9632\u6b62\u640d\u58de DS18B20 \u800c\u4f7f\u5f97\u5b83\u5de5\u4f5c\u4e0d\u6b63\u5e38\uff0c\u6211\u5011\u61c9\u4fdd\u8b49\u5176\u96fb\u6e90\u7dda\u548c\u5730\u7dda\u4e0d\u8981\u63a5\u53cd\u3002<\/li>\n\n\n\n<li>\u76f8\u95dc\u6280\u8853\u8cc7\u6599\u4e2d\u4e26\u672a\u63d0\u53ca\u55ae\u532f\u6d41\u6392\u4e0a\u6240\u80fd\u639b DS18B20 \u6578\u91cf\u591a\u5c11\uff0c\u4f46\u5728\u5be6\u969b\u61c9\u7528\u4e2d\u4e26\u4e0d\u662f\u4efb\u610f\u591a\u500b\u7684\uff0c\u6211\u5011\u8981\u6ce8\u610f\u3002<\/li>\n\n\n\n<li>\u9023\u63a5 DS18B20 \u532f\u6d41\u6392\u662f\u6709\u9577\u5ea6\u9650\u5236\uff0c\u5728\u9577\u8ddd\u96e2\u901a\u4fe1\u4e2d\u61c9\u7576\u8003\u616e\u532f\u6d41\u6392\u5206\u4f48\u96fb\u5bb9\u548c\u963b\u6297\u7684\u5f71\u97ff\u3002<\/li>\n<\/ol>\n\n\n\n<h4 class=\"wp-block-heading\"><span style=\"text-decoration:underline;\"><em><strong>\u4f7f\u7528\u8aaa\u660e<\/strong><\/em><\/span><\/h4>\n\n\n\n<p>\u627e\u51fa DS18B20 Temperature Sensor Module \u96fb\u6e90\u7dda\uff0c&nbsp; \u5730\u7dda\u548c\u6578\u64da\u7dda\uff0c\u96fb\u6e90\u7dda\uff0c\u5730\u7dda\u5206\u9023\u5230&nbsp; Arduino&nbsp; \u5be6\u9a57\u677f\u7684+5V\uff0cGND&nbsp; \u57e0\uff0c\u6578\u64da\u532f\u6d41\u6392\u9023\u81f3\u6578\u4f4d\u57e0\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span style=\"text-decoration:underline;\"><em><strong>\u6a21\u7d44\u529f\u80fd\u6e2c\u8a66<\/strong><\/em><\/span><\/h4>\n\n\n\n<p>\u9023\u63a5\u96fb\u8def\u975e\u5e38\u7684\u7c21\u55ae\uff0c\u53ea\u8981\u9023\u63a5\u597d\u6a21\u7d44\u7684\u96fb\u6e90\uff0c\u5730\u7dda\uff0c\u518d\u5c07\u6a21\u7d44\u7684\u8cc7\u6599\u532f\u6d41\u6392\u8207&nbsp; Arduino&nbsp; \u6578\u5b57\u7aef &nbsp;D2&nbsp; \u5f15\u8173\u76f8\u9023\u4fbf\u53ef\uff0c\u9023\u4e0a&nbsp; USB&nbsp; \u8cc7\u6599\u901a\u4fe1\u7dda\u9019\u6a23\u6574\u500b\u6e2c\u8a66\u96fb\u8def\u5c31\u5b8c\u6210\u4e86\uff0cDS18B20 \u6e2c\u8a66\u7d50\u679c\u6211\u5011\u5c07\u986f\u793a\u65bc\u5e8f\u5217\u57e0\u76e3\u63a7\u8996\u7a97\u3002<\/p>\n\n\n\n<p>\u6211\u5011\u5c07\u6e2c\u8a66\u4ee3\u78bc\u7de8\u8b6f\u5f8c\u4e0b\u8f09\u5230\u5be6\u9a57\u677f\u4e0a\uff0c\u6253\u958b\u5e8f\u5217\u57e0\u76e3\u63a7\u8996\u7a97\u4fbf\u53ef\u77e5\u9053\u6211\u5011\u662f\u8655\u5728\u4ec0\u9ebc\u6a23\u7684\u6eab\u5ea6\u4e2d\u4e86\uff0c\u5728\u505a\u5be6\u9a57\u6642\u5019\u9019\u88e1\u7684\u6c23\u6eab\u662f&nbsp; 29 &nbsp;\u651d\u6c0f\u5ea6\u5de6\u53f3\uff0c\u7528\u624b\u6478&nbsp; DS18B20&nbsp; \u4ee5\u5f8c\uff0c\u53ef\u4ee5\u770b\u5230\u4e32\u53e3\u901a\u4fe1\u6a21\u7d44\u7684\u6eab\u5ea6\u6709\u660e\u986f\u8b8a\u5316\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u3010\u96f6\u4ef6\u8868\u3011<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>No.<\/strong><\/td><td><strong>\u96f6\u4ef6\u540d\u7a31<\/strong><\/td><td><strong>\u6578\u91cf<\/strong><\/td><\/tr><tr><td><strong>1<\/strong><\/td><td>\u6eab\u5ea6\u611f\u6e2c\u5668 (DS18B20)<\/td><td>1<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">\u3010\u96f6\u4ef6\u63a5\u8173\u3011<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>No.<\/strong><\/td><td><strong>\u96f6\u4ef6\u63a5\u8173<\/strong><\/td><td><strong>UNO R3 \u63a5\u8173<\/strong><\/td><\/tr><tr><td>1<\/td><td>DS18B20 (-)<\/td><td>GND<\/td><\/tr><tr><td>2<\/td><td>DS18B20 (+)<\/td><td>Vcc<\/td><\/tr><tr><td>3<\/td><td>DS18B20 (S)<\/td><td>D2<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">\u3010\u6309\u7dda\u5716\u3011<\/h3>\n\n\n\n<p>\u672c\u7bc4\u4f8b\u63a1\u7528 Keyes \u7684\u8f49\u677f\u6a21\u7d44\uff0c\u76f4\u63a5\u4f9d\u4e0a\u8ff0\u3010\u96f6\u4ef6\u63a5\u8173\u3011\u63a5\u7dda\u5373\u53ef\uff0c\u82e5\u4f60\u4f7f\u7528 DS18B20 IC \u53ef\u4ee5\u4e0b\u5217\u5716\u63a5\u7dda(\u9700\u53e6\u63a5 4.7K\u03a9 \u96fb\u963b)\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"1941\" height=\"1203\" src=\"https:\/\/cfnavi.org\/aitech\/wp-content\/uploads\/2019\/03\/s32_temperture_ds18b20.png?w=1024\" alt=\"\" class=\"wp-image-1180\" srcset=\"https:\/\/cfnavi.org\/aitech\/wp-content\/uploads\/2019\/03\/s32_temperture_ds18b20.png 1941w, https:\/\/cfnavi.org\/aitech\/wp-content\/uploads\/2019\/03\/s32_temperture_ds18b20-300x186.png 300w, https:\/\/cfnavi.org\/aitech\/wp-content\/uploads\/2019\/03\/s32_temperture_ds18b20-1024x635.png 1024w, https:\/\/cfnavi.org\/aitech\/wp-content\/uploads\/2019\/03\/s32_temperture_ds18b20-768x476.png 768w, https:\/\/cfnavi.org\/aitech\/wp-content\/uploads\/2019\/03\/s32_temperture_ds18b20-1536x952.png 1536w\" sizes=\"auto, (max-width: 1941px) 100vw, 1941px\" \/><figcaption class=\"wp-element-caption\">DS18B20<br>Temperture Sensor<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">\u3010\u7a0b\u5f0f\u78bc\u3011<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>\/*\n * \u793a\u7bc4\u6eab\u5ea6\u611f\u6e2c\u6a21\u7d44 (DS18B20) \u7684\u61c9\u7528\n * \u5229\u7528\u6a21\u7d44\u63a5\u6536\u74b0\u5883\u6eab\u5ea6\uff0c\u5c07\u6eab\u5ea6\u503c\u986f\u793a\u65bc LCD1602 \u4e0a\u3002\n *\/\n\n#include &lt;LiquidCrystal_I2C.h>        \/\/ \u5f15\u7528 LCD1602_I2C \u7a0b\u5f0f\u5eab\n#include &lt;OneWire.h>                  \/\/ \u5f15\u7528 OneWire \u7a0b\u5f0f\u5eab\n#include &lt;DallasTemperature.h>        \/\/ \u5f15\u7528 DallasTemperature \u7a0b\u5f0f\u5eab\n\n#define ONE_WIRE_BUS 2                \/\/ \u5b9a\u7fa9 DS18B20 \u8cc7\u6599\u8173\u4f4d(\u6578\u4f4d\u8173 D2)\nLiquidCrystal_I2C lcd(0x27,16,2);     \/\/ \u5b9a\u7fa9 LCD \u5143\u4ef6(\u4f4d\u7f6e 0x27 \u53ca 16x2 \u7684\u986f\u793a)\nOneWire oneWire(ONE_WIRE_BUS);        \/\/ \u5b9a\u7fa9 oneWire \u7269\u4ef6\u985e\u578b\nDallasTemperature sensors(&amp;oneWire);  \/\/ \u5b9a\u7fa9\u6eab\u5ea6\u611f\u6e2c\u5668\u7269\u4ef6\n\n\/\/ \u7a0b\u5f0f\u521d\u5316\u8a2d\u5b9a\nvoid setup(void)\n{\n  lcd.begin();                        \/\/ \u958b\u555f LCD \u5143\u4ef6\n  lcd.backlight();                    \/\/ \u958b\u555f LCD \u80cc\u5149\n}\n\n\/\/ \u4e3b\u7a0b\u5f0f\u8ff4\u5708\nvoid loop(void)\n{ \n  sensors.requestTemperatures();            \/\/ \u4e0b\u6307\u4ee4\u8981\u6c42\u53d6\u5f97\u6eab\u5ea6\u611f\u6e2c\u5668\u7684\u6eab\u5ea6\u503c\n  lcd.setCursor(0, 0);                      \/\/ \u8a2d\u5b9a\u6e38\u6a19\u4f4d\u7f6e\n  lcd.print(\"Temp: \");\n  lcd.print(sensors.getTempCByIndex(0));    \/\/ \u986f\u793a\u6eab\u5ea6\u503c\n  lcd.print(\"    \");\n}<\/code><\/pre>\n\n\n\n<div class=\"wp-block-stackable-button-group stk-block-button-group stk-block stk-eeb7d2c\" data-block-id=\"eeb7d2c\"><div class=\"stk-row stk-inner-blocks stk-block-content stk-button-group\">\n<div class=\"wp-block-stackable-button stk-block-button is-style-ghost stk-block stk-49eb5b8\" data-block-id=\"49eb5b8\"><style>.stk-49eb5b8 .stk-button{background:transparent !important;}.stk-49eb5b8 .stk-button:hover:after{background:transparent !important;opacity:1 !important;}:where(.stk-hover-parent:hover,  .stk-hover-parent.stk--is-hovered) .stk-49eb5b8 .stk-button:after{background:transparent !important;opacity:1 !important;}.stk-49eb5b8 .stk-button:before{border-style:solid !important;}<\/style><a class=\"stk-link stk-button stk--hover-effect-darken\" href=\"https:\/\/cfnavi.org\/aitech\/wp-content\/uploads\/2026\/01\/OneWire.zip\" target=\"_blank\" rel=\"noreferrer noopener\"><span class=\"stk-button__inner-text\">\u4e0b\u8f09\u7a0b\u5f0f\u5eab1<\/span><\/a><\/div>\n\n\n\n<div class=\"wp-block-stackable-button stk-block-button is-style-ghost stk-block stk-34d4890\" data-block-id=\"34d4890\"><style>.stk-34d4890 .stk-button{background:transparent !important;}.stk-34d4890 .stk-button:hover:after{background:transparent !important;opacity:1 !important;}:where(.stk-hover-parent:hover,  .stk-hover-parent.stk--is-hovered) .stk-34d4890 .stk-button:after{background:transparent !important;opacity:1 !important;}.stk-34d4890 .stk-button:before{border-style:solid !important;}<\/style><a class=\"stk-link stk-button stk--hover-effect-darken\" href=\"https:\/\/cfnavi.org\/aitech\/wp-content\/uploads\/2026\/01\/Arduino-Temperature-Control-Library-master.zip\" target=\"_blank\" rel=\"noreferrer noopener\"><span class=\"stk-button__inner-text\">\u4e0b\u8f09\u7a0b\u5f0f\u5eab2<\/span><\/a><\/div>\n\n\n\n<div class=\"wp-block-stackable-button stk-block-button is-style-ghost stk-block stk-b769fc6\" data-block-id=\"b769fc6\"><style>.stk-b769fc6 .stk-button{background:transparent !important;}.stk-b769fc6 .stk-button:hover:after{background:transparent !important;opacity:1 !important;}:where(.stk-hover-parent:hover,  .stk-hover-parent.stk--is-hovered) .stk-b769fc6 .stk-button:after{background:transparent !important;opacity:1 !important;}.stk-b769fc6 .stk-button:before{border-style:solid !important;}<\/style><a class=\"stk-link stk-button stk--hover-effect-darken\" href=\"https:\/\/cfnavi.org\/aitech\/wp-content\/uploads\/2026\/01\/S32-Temperature.zip\" target=\"_blank\" rel=\"noreferrer noopener\"><span class=\"stk-button__inner-text\">\u4e0b\u8f09\u7a0b\u5f0f\u78bc<\/span><\/a><\/div>\n<\/div><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">&nbsp;\u203b &nbsp;\u5206\u4eab\u7d50\u675f &nbsp;\u203b<\/h3>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n","protected":false},"excerpt":{"rendered":"<p>\u3010\u8aaa\u660e\u3011 \u4f7f\u7528\u6eab\u5ea6\u611f\u6e2c\u5668 (DS18B20) \u6e2c\u91cf\u5468\u906d\u74b0\u5883\u7684\u6eab\u5ea6\u3002 \u7522\u54c1\u4ecb\u7d39 \u76f8\u4fe1\u8981\u662f\u6211\u5011\u63a5\u89f8\u904e&nbsp;  [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":1179,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[86],"tags":[94,97,99],"class_list":["post-374","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-arduino","tag-button","tag-lcd","tag-sensor"],"blocksy_meta":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>S32-Temperature-DS18B20 (\u6eab\u5ea6\u611f\u6e2c\u5668) - \u4e58\u8c50\u9818\u822a-\uff21\uff29\u79d1\u6280<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/cfnavi.org\/aitech\/\u6eab\u5ea6\u611f\u6e2c\u5668-ds18b20\/\" \/>\n<meta property=\"og:locale\" content=\"zh_TW\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"S32-Temperature-DS18B20 (\u6eab\u5ea6\u611f\u6e2c\u5668) - \u4e58\u8c50\u9818\u822a-\uff21\uff29\u79d1\u6280\" \/>\n<meta property=\"og:description\" content=\"\u3010\u8aaa\u660e\u3011 \u4f7f\u7528\u6eab\u5ea6\u611f\u6e2c\u5668 (DS18B20) \u6e2c\u91cf\u5468\u906d\u74b0\u5883\u7684\u6eab\u5ea6\u3002 \u7522\u54c1\u4ecb\u7d39 \u76f8\u4fe1\u8981\u662f\u6211\u5011\u63a5\u89f8\u904e&nbsp; [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/cfnavi.org\/aitech\/\u6eab\u5ea6\u611f\u6e2c\u5668-ds18b20\/\" \/>\n<meta property=\"og:site_name\" content=\"\u4e58\u8c50\u9818\u822a-\uff21\uff29\u79d1\u6280\" \/>\n<meta property=\"article:published_time\" content=\"2016-11-20T05:21:01+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-01-13T01:46:54+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cfnavi.org\/aitech\/wp-content\/uploads\/2019\/03\/s32_temperture_ds18b20.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1600\" \/>\n\t<meta property=\"og:image:height\" content=\"1200\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"\u4e58\u8c50\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005:\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u4e58\u8c50\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9810\u4f30\u95b1\u8b80\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\u9418\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/cfnavi.org\/aitech\/%e6%ba%ab%e5%ba%a6%e6%84%9f%e6%b8%ac%e5%99%a8-ds18b20\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/cfnavi.org\/aitech\/%e6%ba%ab%e5%ba%a6%e6%84%9f%e6%b8%ac%e5%99%a8-ds18b20\/\"},\"author\":{\"name\":\"\u4e58\u8c50\",\"@id\":\"https:\/\/cfnavi.org\/aitech\/#\/schema\/person\/8372c52e316d60d3fb84637968e786bb\"},\"headline\":\"S32-Temperature-DS18B20 (\u6eab\u5ea6\u611f\u6e2c\u5668)\",\"datePublished\":\"2016-11-20T05:21:01+00:00\",\"dateModified\":\"2026-01-13T01:46:54+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/cfnavi.org\/aitech\/%e6%ba%ab%e5%ba%a6%e6%84%9f%e6%b8%ac%e5%99%a8-ds18b20\/\"},\"wordCount\":114,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/cfnavi.org\/aitech\/#organization\"},\"image\":{\"@id\":\"https:\/\/cfnavi.org\/aitech\/%e6%ba%ab%e5%ba%a6%e6%84%9f%e6%b8%ac%e5%99%a8-ds18b20\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cfnavi.org\/aitech\/wp-content\/uploads\/2019\/03\/s32_temperture_ds18b20.jpg\",\"keywords\":[\"Button\",\"LCD\",\"Sensor\"],\"articleSection\":[\"Arduino\"],\"inLanguage\":\"zh-TW\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/cfnavi.org\/aitech\/%e6%ba%ab%e5%ba%a6%e6%84%9f%e6%b8%ac%e5%99%a8-ds18b20\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/cfnavi.org\/aitech\/%e6%ba%ab%e5%ba%a6%e6%84%9f%e6%b8%ac%e5%99%a8-ds18b20\/\",\"url\":\"https:\/\/cfnavi.org\/aitech\/%e6%ba%ab%e5%ba%a6%e6%84%9f%e6%b8%ac%e5%99%a8-ds18b20\/\",\"name\":\"S32-Temperature-DS18B20 (\u6eab\u5ea6\u611f\u6e2c\u5668) - \u4e58\u8c50\u9818\u822a-\uff21\uff29\u79d1\u6280\",\"isPartOf\":{\"@id\":\"https:\/\/cfnavi.org\/aitech\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/cfnavi.org\/aitech\/%e6%ba%ab%e5%ba%a6%e6%84%9f%e6%b8%ac%e5%99%a8-ds18b20\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/cfnavi.org\/aitech\/%e6%ba%ab%e5%ba%a6%e6%84%9f%e6%b8%ac%e5%99%a8-ds18b20\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cfnavi.org\/aitech\/wp-content\/uploads\/2019\/03\/s32_temperture_ds18b20.jpg\",\"datePublished\":\"2016-11-20T05:21:01+00:00\",\"dateModified\":\"2026-01-13T01:46:54+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/cfnavi.org\/aitech\/%e6%ba%ab%e5%ba%a6%e6%84%9f%e6%b8%ac%e5%99%a8-ds18b20\/#breadcrumb\"},\"inLanguage\":\"zh-TW\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/cfnavi.org\/aitech\/%e6%ba%ab%e5%ba%a6%e6%84%9f%e6%b8%ac%e5%99%a8-ds18b20\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-TW\",\"@id\":\"https:\/\/cfnavi.org\/aitech\/%e6%ba%ab%e5%ba%a6%e6%84%9f%e6%b8%ac%e5%99%a8-ds18b20\/#primaryimage\",\"url\":\"https:\/\/cfnavi.org\/aitech\/wp-content\/uploads\/2019\/03\/s32_temperture_ds18b20.jpg\",\"contentUrl\":\"https:\/\/cfnavi.org\/aitech\/wp-content\/uploads\/2019\/03\/s32_temperture_ds18b20.jpg\",\"width\":1600,\"height\":1200},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/cfnavi.org\/aitech\/%e6%ba%ab%e5%ba%a6%e6%84%9f%e6%b8%ac%e5%99%a8-ds18b20\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9801\",\"item\":\"https:\/\/cfnavi.org\/aitech\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"S32-Temperature-DS18B20 (\u6eab\u5ea6\u611f\u6e2c\u5668)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/cfnavi.org\/aitech\/#website\",\"url\":\"https:\/\/cfnavi.org\/aitech\/\",\"name\":\"\u4e58\u8c50\u9818\u822a-\uff21\uff29\u79d1\u6280\",\"description\":\"\u9019\u662f\u4e58\u8c50\u9818\u822a\u751f\u547d\u8266\u968a\u90e8\u843d\u683c\uff0c\u5206\u4eab\u5404\u5f0f\u7684\u8cc7\u8a0a\uff0c\u5982AI\u3001\u79d1\u629c\u3001\u6295\u8cc7\u7406\u8ca1\u3001\u8b80\u66f8\u5fc3\u5f97\u3001\u9000\u4f11\u751f\u6d3b\u3001 \u65c5\u904a\u2025\u7b49\u8cc7\u8a0a\u3002\",\"publisher\":{\"@id\":\"https:\/\/cfnavi.org\/aitech\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/cfnavi.org\/aitech\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-TW\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/cfnavi.org\/aitech\/#organization\",\"name\":\"\u4e58\u8c50\u9818\u822a-\uff21\uff29\u79d1\u6280\",\"url\":\"https:\/\/cfnavi.org\/aitech\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-TW\",\"@id\":\"https:\/\/cfnavi.org\/aitech\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cfnavi.org\/aitech\/wp-content\/uploads\/2026\/01\/CFN-R1.png\",\"contentUrl\":\"https:\/\/cfnavi.org\/aitech\/wp-content\/uploads\/2026\/01\/CFN-R1.png\",\"width\":800,\"height\":800,\"caption\":\"\u4e58\u8c50\u9818\u822a-\uff21\uff29\u79d1\u6280\"},\"image\":{\"@id\":\"https:\/\/cfnavi.org\/aitech\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/cfnavi.org\/aitech\/#\/schema\/person\/8372c52e316d60d3fb84637968e786bb\",\"name\":\"\u4e58\u8c50\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-TW\",\"@id\":\"https:\/\/cfnavi.org\/aitech\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/cfnavi.org\/aitech\/wp-content\/uploads\/2026\/01\/CFN-R1-96x96.png\",\"contentUrl\":\"https:\/\/cfnavi.org\/aitech\/wp-content\/uploads\/2026\/01\/CFN-R1-96x96.png\",\"caption\":\"\u4e58\u8c50\"},\"url\":\"https:\/\/cfnavi.org\/aitech\/author\/chengfeng\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"S32-Temperature-DS18B20 (\u6eab\u5ea6\u611f\u6e2c\u5668) - \u4e58\u8c50\u9818\u822a-\uff21\uff29\u79d1\u6280","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/cfnavi.org\/aitech\/\u6eab\u5ea6\u611f\u6e2c\u5668-ds18b20\/","og_locale":"zh_TW","og_type":"article","og_title":"S32-Temperature-DS18B20 (\u6eab\u5ea6\u611f\u6e2c\u5668) - \u4e58\u8c50\u9818\u822a-\uff21\uff29\u79d1\u6280","og_description":"\u3010\u8aaa\u660e\u3011 \u4f7f\u7528\u6eab\u5ea6\u611f\u6e2c\u5668 (DS18B20) \u6e2c\u91cf\u5468\u906d\u74b0\u5883\u7684\u6eab\u5ea6\u3002 \u7522\u54c1\u4ecb\u7d39 \u76f8\u4fe1\u8981\u662f\u6211\u5011\u63a5\u89f8\u904e&nbsp; [&hellip;]","og_url":"https:\/\/cfnavi.org\/aitech\/\u6eab\u5ea6\u611f\u6e2c\u5668-ds18b20\/","og_site_name":"\u4e58\u8c50\u9818\u822a-\uff21\uff29\u79d1\u6280","article_published_time":"2016-11-20T05:21:01+00:00","article_modified_time":"2026-01-13T01:46:54+00:00","og_image":[{"width":1600,"height":1200,"url":"https:\/\/cfnavi.org\/aitech\/wp-content\/uploads\/2019\/03\/s32_temperture_ds18b20.jpg","type":"image\/jpeg"}],"author":"\u4e58\u8c50","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005:":"\u4e58\u8c50","\u9810\u4f30\u95b1\u8b80\u6642\u9593":"2 \u5206\u9418"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/cfnavi.org\/aitech\/%e6%ba%ab%e5%ba%a6%e6%84%9f%e6%b8%ac%e5%99%a8-ds18b20\/#article","isPartOf":{"@id":"https:\/\/cfnavi.org\/aitech\/%e6%ba%ab%e5%ba%a6%e6%84%9f%e6%b8%ac%e5%99%a8-ds18b20\/"},"author":{"name":"\u4e58\u8c50","@id":"https:\/\/cfnavi.org\/aitech\/#\/schema\/person\/8372c52e316d60d3fb84637968e786bb"},"headline":"S32-Temperature-DS18B20 (\u6eab\u5ea6\u611f\u6e2c\u5668)","datePublished":"2016-11-20T05:21:01+00:00","dateModified":"2026-01-13T01:46:54+00:00","mainEntityOfPage":{"@id":"https:\/\/cfnavi.org\/aitech\/%e6%ba%ab%e5%ba%a6%e6%84%9f%e6%b8%ac%e5%99%a8-ds18b20\/"},"wordCount":114,"commentCount":0,"publisher":{"@id":"https:\/\/cfnavi.org\/aitech\/#organization"},"image":{"@id":"https:\/\/cfnavi.org\/aitech\/%e6%ba%ab%e5%ba%a6%e6%84%9f%e6%b8%ac%e5%99%a8-ds18b20\/#primaryimage"},"thumbnailUrl":"https:\/\/cfnavi.org\/aitech\/wp-content\/uploads\/2019\/03\/s32_temperture_ds18b20.jpg","keywords":["Button","LCD","Sensor"],"articleSection":["Arduino"],"inLanguage":"zh-TW","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/cfnavi.org\/aitech\/%e6%ba%ab%e5%ba%a6%e6%84%9f%e6%b8%ac%e5%99%a8-ds18b20\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/cfnavi.org\/aitech\/%e6%ba%ab%e5%ba%a6%e6%84%9f%e6%b8%ac%e5%99%a8-ds18b20\/","url":"https:\/\/cfnavi.org\/aitech\/%e6%ba%ab%e5%ba%a6%e6%84%9f%e6%b8%ac%e5%99%a8-ds18b20\/","name":"S32-Temperature-DS18B20 (\u6eab\u5ea6\u611f\u6e2c\u5668) - \u4e58\u8c50\u9818\u822a-\uff21\uff29\u79d1\u6280","isPartOf":{"@id":"https:\/\/cfnavi.org\/aitech\/#website"},"primaryImageOfPage":{"@id":"https:\/\/cfnavi.org\/aitech\/%e6%ba%ab%e5%ba%a6%e6%84%9f%e6%b8%ac%e5%99%a8-ds18b20\/#primaryimage"},"image":{"@id":"https:\/\/cfnavi.org\/aitech\/%e6%ba%ab%e5%ba%a6%e6%84%9f%e6%b8%ac%e5%99%a8-ds18b20\/#primaryimage"},"thumbnailUrl":"https:\/\/cfnavi.org\/aitech\/wp-content\/uploads\/2019\/03\/s32_temperture_ds18b20.jpg","datePublished":"2016-11-20T05:21:01+00:00","dateModified":"2026-01-13T01:46:54+00:00","breadcrumb":{"@id":"https:\/\/cfnavi.org\/aitech\/%e6%ba%ab%e5%ba%a6%e6%84%9f%e6%b8%ac%e5%99%a8-ds18b20\/#breadcrumb"},"inLanguage":"zh-TW","potentialAction":[{"@type":"ReadAction","target":["https:\/\/cfnavi.org\/aitech\/%e6%ba%ab%e5%ba%a6%e6%84%9f%e6%b8%ac%e5%99%a8-ds18b20\/"]}]},{"@type":"ImageObject","inLanguage":"zh-TW","@id":"https:\/\/cfnavi.org\/aitech\/%e6%ba%ab%e5%ba%a6%e6%84%9f%e6%b8%ac%e5%99%a8-ds18b20\/#primaryimage","url":"https:\/\/cfnavi.org\/aitech\/wp-content\/uploads\/2019\/03\/s32_temperture_ds18b20.jpg","contentUrl":"https:\/\/cfnavi.org\/aitech\/wp-content\/uploads\/2019\/03\/s32_temperture_ds18b20.jpg","width":1600,"height":1200},{"@type":"BreadcrumbList","@id":"https:\/\/cfnavi.org\/aitech\/%e6%ba%ab%e5%ba%a6%e6%84%9f%e6%b8%ac%e5%99%a8-ds18b20\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9801","item":"https:\/\/cfnavi.org\/aitech\/"},{"@type":"ListItem","position":2,"name":"S32-Temperature-DS18B20 (\u6eab\u5ea6\u611f\u6e2c\u5668)"}]},{"@type":"WebSite","@id":"https:\/\/cfnavi.org\/aitech\/#website","url":"https:\/\/cfnavi.org\/aitech\/","name":"\u4e58\u8c50\u9818\u822a-\uff21\uff29\u79d1\u6280","description":"\u9019\u662f\u4e58\u8c50\u9818\u822a\u751f\u547d\u8266\u968a\u90e8\u843d\u683c\uff0c\u5206\u4eab\u5404\u5f0f\u7684\u8cc7\u8a0a\uff0c\u5982AI\u3001\u79d1\u629c\u3001\u6295\u8cc7\u7406\u8ca1\u3001\u8b80\u66f8\u5fc3\u5f97\u3001\u9000\u4f11\u751f\u6d3b\u3001 \u65c5\u904a\u2025\u7b49\u8cc7\u8a0a\u3002","publisher":{"@id":"https:\/\/cfnavi.org\/aitech\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/cfnavi.org\/aitech\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-TW"},{"@type":"Organization","@id":"https:\/\/cfnavi.org\/aitech\/#organization","name":"\u4e58\u8c50\u9818\u822a-\uff21\uff29\u79d1\u6280","url":"https:\/\/cfnavi.org\/aitech\/","logo":{"@type":"ImageObject","inLanguage":"zh-TW","@id":"https:\/\/cfnavi.org\/aitech\/#\/schema\/logo\/image\/","url":"https:\/\/cfnavi.org\/aitech\/wp-content\/uploads\/2026\/01\/CFN-R1.png","contentUrl":"https:\/\/cfnavi.org\/aitech\/wp-content\/uploads\/2026\/01\/CFN-R1.png","width":800,"height":800,"caption":"\u4e58\u8c50\u9818\u822a-\uff21\uff29\u79d1\u6280"},"image":{"@id":"https:\/\/cfnavi.org\/aitech\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/cfnavi.org\/aitech\/#\/schema\/person\/8372c52e316d60d3fb84637968e786bb","name":"\u4e58\u8c50","image":{"@type":"ImageObject","inLanguage":"zh-TW","@id":"https:\/\/cfnavi.org\/aitech\/#\/schema\/person\/image\/","url":"https:\/\/cfnavi.org\/aitech\/wp-content\/uploads\/2026\/01\/CFN-R1-96x96.png","contentUrl":"https:\/\/cfnavi.org\/aitech\/wp-content\/uploads\/2026\/01\/CFN-R1-96x96.png","caption":"\u4e58\u8c50"},"url":"https:\/\/cfnavi.org\/aitech\/author\/chengfeng\/"}]}},"_links":{"self":[{"href":"https:\/\/cfnavi.org\/aitech\/wp-json\/wp\/v2\/posts\/374","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cfnavi.org\/aitech\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cfnavi.org\/aitech\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cfnavi.org\/aitech\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/cfnavi.org\/aitech\/wp-json\/wp\/v2\/comments?post=374"}],"version-history":[{"count":2,"href":"https:\/\/cfnavi.org\/aitech\/wp-json\/wp\/v2\/posts\/374\/revisions"}],"predecessor-version":[{"id":2920,"href":"https:\/\/cfnavi.org\/aitech\/wp-json\/wp\/v2\/posts\/374\/revisions\/2920"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cfnavi.org\/aitech\/wp-json\/wp\/v2\/media\/1179"}],"wp:attachment":[{"href":"https:\/\/cfnavi.org\/aitech\/wp-json\/wp\/v2\/media?parent=374"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cfnavi.org\/aitech\/wp-json\/wp\/v2\/categories?post=374"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cfnavi.org\/aitech\/wp-json\/wp\/v2\/tags?post=374"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}